|
 
- 帖子
- 1647
- 积分
- 3797
- 威望
- 210
- 金币
- 213 个
- 体力
- 1641
|
分享一个适合softsea风格的登录口文件
创意来源:qianmeng
http://www.discuz.net/viewthread.php?tid=445226- <?php
- /*
- [SupeSite/X-Space] (C)2001-2006 Comsenz Inc.
- 用户动态面板
- $RCSfile: batch.panel.php,v $
- $Revision: 1.14 $
- $Date: 2007/04/10 16:15:40 $
- */
- include_once('./include/main.inc.php');
- include_once(S_ROOT.'./language/batch.lang.php');
- getcookie();
- $uid = $_SGLOBAL['supe_uid'];
- if(!empty($uid)) {
- print <<<END
- document.write('<h3>$blang[my_menu]</h3>');
- document.write('<ul class="msgtitlelist">');
- document.write('<li><a href="$siteurl/?$uid" target="_blank">$blang[my_space]</a> <a href="$siteurl/spacecp.php?docp=me" target="_blank">$blang[space_management]</a> <a href="$siteurl/spacecp.php?docp=$uid&action=spaceblogs&op=add&openwindow=1" target="_blank"><font color="#ff3300">发布日志</font></a></li>');
- document.write('<li><a href="$bbsurl/pm.php" target="_blank">$blang[my_pm]</a> <a href="$bbsurl" target="_blank">$blang[forum_visit]</a> <a href="$siteurl/spacecp.php?docp=$uid&action=spaceimages&op=add&openwindow=1" target="_blank"><font color="green">添加照片</font></a></li>');
- document.write('<li><a href="$siteurl/?action/site/type/panel" target="_self">$blang[my_quickly_face]</a> <a href="$siteurl/spacecp.php?docp=$uid&action=spacegoods&op=add&openwindow=1" target="_blank">发布商品</a> <a href="$siteurl/batch.login.php?action=logout" target="_self">$blang[safe_logout]</a></li>');
- document.write('</ul>');
- END;
- } else {
- print <<<END
- document.write('<form id="login" method="post" name="login" action="$siteurl/batch.login.php?action=login" target="_self">');
- document.write('<fieldset id="userlogin">');
- document.write('<legend>$blang[user_login]</legend>');
- document.write('<p><label for="username">$blang[username]</label><input type="text" name="username" id="username" /></p>');
- document.write('<p><label for="userpass">$blang[password]</label><input type="password" name="password" id="userpass" /></p>');
- document.write('<p><button type="submit" name="loginsubmit" id="dologin" value="true">$blang[login]</button></p> <p style="float:right"><a href="$bbsurl/register.php?referer=$siteurl/index.php" target="_blank">$blang[registration]</a> <a href="$bbsurl/member.php?action=lostpasswd" target="_blank">$blang[find_passwords]</a></p>');
- document.write('</fieldset>');
- document.write('</form>');
- END;
- }
- ?>
复制代码 附件第一个是utf-8编码。
还要记得修改一下softsea的css文件- #userpanel p { margin: 0.5em 0; margin-left: 3em; }
复制代码 [ 本帖最后由 jsaren 于 2007-4-12 01:15 编辑 ] |
-
1
评分次数
-
|