   <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <button type="button" class="btn btn-navbar visible-phone" id="menu-toggler">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            
            <a class="brand" href="index.php"><img src="img/logo.png" /></a>

            <ul class="nav pull-right">                
                <li class="hidden-phone">
                 <div style="margin:2px auto;line-height:40px;color:#fff;"> <?php echo "KEY:". $loginkey ."";?>&nbsp;</div>
                </li>
                <li class="notification-dropdown hidden-phone">
                    <a href="#" class="trigger">
                        <i class="icon-warning-sign"></i>
                        <span class="count">
                        	<?php
                        	$psql = "select * from limao_ping order by lm_id desc";
                        	$ptotal = lmtotal($psql);
                        	echo $ptotal;
                        	?>
                        	</span>
                    </a>
                    <div class="pop-dialog">
                        <div class="pointer right">
                            <div class="arrow"></div>
                            <div class="arrow_border"></div>
                        </div>
                        <div class="body">
                            <a href="#" class="close-icon"><i class="icon-remove-sign"></i></a>
                            <div class="notifications">
                                <h3>最新3条评论信息</h3>
                                <?php
                                $pviewsql = "select * from limao_ping order by lm_id desc limit 0,3";
                                $prs = limaors($pviewsql);
                                
                                $pdata = array();
                                while($pdata=mysql_fetch_object($prs)){
                                ?>
                                <a href="#" class="item">
                                    <i class="icon-signin"></i> <?=rinput($pdata->lm_linktitle);?><br/>
                                   <p><?=mb_substr(rinput($pdata->lm_content),0,50,'utf-8');?></p>
                                  
                                </a>
                              <?
                            }
                              ?>
                                <div class="footer">
                                    <a href="ping_list.php" class="logout">查看所有评论</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
               
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle hidden-phone" data-toggle="dropdown">
                      <?php echo "欢迎用户：". rinput($loginuser) ."登陆系统";?>
                       
                    </a>
                  
                </li>
                <li class="settings hidden-phone">
                    <a href="<?=rinput(webphpurl)?>" target="_blank" role="button" title="首页">
                        <i class="icon-home"></i>
                    </a>
                </li>
                <li class="settings hidden-phone">
                    <a href="loginout.php" role="button" title="退出系统">
                        <i class="icon-share-alt"></i>
                    </a>
                </li>
            </ul>            
        </div>
    </div>