<?php if(!empty($uid)) : ?>
	document.write('<h3>我的菜单</h3>');
	document.write('<ul class="msgtitlelist">');
	document.write('<li><a href="#" target="_self"><?php echo $nickname ?></a></li>');
	document.write('<li><a href="<?php echo DIR_INSTALL ?>admin/main/index.php" target="_blank">我的控制面板</a></li>');
	document.write('<li><a href="logout.php" target="_self">安全退出</a></li>');
	document.write('</ul>');
<?php else : ?>
	document.write('<form id="login" method="post" name="login" action="panel_login.php?act=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="password" /></p>');
	document.write('<p><button type="submit" name="loginsubmit" id="dologin" value="true">登录</button></p> <a href="reg.php" target="_self">注册</a> <a href="getpwd.php" target="_self">找回密码</a></p>');
	document.write('</fieldset>');
	document.write('</form>');	
<?php endif; ?>