<?php
require_once(dirname(__FILE__)."/config.php");
//未登录显示的信息
if(!$cfg_ml->IsLogin()) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>会员登录</title>
<link href="/skin/img/login.css" type="text/css" rel="stylesheet"> 
</head>
<body>

<div class="login">
<form name="userlogin" action="/member/index_login.php" method="POST">
                <input type="hidden" name="fmdo" value="login" />
                <input type="hidden" name="dopost" value="login" />
                <input type="hidden" name="keeptime" value="604800" />

<ul id="userinfo"><label>用户名：</label><input id=userid name=userid onfocus="if(this.value=='用户名')this.value='';" value="用户名"  class="ipt" /><label>密码：</label><input id=pwd name=pwd onfocus="if(this.value=='密 码')this.value='';" value="密 码" class="ipt" /> 
<input name="I1" type="submit" value="登录" class="reg" /><input name="" type="button" value="注册" class="sub" onclick="javascript:window.open('/member/reg_new.php')" /></ul></div></div>



<?php
}
//登录后显示的信息
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>欢迎您 - <?php echo $cfg_ml->M_UserName; ?></title>
<style type="text/css">
html, body, span, div, a, ul, li, form, label{vertical-align: baseline; font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 100%; outline: 0; padding: 0; margin: 0; border: 0;}
:focus {outline: 0;}
ul {list-style: none;}
body {font-family:Arial, "宋体"; font-size: 12px; line-height: 1; color:#666;}
a{text-decoration:none;	color:#707070;}
a:hover{text-decoration:underline; color:#06adf3;}
.login{width:530px; height:38px; background:url('/templets/tu/login_bg.gif') repeat-x;}
	.login li{float:left; height:28px; display:inline;}
	.login_sub{border:1px solid #cdcdcd; width:102px; height:17px; margin:3px 5px 2px 0px; line-height:18px; color:#999; *margin-top:2px;}
	.feedback{float:right; width:55px; line-height:28px; padding-left:6px;}
	.reg{color:#06adf3;}
	.reg_pwd{text-indent:1em; line-height:28px;}
	.logined{line-height:28px;width:160px;height:28px;overflow:hidden;text-overflow:ellipsis;padding-left:5px;}
	.login_info{line-height:28px;}

.fpwd a{text-decoration:none; color:#707070;}
.fpwd a:hover{text-decoration:underline; color:#06ADF3;}
.feedback a{text-decoration:none; color:#707070;}
.feedback a:hover{text-decoration:underline; color:#06ADF3;}
</style> 
</head>
<body>
<div class="login" style="padding:6px;">
<ul>
<li class="logined">&nbsp;&nbsp;&nbsp;&nbsp;欢迎回来 - <?php echo $cfg_ml->M_UserName; ?></li><li class="login_info">[&nbsp;&nbsp;<a href="<?php echo $cfg_memberurl; ?>/mybox.php" target="_blank">我的收藏</a>&nbsp;&nbsp;<font color="#c6c6c8">|</font>&nbsp;&nbsp;<a href="<?php echo $cfg_memberurl; ?>/index.php" target="_blank">用户中心</a>&nbsp;&nbsp;<font color="#c6c6c8">|</font>&nbsp;&nbsp;<a href="<?php echo $cfg_memberurl; ?>/index_login.php?fmdo=login&dopost=exit" target="_self">退出</a>&nbsp;&nbsp;]</li>
</ul>
</div>
</body>
</html>
<?php
}
?>