这段代码登录后没问题。登陆前有问题。我想把退出按钮放在我的头像下面。- <div id="Header">
- <div id="Iam">
- <div class="Iam" id="um">
- <!--{if $_G['uid']}-->
- <div class="HadLogin">
- <div class="uface"><a href="home.php?mod=space&uid=$_G[uid]" id="qmenu" onMouseOver="showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});" title="查看我的资料"><!--{avatar($_G[uid],middle)}--></a></div>
- <!--{elseif !empty($_G['cookie']['loginuser'])}-->
- <div id="um">
- <div class="diynav">
- <strong><a id="loginuser" class="noborder"><!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href)">{lang activation}</a>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </div>
- </div>
- <!--{elseif !$_G[connectguest]}-->
- <div class="toLogin">
- <div class="b_log" onMouseOver="this.className='b_log b_loghover'" onMouseOut="this.className='b_log'">
- <a class="b_loginbtn tyxPNG" href="member.php?mod=logging&action=login" title="用户登录">登录</a>
- <ul class="b_loginlst tyxPNG">
- <li class="l1"><a href="member.php?mod=logging&action=login">用户登录>></a></li>
- <li class="l2">
- 已绑定QQ/微博的
- 用户,一键登录:
- <a href="connect.php?mod=login&op=init&referer=index.php&statfrom=login" class="log_qq" title="用QQ登录"></a>
- </li>
- </ul>
- </div>
- <a class="b_reg tyxPNG" href="member.php?mod={$_G[setting][regname]}" title="注册新用户">加入</a>
- </div>
- <!--{else}-->
- <div class="HadLogin">
- <div class="uface"><a href="home.php?mod=space&uid=$_G[uid]" id="qmenu" onMouseOver="showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});" title="查看我的资料"><!--{avatar($_G[uid],middle)}--></a></div>
- <p>
- <strong class="vwmy qq">{$_G[member][username]}</strong>
- <!--{hook/global_usernav_extra1}-->
- <a class="ulogout" href="member.php?mod=logging&action=logout&formhash={FORMHASH}" title="退出登录"></a>
- </p>
- </div>
- <!--{/if}-->
- <!--{hook/global_usernav_extra1}-->
- <div class="uduan"></div>
- <a class="ulogout" href="member.php?mod=logging&action=logout&formhash={FORMHASH}" title="退出登录"></a>
- <!--{/if}-->
- </div>
- </div>
- </div>
复制代码 |