<div id="hd">
  <div class="box">
    <h1><a href="<!--{$urlpath}-->index.php"><img src="<!--{$config.logo}-->" alt="<!--{$config.sitename}-->"><br>
      <!--{$config.sitename}--></a></h1>
    <div id="nav" class="nav">
      <ul>
        <li<!--{if $menuid=='index'}--> class='nav-current'<!--{/if}-->><a href="<!--{$config.siteurl}-->">首页</a></li>
        <!--{if $login.status == 1}-->
        <li<!--{if $menuid=='usercp'}--> class='nav-current'<!--{/if}-->><a href="<!--{$urlpath}-->usercp.php">会员中心</a></li>
        <!--{else}-->
        <li><a href="###" onclick="jbox_loginbox();">会员中心</a></li>
        <!--{/if}--> 
        <li<!--{if $menuid=='advsearch'}--> class='nav-current'<!--{/if}-->><a href="<!--{$urlpath}-->index.php?c=user&a=advsearch">搜索</a>
        </li>
		<li<!--{if $menuid=='user'}--> class='nav-current'<!--{/if}-->><a href="<!--{$urlpath}-->index.php?c=user">会员</a>
        </li>
        <li<!--{if $menuid=='diary'}--> class='nav-current'<!--{/if}-->><a href="<!--{$urlpath}-->index.php?c=diary">日记</a>
        </li>
        <li<!--{if $menuid=='weibo'}--> class='nav-current'<!--{/if}-->><a href="<!--{$urlpath}-->index.php?c=weibo">微播</a>
        </li>
        <li><a href="###" title="手机浏览器访问：<!--{$config.siteurl}-->">手机交友</a></li>
      </ul>
    </div>
    <div id="my_nav" class="my-nav"> 
      <!--{if $login.status == '1' || $usercpmod == 'yes'}--> 
      <!-- my-nav -->
      <div class="grid clearfix">

        <div id="dzxy-info" class="header-info"> 
		<!--{if $usercpmod == 'yes'}-->
		<a href="<!--{$urlpath}--><!--{if $config.urlsuffix=='rewrite'}-->home/<!--{$u.userid}--><!--{else}-->index.php?c=home&uid=<!--{$u.userid}--><!--{/if}-->"><span class="header-info-title"><!--{$u.username}--></span></a>
		<!--{else}-->
		<a href="<!--{$urlpath}--><!--{if $config.urlsuffix=='rewrite'}-->home/<!--{$login.userid}--><!--{else}-->index.php?c=home&uid=<!--{$login.userid}--><!--{/if}-->"><span class="header-info-title"><!--{$login.info.username}--></span></a>
		<!--{/if}-->
          <ul class='header-info-list'>
            <li class="icon-myinfo"><a href="<!--{$urlpath}-->usercp.php?c=profile">我的资料</a></li>
            <li class="icon-setting"><a href="<!--{$urlpath}-->usercp.php?c=vip">会员服务</a></li>
            <li class="icon-vip"><a href="<!--{$urlpath}-->usercp.php?c=certify">诚信认证</a></li>
            <li class="header-info-line"></li>
            <li class="icon-help"><a href="<!--{$urlpath}-->usercp.php?c=gift">收到礼物</a></li>
            <li class="icon-serves"><a href="<!--{$urlpath}-->usercp.php?c=listen">我的关注</a></li>
            <li class="header-info-line"></li>
            <li class="icon-quit"><a href="<!--{$urlpath}-->index.php?c=passport&a=logout">退出登录</a></li>
          </ul>
        </div>

        <div id="email-info" class="header-info"> <span class="header-info-title"> <em class="icon-email icon-emai-more"><a href="<!--{$urlpath}-->usercp.php?c=message">收件箱</a></em> </span>
          <ul class='email-info-list'>
            <li class="icon-email2"> <a href="<!--{$urlpath}-->usercp.php?c=message">收件箱 <span class="red">
			  <!--{if $usercpmod == 'yes'}-->
			  <!--{assign var='new_message' value="<!--{count mod='user' type='newmessage' value=$u.userid}-->"}--> 
			  <!--{else}-->
			  <!--{assign var='new_message' value="<!--{count mod='user' type='newmessage' value=$login.info.userid}-->"}--> 
			  <!--{/if}-->
              <!--{if $new_message > 0}--> 
              (<!--{$new_message}-->新) 
              <!--{else}--> 
              (0) 
              <!--{/if}--> 
              </span> </a></li>
            <li class="icon-email3"> <a href="<!--{$urlpath}-->usercp.php?c=hi">打招呼 <span class="red"> 
			  <!--{if $usercpmod == 'yes'}-->
			  <!--{assign var='new_hi' value="<!--{count mod='user' type='newhi' value=$u.userid}-->"}-->
			  <!--{else}-->
			  <!--{assign var='new_hi' value="<!--{count mod='user' type='newhi' value=$login.info.userid}-->"}-->
			  <!--{/if}-->
               
              <!--{if $new_hi > 0}--> 
              (<!--{$new_hi}-->新) 
              <!--{else}--> 
              (0) 
              <!--{/if}--> 
              </span> </a></li>
          </ul>
        </div>

        <div id="photo-info" class="header-info"> <span class="header-info-title"> <em class="icon-photo"><a href="<!--{$urlpath}-->usercp.php?c=album">我的相册</a></em> </span>
          <ul class='photo-info-list'>
            <li class="icon-upload"><a href="###" onclick="jbox_album_upload();">上传照片</a></li>
            <li class="icon-picter"><a href="<!--{$urlpath}-->usercp.php?c=album">相册管理</a></li>
          </ul>
        </div>

      </div>
      <!-- my-nav end --> 
      <!--{else}-->
      <div class="my_nav_loading"><a href="<!--{$urlpath}-->index.php?c=passport&a=login">登录</a> <a href="<!--{$urlpath}-->index.php?c=passport&a=reg">注册</a></div>
      <!--{/if}--> 
    </div>
  </div>
</div>
