|
|
|
|
<?php
|
|
|
|
|
use yii\helpers\Html;
|
|
|
|
|
?>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
<title>车务管理系统</title>
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="/css/login.css">
|
|
|
|
|
<?=Html::csrfMetaTags() ?>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<table width="681" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:120px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="353" height="259" align="center" valign="bottom" background="/images/login_1.png">
|
|
|
|
|
<table width="90%" border="0" cellspacing="3" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="right" valign="bottom" style="color:#05B8E4">
|
|
|
|
|
Power by <a href="#" target="_blank">华信互动</a> Copyright 2016-2017
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
<td width="195" background="/images/login_2.gif">
|
|
|
|
|
<table width="190" height="106" border="0" align="center" cellpadding="2" cellspacing="0">
|
|
|
|
|
<form method="post" id="theFrm">
|
|
|
|
|
<tr>
|
|
|
|
|
<td height="50" colspan="2" align="left"> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="60" height="30" align="left">工 号</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input id="username" name="username" type="TEXT" style="width:120px;background:url(/images/login_6.gif) repeat-x; border:solid 1px #27B3FE; height:20px; background-color:#FFFFFF" size="14">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td height="30" align="left">登陆密码</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input id="password" name="password" TYPE="PASSWORD" style="width:120px;background:url(/images/login_6.gif) repeat-x; border:solid 1px #27B3FE; height:20px; background-color:#FFFFFF" size="16">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td height="20" colspan="2" align="center"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="center">
|
|
|
|
|
<input id="login-btn" type="button" name="login-btn" style="width:69px;background:url(/images/login_5.gif) no-repeat;" value=" 登 陆 ">
|
|
|
|
|
<input type="reset" name="reset" style="width:69px;background:url(/images/login_5.gif) no-repeat" value=" 取 消 ">
|
|
|
|
|
</td>
|
|
|
|
|
<tr>
|
|
|
|
|
<td height="5" colspan="2"></td>
|
|
|
|
|
</form>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
<td width="133" background="/images/login_3.gif"> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td height="161" colspan="3" background="/images/login_4.gif"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
|
|
|
|
|
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
if (window.top.location.href != window.location.href) {
|
|
|
|
|
window.top.location.href = window.location.href;
|
|
|
|
|
}
|
|
|
|
|
$(function () {
|
|
|
|
|
$("#login-btn").click(function () {
|
|
|
|
|
var params = $("#theFrm").serialize();
|
|
|
|
|
$.post('/common/login', params, function (obj) {
|
|
|
|
|
if (obj.success) {
|
|
|
|
|
window.location.href = obj.url;
|
|
|
|
|
} else {
|
|
|
|
|
alert(obj.msg);
|
|
|
|
|
}
|
|
|
|
|
}, 'json');
|
|
|
|
|
});
|
|
|
|
|
$("#password").keypress(function (event) {
|
|
|
|
|
if (event.keyCode == 13) {
|
|
|
|
|
$("#login-btn").click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|