<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie -stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width ,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" /> ;
<!--[IE 9인 경우]>
<script type="text/javascript" src="__STATIC__/lib/html5.js"></script>
<script type= "text/javascript" src="__STATIC__/lib/respond.min.js"></script>
<![endif]-->
<link href="__STATIC__/static/h-ui /css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__STATIC__/static/h-ui/css/H-ui.login.css " rel="stylesheet" type="text/css" />
<link href="__STATIC__/static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css " />
<link href="__STATIC__/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
< script>DD_belatedPNG.fix('*');</script><![endif]-->
<title>后台登录 - H-ui.admin.page v3.0</title>
< ;meta name="keywords" content="H-ui.admin v3.0,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="설명 " content="H-ui.admin v3.0,是一款由國人开发的轻weight级扁平化网站后台模板,完全免费开源的网站后台管系统模版, 适합중소형CMS后台系统。">
</head>
<body>
<input type="hidden" id="TenantId" name="TenantId" value="" />
<div class="header"></ div>
<div class="loginWraper">
<div id="loginform" class="loginBox">
<form class="form form-horizontal" action="index.html" method=" post">
<div class="row cl">
<label class="form-label col-xs-3"><i class="Hui-iconfont"> </label>
<div class="formControls col-xs-8">
<input id="" name="name" type="text" placeholder="账户" 클래스 ="input-text size-L">
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-3 "><i class="Hui-iconfont"></i></label>
<div class="formControls col-xs-8">
<입력 ID ="" name="password" type="password" placeholder="密码" class="input-text size-L">
</div>
</div>
<div class="row cl">
<div class="formControls col-xs-8 col-xs-offset-3">
<input name="verify" class="input-text size-L" type="text " placeholder="验证码" onblur="if(this.value==''){this.value='验证码:'}" onclick="if(this.value=='验证码:'){this .value='';}" value="" style="width:150px;">
<img id="verify_img" src="{:captcha_src()}">
<a id=" kanbuq" href="javascript:refreshverify();">看不清,换一张</a>
</div>
</div>
<div class="row cl">
<div class="formControls col-xs-8 col-xs-offset-3">
<label for="online">
<input type="checkbox" name="online" id= "online" value="">
使我保持登录状态</label>
</div>
</div>
<div class="row cl">
<div class="formControls col-xs-8 col-xs-offset-3">
<입력 이름="" type="button" id="login" class="btn btn-success radius size-L" value=" 로그인 등록 ">
</div>
< /form>
</div>
</div>
<script type="text/javascript" src="__STATIC__/lib/jquery/1.9.1/jquery .min.js">< ;/script>
<script type="text/javascript" src="__STATIC__/static/h-ui/js/H-ui.js"></script>
<!--Ajax 제출 스크립트 -- >
<script>
$(function(){
//로그인 버튼에 클릭 이벤트 추가
$("#login").on('click',function( event){
$. ajax({
type: "POST",//제출 방법은 POST입니다
url: "{:url('checklogin')}",//제출 데이터 처리를 위한 파일 주소 설정
data: $ ("form" ).serialize(), //추천을 직렬화하여 제출
datatype: 'json', //제출 데이터 유형을 json으로 설정
성공: function(data)
{ //반환 플래그만 이고 처리
경고(데이터);
}
})
})
})
</script>
<!--인증 코드 새로 고침을 위한 스크립트-->
<script>
var ts = Date.parse(new Date())/1000;
// $("verify_img").attr("src" , "/captcha?id="+ts);
//인증 코드 이미지 새로 고침
var img = document.getElementById('verify_img');
img.src = "/captcha?id="+ts;
</script>
</body>
</ html>
> param()
return['status'=>$status,'mes 세이지'=>$result,'data'=>$data ];
post를 이용하여 ajax를 제출할 때, 작성되지 않은 매개변수가 하나 있습니다.