<?php if (!defined('THINK_PATH')) exit();?><!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=utf-8" />
<title><?php echo ($Sunnyi["name"]); ?> - <?php echo (L("SYS_LOGIN")); ?></title>
<link rel="stylesheet" type="text/css" href="__TMPL__ThemeFiles/Css/style.css" />
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/Base.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/prototype.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/mootools.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/Ajax/ThinkAjax.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/Form/CheckForm.js"></script>
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/common.js"></script>
 <script language="JavaScript">
<!--
var PUBLIC	 =	 '__TMPL__ThemeFiles';
ThinkAjax.image = [	 '__TMPL__ThemeFiles/Images/loading2.gif', '__TMPL__ThemeFiles/Images/ok.gif','__TMPL__ThemeFiles/Images/update.gif' ]
ThinkAjax.updateTip	=	'<?php echo (L("LOGIN_TIP")); ?>';
function loginHandle(data,status){
if (status==1)
{
$('result').innerHTML	=	'<span style="color:blue"><img SRC="__TMPL__ThemeFiles/Images/ok.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle" > <?php echo (L("SUCCESS_JUMP_3_SEC")); ?></span>';
$('form1').reset();
window.location = '__APP__';
}
}
function keydown(e){
	var e = e || event;
	if (e.keyCode==13)
	{
	ThinkAjax.sendForm('form1','<?php echo u('Public/checkLogin');?>',loginHandle,'result');
	}
}
function fleshVerify(){ 
//重载验证码
var timenow = new Date().getTime();
$('verifyImg').src= '<?php echo u('Public/verify');?>&rand='+timenow;
$('verifyImg').src= '<?php echo u('Public/verify');?>/rand/'+timenow;

}
//-->
</script>
</head>
<body onLoad="document.login.adm_name.focus()" >
<form method='post' name="login" id="form1" >
<div class="tCenter hMargin">
<table id="checkList" class="login shadow" cellpadding=0 cellspacing=0 >
<tr><td height="5" colspan="2" class="topTd" ></td></tr>
<tr class="row" ><Th colspan="2" class="tCenter space" ><img src="__TMPL__ThemeFiles/Images/preview_f2.png" width="32" height="32" border="0" alt="" align="absmiddle"> <?php echo ($Sunnyi["name"]); ?> <?php echo (L("SYS_LOGIN")); ?></th></tr>
<tr><td height="5" colspan="2" class="topTd" ></td></tr>
<tr class="row" ><td colspan="2" class="tCenter"><div id="result" class="result none"></div></td></tr>
<tr class="row" ><td class="tRight" width="30%"><?php echo (L("ADM_NAME")); ?>：</td><td><input type="text" class="medium bLeftRequire" check="Require" warning="<?php echo (L("ADM_NAME_TIP")); ?>" name="adm_name"></td></tr>
<tr class="row" ><td class="tRight"><?php echo (L("ADM_PWD")); ?>：</td><td><input type="password" class="medium bLeftRequire" check="Require" warning="<?php echo (L("ADM_PWD_TIP")); ?>" name="adm_pwd"></td></tr>
<?php if((C("ADV_LOGIN_VERIFY"))  ==  "1"): ?><tr class="row" ><td class="tRight"><?php echo (L("VERIFY_CODE")); ?>：</td><td><input type="text" onKeyDown="keydown(event)" class="medium bLeftRequire" check="Require" warning="<?php echo (L("VERIFY_CODE_TIP")); ?>" name="verify"> </td></tr>
<tr class="row" ><td class="tCenter" colspan="2" style="color:gray;"><?php echo (L("VERIFY_CODE_LONG_TIP")); ?></td></tr>
<tr class="row" ><td class="tRight"><?php echo (L("NUMBER")); ?>：<br/><?php echo (L("WORD")); ?>：</td><td><img id="verifyImg" SRC="<?php echo u('Public/verify?adv=1');?>" onClick="fleshVerify(1)" BORDER="0" ALT="<?php echo (L("FRESH_VERIFY_TIP")); ?>" style="cursor:pointer" align="absmiddle"></td></tr>
<?php else: ?>
<tr class="row" ><td class="tRight"><?php echo (L("VERIFY_CODE")); ?>：</td><td><input type="text" onKeyDown="keydown(event)" class="small bLeftRequire" check="Require" warning="<?php echo (L("VERIFY_CODE_TIP")); ?>" name="verify"> <img id="verifyImg" SRC="<?php echo u('Public/verify');?>" onClick="fleshVerify()" BORDER="0" ALT="<?php echo (L("FRESH_VERIFY_TIP")); ?>" style="cursor:pointer" align="absmiddle"></td></tr><?php endif; ?>
<tr class="row" ><td class="tCenter" align="justify" colspan="2">
<input type="hidden" name="ajax" value="1">
<input type="button" value="<?php echo (L("LOGIN")); ?>" onClick="ThinkAjax.sendForm('form1','<?php echo u('Public/checkLogin');?>',loginHandle,'result')" class="submit medium hMargin">
</td></tr>
<tr><td height="5" colspan="2" class="bottomTd" ></td></tr>
</table>
</div>
</form>
</body>
</html>