<!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=EmulateIE7" />
<base href="<?php echo $DIRCMS['site_url'];?>" />
<title>会员登录-<?php echo $DIRCMS['site_name'];?></title>
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/share.css" rel="stylesheet" type="text/css" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/login.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="images/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
function checkLogin()
{
	if(document.getElementById('username').value.length<3 || document.getElementById('username').value.length>30)
	{
		alert('用户名只能长度为3-30个字符!');
		document.getElementById('username').focus();
		return false;
	}
	if(document.getElementById('password').value.length<3 || document.getElementById('password').value.length>30)
	{
		alert('用户密码只能以字母开头且长度为3-30个字符!');
		document.getElementById('password').focus();
		return false;
	}
	return true;
}
</script>
</head>

<body>
<div class="head_lang">
	<div class="head_top">
		<span class="span_left">
		<div id="login_div">
		<a href="member/index.php?file=login&action=login">登录</a> | <a href="member/index.php?file=login&action=register">注册</a>
		</div>
		<div id="usercenet" style="display:none">
		浏览器不支持Js!
		</div>
		</span>
		<span class="span_right"><a href="<?php echo $DIRCMS['site_url'];?>">网站首页</a> | <a href="<?php echo $DIRCMS['site_url'];?>post/index.php">在线投稿</a> | <a href="search/index.php">站内搜索</a> | <a href="sitemaps.xml" target="_blank">网站地图</a> | <a href="javascript:void(0);" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo $DIRCMS[site_url];?>');" title="把<?php echo $DIRCMS[site_name];?>设为首页">设为首页</a> | <a href="javascript:void(0);" onClick="javascript:window.external.AddFavorite('<?php echo $DIRCMS[site_url];?>','<?php echo $DIRCMS[site_name];?>');">加入收藏</a> </span>
	</div>
</div>
<script language="javascript" src="login.js.php"></script>
<div id="logo"></div>
<div id="login">
	<div class="left">
	<img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/passport.jpg" />
	</div>
    <div class="right">
<form action="member/index.php?file=login&action=login" method="post" onsubmit="return checkLogin();" name="myform">
<input type="hidden" name="do_submit" value="1" />
<div  class="gray">
  <table width="300" style="width:300px; margin:0px auto" border="0" cellspacing="0" class="gray_tb" cellpadding="0">
  <tr>
    <td height="50" colspan="3" align="center" class="bule">会员登录</td>
    </tr>
  <tr>
    <td width="81" height="40" align="right">会 员 名</td>
    <td height="30" colspan="2"><input type="text" name="username" id="username" size="8" /></td>
  </tr>
  <tr>
    <td height="40" align="right">会员密码</td>
    <td height="30" colspan="2"><input type="password" name="password" id="password" size="8" /></td>
  </tr>
  <?php if($ischeckcode) { ?>
  <tr>
    <td height="40" align="right">验 证 码</td>
    <td height="30" colspan="2"><input type="text" name="chkcode" id="checkcode" class='mm'/> <img src="<?php echo $DIRCMS['site_url'];?>checkcode.php" onclick="this.src='<?php echo $DIRCMS[site_url];?>checkcode.php?id='+Math.random()*5;" style="cursor:pointer;" alt="验证码,看不清楚?请点击刷新验证码"/></td>
  </tr>
  <?php }?>
  <tr>
    <td height="40" align="right">登陆时间</td>
    <td height="30" colspan="2">
    	<select name="cookietime">
        	<option value="0">不保存</option>
            <option value="86400">保存一天</option>
            <option value="2592000">保存一月</option>
            <option value="31536000">保存一年</option>
        </select>    </td>
  </tr>
  <tr>
    <td height="40" align="right">&nbsp;</td>
    <td width="101" height="30"><input type="submit" value="" name="button" class="button"/></td>
    <td width="116"><a href="member/index.php?file=login&action=getpwd">忘记密码？</a></td>
    </tr>
  <tr>
    <td height="40" colspan="3" align="center">如果你还不是会员，请先<a href="member/index.php?file=login&action=register">注册</a>！</td>
    </tr>
</table>
</div>
</form>

    </div>
</div>
<?php include template('footer');?>
</body>
</html>