<?php

/*
	[SupeSite/X-Space] (C)2001-2006 Comsenz Inc.
	用戶動態面板

	$RCSfile: batch.panel.php,v $
	$Revision: 1.8 $
	$Date: 2006/11/02 01:15:02 $
*/

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

getcookie();

$uid = $_SGLOBAL['supe_uid'];

if(!empty($uid)) {
	print <<<END
	document.write('<h3>我的菜單</h3>');
	document.write('<ul class="msgtitlelist">');
	document.write('<li><a href="$siteurl/?$uid" target="_blank">我的個人空間</a> &nbsp; <a href="$siteurl/spacecp.php" target="_blank">空間管理</a></li>');
	document.write('<li><a href="$bbsurl/pm.php" target="_blank">我的站內消息</a> &nbsp; <a href="$bbsurl" target="_blank">訪問論壇</a></li>');
	document.write('<li><a href="$siteurl/index.php?action_site_type_panel" target="_self">我的快捷面板</a> &nbsp; <a href="$siteurl/batch.login.php?action=logout" target="_self">安全退出</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>用戶登錄</legend>');
	document.write('<p><label for="username">用戶名</label><input type="text" name="username" id="username" /></p>');
	document.write('<p><label for="userpass">密　碼</label><input type="password" name="password" id="userpass" /></p>');
	document.write('<p><button type="submit" name="loginsubmit" id="dologin" value="true">登錄</button></p> <a href="$bbsurl/register.php?referer=$siteurl/index.php" target="_blank">註冊</a> <a href="$bbsurl/member.php?action=lostpasswd" target="_blank">找回密碼</a></p>');
	document.write('</fieldset>');
	document.write('</form>');
END;
}

?>