<!DOCTYPE HTML>
<html>
<head lang="zh-CN">
<meta charset="UTF-8">
<meta content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
<title>网络接入认证 - Free WiFi</title>
    <link rel="stylesheet" href='dist/css/min.css'/>
	<link href="dist/css/bootstrap.min.css" rel="stylesheet">
	<link href="dist/css/theme.css" rel="stylesheet">
	<script src="dist/js/jquery-1.11.1.min.js"></script>
	<script src="dist/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="dist/js/login1.js"></script>
	<script src="dist/js/encode.js"></script>
	<script type="text/javascript" src="dist/js/jquery.min.js"></script>
    <script type="text/javascript" src="dist/js/yxMobileSlider.js"></script>
</head>
<body role="document" id="main">
<!-- $(if chap-id) //-->
<form name="sendin" action="$(link-login-only)" method="post">
	<input type="hidden" name="username" />
	<input type="hidden" name="password" />
	<input type="hidden" name="dst" value="$(link-orig)" />
	<input type="hidden" name="popup" value="true" />
</form>
<script type="text/javascript" src="/md5.js"></script>
<script type="text/javascript">
function doLogin() {
	document.sendin.username.value = document.login.username.value;
	document.sendin.password.value = hexMD5('$(chap-id)' +document.login.password.value + '$(chap-challenge)');
	document.sendin.submit();
	return false;
}
</script>
<!-- $(endif) //-->
<div>
<div class="slider">
	<ul>
		<!-- 轮播图,根据自己需要添加,一行一张 //-->
		<li><img src="img/1/1.jpg"></li>
		<li><img src="img/1/2.jpg"></li>
		<li><img src="img/1/3.jpg"></li>
		<li><img src="img/1/4.jpg"></li>
		<li><img src="img/1/5.jpg"></li>
	</ul>
</div>
<span>
 			<h3>欢迎使用本网络!</h3>
			<!--$(if trial == 'yes') //-->
				  本网络提供免费试用, <a style="color: #FF8080"href="$(link-login-only)?dst=$(link-orig-esc)&amp;username=T-$(mac-esc)">请点这里</a>(30分钟/天)
				  <!--$(endif) //--> 
				  <span style="color:#ff0000; font-size:20px;">
				  $(if error)<br />
					<div >
					<script type="text/javascript">
					var error = "$(error)";
					if (error == "code=102,Login Failed. Your account mac address is bind") {
					document.write("你的账号已绑定其它终端,请解绑后再登录");
					}
					else if (error == "code=101,Login Failed. Please check your Username and Password") {
					document.write("你的账号密码不对,再输一遍呢");
					}
					else if (error == "code=103,Your account nas ipaddress is bind") {
					document.write("认证失败,请解绑NAS后重新认证");
					}
					else if (error == "code=104,Your account vlan port is bind") {
					document.write("认证失败,请解绑VLAN后重新认证");
					}
					else if (error == "code=105,Simultaneous connections limited to 1") {
					document.write("认证失败,请下线在线终端后重新认证");
					}
					else if (error == "code=106,Login Failed. Your account has expired") {
					document.write("认证失败,账号已到期或者未缴费,请缴费后重新认证");
					}
					else if(error.search("not found") != -1) {
					document.write("无效的用户名或密码");
					}
					else document.write("$(error)<br />")
					</script>
					</div>$(endif)
                    <div>
                <div class="page-account">
                 	<ul class="form-input">
	                <form name="login" action="$(link-login-only)" method="post" $(if chap-id) onSubmit="return doLogin()" $(endif) role="form">
                    <input type="hidden" name="dst" value="$(link-orig)" />
				    <input type="hidden" name="popup" value="true" />
	            <div>
				</div>

				<div class="form-group">
			        <input type="text" name="username" id="userid" class="form-control" placeholder="请输入账号"/>
		        <div>
                <div class="page-account" id="rz" class="col-md-10">
		<div class="form-group">
			<input type="password"name="password" id="password" class="form-control" placeholder="请输入密码"/>
		<div>
		<input type="submit" name="login" class="btn-submit" value="登录"/>
	</form>
	</ul>
<div class="tab-by">
<p><a href="#" onclick="disp_alert()">申请开通上网账号</a></p>
	<script type="text/javascript">
function disp_alert()
{
alert("需要开通上网帐号请加微信caoyanan85\n本宽带为光纤100M每天可免费体验30分钟!")
}
</script>          

				本服务由星云创新提供技术支撑
	</div>
</div>
<span id="error" style="display:none;">$(if error)$(error)$(endif)</span>
<div id="startLoadingResource" style="display:none;position: fixed; width: 100%; height: 100%; z-index: 99999999;background-color:rgba(255, 255, 255, 0)">
	<div class="loading" style="position: fixed; top:50%;left:50%; -webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);">
		<div class="tu-loading">&nbsp;</div>
</div>
</div>
</td>
<script type="text/javascript">
//图片轮播
$(".slider").yxMobileSlider({width:640,height:320,during:4000});
/**
 * HotsPot Auth JSONP
 * 
 * @author zhutou3 <576673403@qq.com>
 * @version 0.2 
 * @description 
 * 
 * 代码块放置在Body结束前
 * 
 **/
document.login.username.focus();
</script>
</body>
</html>