<!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=gbk" />
<title>秀影点播系统</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="images/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function CheckLogin()
{
	var obj = document.login;
	if (obj.username.value == "" )
	{
		alert("请填写登录用户名!")
		obj.username.focus();
		return false
	}
	if (obj.password.value.length<5)
	{
		alert('请填写大于五位长度字符或者字母组合的密码!')
		obj.password.focus();
		return false
	}
	if (obj.password.value == "" )
	{
		alert("请填写登录密码!");
		obj.password.focus();
		return false
	}
	return true
}
</script>
</head>
<body>
{if cookie('username') && cookie('uid')}
		  <table width="194" border="0" align="center" cellpadding="2" cellspacing="2">
		  <form action="index.php?mod=logining" method="post" name="login">
              <tr>
                <td height="12" colspan="2">欢迎您:{#$login['username']#}</td>
              </tr>
			  <tr>
                <td align="right" >类型：</td>
                <td>{#$login['usertype'] ? '包月用户' : '计点用户'#}</td>
              </tr>
              <tr>
                <td width="58" align="right" >等级：</td>
                <td width="122">{#$login['group']#}</td>
              </tr>
			  {if $login['usertype']==0}
              <tr>
                <td align="right" >影币：</td>
                <td>{#$login['point']#} 枚</td>
              </tr>
			  {else}
              <tr>
                <td align="right" >包月：</td>
                <td >{#$login['lifetime']#}</td>
              </tr>
			  {/if}
			  {if $login['usergroup'] == VIP_GROUPID}
			  <tr>
                <td align="right" >秘密通道:</td>
                <td ><a href="index.php?mod=vip" target="_parent"><font color=red>点击这里进入</font></a></td>
              </tr>
			  {/if}
              <tr>
                <td height="20" colspan="2" ><a href="index.php?mod=logining&action=exit" onclick="return confirm('确认退出吗!')">退出登录</a> <a href="index.php?mod=members" target="_parent">进入控制面板</a></td>
              </tr>
			  </form>
</table>
{elseif ($netbar=isnetbar())}
<table width="200" border="00" cellspacing="0" cellpadding="3">
  <tr>
    <td colspan="2" align="center">欢迎来到:{#$netbar['netbar']#}</td>
  </tr>
  <tr>
    <td width="69">观看权限:</td>
    <td width="111">免费观看</td>
  </tr>
    <tr>
    <td>开通日期：</td>
    <td>{#date("Y-m-d",$netbar['addtime'])#}</td>
  </tr>
  <tr>
    <td>到期时间：</td>
    <td>{#date("Y-m-d",$netbar['lifetime'])#}</td>
  </tr>
  <tr>
    <td colspan="2" align="center"><a href="{#$installdir#}index.php?mod=validate" target="_parent">点这里使用注册ID登录</a></td>
  </tr>
</table>
{elseif empty($config['playmode'])}
<div style="width:98%;margin:5px"><br />欢迎您进入{#$config['WebSite']#}本站影片全部免费点播无需注册&nbsp;
</div>
{else}
		  <table width="194" border="0" align="center" cellpadding="2" cellspacing="0">
		  <form action="{#$install#}index.php?mod=logining&action=login" method="post" name="login" onsubmit="return CheckLogin();">
              <tr>
                <td height="12" colspan="3"></td>
              </tr>
              <tr>
                <td width="61" align="right" ><strong>用户名：</strong></td>
                <td width="125" colspan="2"><input name="username" type="text" class="input" id="username" onfocus="this.className='on_input'" onblur="this.className='input'" style="width:110px;" /></td>
              </tr>
              <tr>
                <td align="right" ><strong>密　码：</strong></td>
                <td colspan="2"><input name="password" type="password" class="input" id="password" onfocus="this.className='on_input'" onblur="this.className='input'" style="width:110px;" /></td>
              </tr>
              <tr>
                <td colspan="3" ><table width="89%" border="0" align="center" cellpadding="2" cellspacing="0">
                  <tr>
                    <td><input name="login" type="submit" class="login-1" value="登 录" onmousemove="this.className='login-2'" onmouseout="this.className='login-1'"/></td>
                    <td align="center"><div class="login-1"><a href="{#$install#}index.php?mod=register" target="_blank" onmousemove="this.className='login-2'" onmouseout="this.className='login-1'" >加入会员</a></div></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td height="20" colspan="3" >&nbsp;</td>
              </tr>
			  <input type="hidden" name="referer" value="aW5kZXgucGhwP21vZD1sb2dpbg==" />
			  </form>
</table>
{/if}
<table width="194" border="0" align="center" cellpadding="1" cellspacing="0">
            <tr>
              <td width="32" height="26" align="center"><img src="images/tb_left1.jpg" width="20" height="21" /></td>
              <td width="65" bordercolor="#FFFFFF"><a href="{#$installdir#}index.php?mod=recoverpasswd" target="_top" >密码找回</a></td>
              <td width="23" align="center"><img src="images/tb_left2.jpg" width="21" height="20" /></td>
              <td width="66"><a href="{#$installdir#}index.php?mod=members&amp;fun=help" target="_top" >常见问题</a></td>
            </tr>
            <tr>
              <td height="26" align="center"><img src="images/tb_left3.jpg" width="20" height="19" /></td>
              <td align="left"><a href="{#$installdir#}index.php?mod=members&amp;fun=payment" target="_top" >我要充值</a></td>
              <td><img src="images/tb_left4.jpg" width="23" height="19" /></td>
              <td><a href="{#$installdir#}index.php?mod=members" target="_top" >控制中心</a></td>
            </tr>
</table>
</body>
</html>