{{include file=Main_View('head')}}
	<form class="layui-form" method="post">
		<div class="w-100 left bcf mt10">
			<div class="layui-form-item mt10">
				<label class="layui-form-label">用户名</label>
				<div class="layui-input-block">
					<input type="text" class="layui-input" name="username" />
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">密码</label>
				<div class="layui-input-block">
					<input type="password" class="layui-input" name="password" />
				</div>
			</div>
			<if condition="C('login|LOGIN.login_is_yzm')">
			<div class="layui-form-item">
				<label class="layui-form-label">验证码</label>
				<div class="layui-input-block">
					<input type="text" placeholder="" class="layui-input w100 left" name="yzm" />
					<img src="/Verification_Code{{C('HTML')}}" alt="点击图片更换验证码" title="点击图片更换验证码" class="left ml10"  onclick="this.src='/Verification_Code?'+Math.random();"/>
				</div>
			</div>
			</if>
		</div>
		
		<table class="layui-table" >
			<tr>
				<td colspan="2" align="center" class="login_input">
					<input type="hidden" name="step" value="post" />
					<button class="layui-btn layui-btn-normal">登陆</button>
					<a href="/login/index/reg{{C('HTML')}}">注册</a>
					<a href="/login/index/forgot{{C('HTML')}}">忘记密码</a>
					<p style=" margin-top: 10px;">
						其它登陆方式：
						<foreach array="C('login|MORE_LOGIN_LIST')" f='true'>
							<php>
								if($row['is_open_window']==0){
									$loginurl=$row['loginurl'];
									$onchick="";
									$target='target="_blank"';
								}else{
									$target='';
									$loginurl='javascript:';
									$onchick='onclick="'.$key.'()"';
								}
							</php>
							
							<if condition="$row[thumb]">
								<a title="{{$row[name]}}" {{$target}} href="{{$loginurl}}" {{$onchick}}><img alt="{{$row[name]}}" src="{{$row[thumb]}}" /></a>
							<else>
							<a href="{{$loginurl}}" {{$target}} {{$onchick}}>{{$row[name]}}</a>
							</if>
							
							<if condition="$row['is_open_window']==1">
								<script>
								function {{$key}}(){
										window.open("{{$row['loginurl']}}","{{$key}}", "width=690,height=460,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
								}
								</script>
							</if>
							
						</foreach>
					</p>
				</td>
			</tr>
		</table>
	</form>

{{include file=Main_View('foot')}}