岩前热线:www.yqrx.com 俊客工作室:www.junke.org 吾要下载:www.ent51.com

如何实现在横向显示会员登陆框

上一篇 / 下一篇  2007-01-16 14:28:24 / 个人分类:代码

修改batch.panel.php

刚好现在做的风格是横向登录框的。

自己看。

<?php

/*
        [SupeSite/X-Space] (C)2001-2006 Comsenz Inc.
        用户动态面板

        $RCSfile: batch.panel.php,v $
        $Revision: 1.8.4.3 $
        $Date: 2006/11/23 01:28:24 $
*/

include_once('./include/main.inc.php');

getcookie();

$uid = $_SGLOBAL['supe_uid'];

if(!empty($uid)) {
        print <<<END
document.write('<div style="width:580px;"><a href="http://x.discuz.net/$uid.html" target="_blank">个人空间</a>   <a href="$siteurl/spacecp.php?docp=me" target="_blank">空间管理</a>   <a href="$bbsurl/pm.php" target="_blank">我的消息</a>   <a href="$bbsurl" target="_blank">进入论坛</a>   <a href="http://x.discuz.net/action_site_type_panel.html" target="_self">快捷面板</a>   <a href="$siteurl/batch.login.php?action=logout" target="_self">安全退出</a></div>');
END;
} else {
        print <<<END
        document.write('<form method="post" name="login" action="$siteurl/batch.login.php?action=login" target="_self">');


        document.write('<div>  用户名:</div><div style="margin-top:2px;"><input type="text" name="username" style="width:82px" /></div>');
        document.write('<div>  密码:</div><div style="margin-top:2px;"><input type="password" name="password" style="width:82px"/></div>');

        document.write('<div>  <button type="submit" name="loginsubmit" value="true">登录</button></div> <div style="width:260px;">   <a href="$bbsurl/register.php?referer=$siteurl/index.php" target="_blank">注册</a>    <a href="$bbsurl/member.php?action=lostpasswd" target="_blank">找回密码</a></div>');
        document.write('</form>');
END;
}

?>


Discuz! 代码不能用。宽度自己修改,空格自己加上。

TAG: 代码

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

数据统计

  • 访问量: 2778
  • 日志数: 35
  • 图片数: 1
  • 文件数: 2
  • 书签数: 1
  • 建立时间: 2006-10-29
  • 更新时间: 2007-04-11

RSS订阅

Open Toolbar