网站要让人正常登录,所以我又改回来了。我贴一下代码吧。麻烦你看下。
<div id="ContainerHead" style="float:left; width:100%;">
<!-- 顶部 开始 -->
<div id="WebHead">
<div class="WebHead">
<div class="layer" id="nv">
<ul>
<!--{eval $mnid = getcurrentnav();}-->
<!--{loop $_G['setting']['navs'] $nav}-->
<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}--><li {if $mnid == $nav[navid]}class="a" {/if}$nav[nav]></li><!--{/if}-->
<!--{/loop}-->
</ul>
<div class="diybtn">
<!--{hook/global_cpnav_extra2}-->
<!--{loop $_G['setting']['topnavs'][1] $nav}-->
<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->$nav[code]<!--{/if}-->
<!--{/loop}-->
<!--{if CURMODULE != 'topic' && $_G['group']['allowdiy'] && !empty($_G['style']['tplfile']) || CURMODULE == 'topic' && !empty($_G['style']['tplfile']) && ($_G['group']['allowaddtopic'] && $topic['uid'] == $_G['uid'] || $_G['group']['allowmanagetopic'])}-->
<a id="diy-tg" href="javascriptpenDiy();" title="{lang open_diy}" class="xi1 xw1">DIY</a>
<!--{/if}-->
</div>
</div>
<!--{if !empty($_G['setting']['plugins']['jsmenu'])}-->
<ul class="p_pop h_pop" id="plugin_menu" style="display: none">
<!--{loop $_G['setting']['plugins']['jsmenu'] $module}-->
<!--{if !$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])}-->
<li>$module[url]</li>
<!--{/if}-->
<!--{/loop}-->
</ul>
<!--{/if}-->
</div>
</div>
<!-- 页面顶部 开始 -->
<div id="Header">
<div id="Iam">
<div class="Iam tyxPNG" id="um">
<!--{if $_G['uid']}-->
<div class="HadLogin">
<div class="uleft">
<div class="uname">
<strong class="vwmy{if $_G['setting']['connect']['allow'] && $_G[member][conisbind]} qq{/if}"><a href="home.php?mod=space&uid=$_G[uid]" target="_blank" title="{lang visit_my_space}">{$_G[member][username]}</a></strong>
<span class="pipe">|</span>
<a href="home.php?mod=spacecp">{lang setup}</a>
<a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}</a>
<a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}--><em>$_G[member][newprompt]</em><!--{/if}--></a><span id="myprompt_check"></span>
<!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}--><a href="home.php?mod=task&item=doing" id="task_ntc" class="new" title="{lang task_doing}">任务</a> <!--{/if}-->
<!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
<a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">管理</a>
<!--{/if}-->
<!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
<a href="admin.php" target="_blank">管理</a>
<!--{/if}-->
<!--{hook/global_usernav_extra2}-->
<a href="member.php?mod=logging&action=logout&formhash={FORMHASH}" title="退出登录">{lang logout}</a>
</div>
<div class="uinfo">
<!--{hook/global_usernav_extra3}-->
<!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
<a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} class="showmenu"{/if}>{lang credits}: $_G[member][credits]</a>
<span class="pipe">|</span> <a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2"{/if}>$_G[group][grouptitle]</a>
</div>
</div>
<div class="uface"><a href="home.php?mod=space&uid=$_G[uid]" id="qmenu" title="查看我的资料"><!--{avatar($_G[uid],small)}--></a></div>
<div class="clear"></div>
</div>
<!--{elseif !empty($_G['cookie']['loginuser'])}-->
<p>
<strong><a id="loginuser" class="noborder"><!--{echo htmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
<span class="pipe">|</span><a href="member.php?mod=logging&action=login">{lang activation}</a>
<span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
</p>
<!--{elseif !$_G[connectguest]}-->
<div class="toLogin"><a href="member.php?mod=logging&action=login" title="用户登录">{lang login}</a> <span class="pipe">|</span> <a href="member.php?mod={$_G[setting][regname]}" class="xi2 xw1" title="注册新用户">$_G['setting']['reglinkname']</a></div>
<div class="otherLogin">快速登录:<a href="connect.php?mod=login&op=init&referer=index.php&statfrom=login"><img src="{IMGDIR}/qq_login.gif" alt="用QQ号登录" /></a></div>
<!--{else}-->
<div id="um">
<div class="HadLogin">
<div class="uleft">
<div class="uname">
<strong class="vwmy qq">{$_G[member][username]}</strong>
<span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a><br />
<!--{hook/global_usernav_extra1}-->
</div>
</div>
<div class="clear"></div>
</div>
</div>
<!--{/if}-->
</div>
</div>
<div id="Logo">
<h1><a href="/"><img src="$_G['style'][styleimgdir]/head_logo.gif" alt="首页" />可乐一族</a></h1>
</div>
<div id="NavMenu">
<div class="NavMenu n1">
<h2><a > </a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=41" class="Btn" title="校园生活"></a></h2>
<h3><a >图书馆</a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=41"></a></h3>
<h3><a >工作互推</a><a href="javascript:void(null);" title="工作互推"></a></h3>
</div>
<div class="NavMenu n2">
<h2><a > </a><a class="Btn" href="tingyuxuanv2/common/forum.php?gid=46" title="初恋"></a></h2>
<h3><a >乐交流</a> </h3>
<h3><a > 享金句 </a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=73"></a></h3>
<h3> <a > 注语法 </a></h3>
<h3><a >熟短语 </a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=76" title="短语"></a></h3>
<div class="navline"></div>
<em></em>
</div>
<div class="NavMenu n3">
<h2><a > </a><a class="Btn" href="tingyuxuanv2/common/forum.php?gid=50" title="win软件"></a></h2>
<h3><a >s媲美</a><a ></a></h3>
</div>
<div class="NavMenu n4">
<h2><a > </a><a class="Btn" href="tingyuxuanv2/common/forum.php?gid=21" title="轩友汇"></a></h2>
<h3><a >使用</a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=34"></a></h3>
<h3><a >建议</a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=24"></a></h3>
<h3><a >体验</a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=31"></a></h3>
<h3><a >手拉手</a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=47"></a></h3>
</div>
<div class="NavOther"><a >门户</a><a ></a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=78" title="可乐一族"></a> <a >论坛</a><a href="plugin.php?id=v63shop:list&pac=dh" title="web论坛"></a><br />
<a >群组</a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=14" title="web群组"></a> <a >排行榜</a><a href="tingyuxuanv2/common/forum.php?mod=forumdisplay&fid=32" title="排行榜"></a></div>
<div class="NavSearch">
<div class="NSbtn"></div>
<a class="NSmor" href="tingyuxuanv2/common/search.php?mod=forum&adv=yes" target="_blank" title="高级搜索"></a>
<div class="SearchBlock">
<!--{if $_G['setting']['search']}-->
<!--{eval $slist = array();}-->
<!--{if $_G['fid'] && $_G['forum']['status'] != 3 && $mod != 'group'}--><!--{block slist[forumfid]}--><li><a href="javascript:;" rel="curforum" class="curtype">{lang search_this_forum}</a></li><!--{/block}--><!--{/if}-->
<!--{if $_G['setting']['portalstatus'] && $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)}--><!--{block slist[portal]}--><li><a href="javascript:;" rel="article"{if CURSCRIPT == 'portal'} class="curtype"{/if}>{lang article}</a></li><!--{/block}--><!--{/if}-->
<!--{if $_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)}--><!--{block slist[forum]}--><li><a href="javascript:;" rel="forum"{if (CURSCRIPT == 'forum' && !$_G['fid']) || (CURSCRIPT == 'home' && in_array($do, array('thread', 'activity', 'poll', 'reward', 'debate', 'trade')))} class="curtype"{/if}>{lang thread}</a></li><!--{/block}--><!--{/if}-->
<!--{if $_G['setting']['homestatus'] && $_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)}--><!--{block slist[blog]}--><li><a href="javascript:;" rel="blog"{if CURSCRIPT == 'home' && $do == 'blog'} class="curtype"{/if}>{lang blog}</a></li><!--{/block}--><!--{/if}-->
<!--{if $_G['setting']['homestatus'] && $_G['setting']['search']['album']['status'] && ($_G['group']['allowsearch'] & 8 || $_G['adminid'] == 1)}--><!--{block slist[album]}--><li><a href="javascript:;" rel="album"{if CURSCRIPT == 'home' && $do == 'album'} class="curtype"{/if}>{lang album}</a></li><!--{/block}--><!--{/if}-->
<!--{if $_G['setting']['groupstatus'] && $_G['setting']['search']['group']['status'] && ($_G['group']['allowsearch'] & 16 || $_G['adminid'] == 1)}--><!--{block slist[group]}--><li><a href="javascript:;" rel="group"{if CURSCRIPT == 'group' || $_G['basescript']=='group'} class="curtype"{/if}>$_G['setting']['navs'][3]['navname']</a></li><!--{/block}--><!--{/if}-->
<!--{block slist[user]}--><li><a href="javascript:;" rel="user"{if (CURSCRIPT == 'home' && !in_array($do, array('blog', 'album', 'thread', 'activity', 'poll', 'reward', 'debate', 'trade'))) || $mod == 'ranklist'} class="curtype"{/if}>{lang users}</a></li><!--{/block}-->
<!--{/if}-->
<!--{if $_G['setting']['search'] && $slist}-->
<form id="" method="post" autocomplete="off" action="tingyuxuanv2/common/search.php?searchsubmit=yes" target="_blank">
<input type="hidden" name="mod" id="scbar_mod" value="search" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="srchtype" value="title" />
<input type="hidden" name="srhfid" value="$_G[fid]" />
<input type="hidden" name="srhlocality" value="$_G['basescript']::{CURMODULE}" />
<input type="text" name="srchtxt" id="scbar_txt" value="{lang enter_content}" autocomplete="off" />
<button type="submit" name="searchsubmit" id="scbar_btn" class="pn pnc" value="true"></button>
<a style="float:left; margin:900px 0 0 0;" href="javascript:;" id="scbar_type" hidefocus="true">{lang search}</a>
</form>
<ul id="scbar_type_menu" class="p_pop" style="display: none;"><!--{echo implode('', $slist);}--></ul>
<script type="text/javascript">
initSearchmenu('scbar');
</script>
<!--{/if}-->
</div>
</div>
</div>
</div>
<!-- 页面顶部 结束 -->
</div>
<div class="clear"></div>
|