多语言翻译
parent
0a946f4aa5
commit
777f467529
|
@ -59,10 +59,13 @@
|
|||
<div class="position-relative">
|
||||
<div id="login-box" class="login-box visible widget-box no-border">
|
||||
<div class="widget-body">
|
||||
<form id="loinForm" class="form-horizontal" check="loginController.do?checkuser" role="form" action="loginController.do?login" method="post">
|
||||
<form id="loinForm" class="form-horizontal" check="loginController.do?checkuser"
|
||||
role="form" action="loginController.do?login" method="post">
|
||||
<div class="widget-main">
|
||||
<div class="alert alert-warning alert-dismissible" role="alert" id="errMsgContiner">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<div class="alert alert-warning alert-dismissible" role="alert"
|
||||
id="errMsgContiner">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<div id="showErrMsg"></div>
|
||||
</div>
|
||||
<h4 class="header blue lighter bigger">
|
||||
|
@ -74,32 +77,38 @@
|
|||
<div class="space-6"></div>
|
||||
<label class="block clearfix">
|
||||
<span class="block input-icon input-icon-right">
|
||||
<input type="text" name="userName" class="form-control" id="userName" value="admin"/>
|
||||
<input type="text" name="userName" class="form-control" id="userName"
|
||||
value="admin"/>
|
||||
<i class="ace-icon fa fa-user"></i>
|
||||
</span>
|
||||
</label>
|
||||
<label class="block clearfix">
|
||||
<span class="block input-icon input-icon-right">
|
||||
<input type="password" name="password" class="form-control" id="password" value="llg123"/>
|
||||
<input type="password" name="password" class="form-control" id="password"
|
||||
value="llg123"/>
|
||||
<i class="ace-icon fa fa-lock"></i>
|
||||
</span>
|
||||
</label>
|
||||
<label class="block clearfix">
|
||||
<div class="input-group">
|
||||
<input type="text" style="width:150px" name="randCode" class="form-control" id="randCode"/>
|
||||
<span class="input-group-addon" style="padding: 0px;"><img id="randCodeImage" src="randCodeImage" /></span>
|
||||
<input type="text" style="width:150px" name="randCode"
|
||||
class="form-control" id="randCode"/>
|
||||
<span class="input-group-addon" style="padding: 0px;"><img
|
||||
id="randCodeImage" src="randCodeImage"/></span>
|
||||
</div>
|
||||
</label>
|
||||
<div class="space"></div>
|
||||
<div class="clearfix">
|
||||
<label class="inline">
|
||||
<input type="checkbox" class="ace" id="on_off" name="remember" value="yes"/>
|
||||
<input type="checkbox" class="ace" id="on_off" name="remember"
|
||||
value="yes"/>
|
||||
<span class="lbl">
|
||||
<t:mutiLang langKey="login.saveusername"/>
|
||||
|
||||
</span>
|
||||
</label>
|
||||
<button type="button" id="but_login" onclick="checkUser()" class="width-35 pull-right btn btn-sm btn-primary">
|
||||
<button type="button" id="but_login" onclick="checkUser()"
|
||||
class="width-35 pull-right btn btn-sm btn-primary">
|
||||
<i class="ace-icon fa fa-key"></i>
|
||||
<span class="bigger-110">
|
||||
<t:mutiLang langKey="login.login"/>
|
||||
|
@ -115,7 +124,10 @@
|
|||
<a href="#" class="forgot-password-link">
|
||||
语言
|
||||
<i class="ace-icon fa fa-arrow-right"></i>
|
||||
<t:dictSelect id="langCode" field="langCode" typeGroupCode="lang" hasLabel="false" extendJson="{style:'padding:2px; width:80px;'}" defaultVal="zh-cn"></t:dictSelect>
|
||||
<t:dictSelect id="langCode" field="langCode" typeGroupCode="lang"
|
||||
hasLabel="false"
|
||||
extendJson="{style:'padding:2px; width:80px;'}"
|
||||
defaultVal="zh-cn"></t:dictSelect>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -145,7 +157,6 @@
|
|||
</div>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.min.js"></script>
|
||||
<script type="text/javascript" src="plug-in/jquery/jquery.cookie.js"></script>
|
||||
<script type="text/javascript" src="plug-in/mutiLang/en.js"></script>
|
||||
|
@ -158,6 +169,7 @@
|
|||
optErrMsg();
|
||||
});
|
||||
$("#errMsgContiner").hide();
|
||||
|
||||
function optErrMsg() {
|
||||
$("#showErrMsg").html('');
|
||||
$("#errMsgContiner").hide();
|
||||
|
@ -177,6 +189,7 @@
|
|||
}
|
||||
newLogin();
|
||||
}
|
||||
|
||||
//表单验证
|
||||
function validForm() {
|
||||
if ($.trim($("#userName").val()).length == 0) {
|
||||
|
@ -280,18 +293,21 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
//登录提示消息显示
|
||||
function showErrorMsg(msg) {
|
||||
$("#errMsgContiner").show();
|
||||
$("#showErrMsg").html(msg);
|
||||
window.setTimeout(optErrMsg, 3000);
|
||||
}
|
||||
|
||||
/**
|
||||
* 刷新验证码
|
||||
*/
|
||||
$('#randCodeImage').click(function () {
|
||||
reloadRandCodeImage();
|
||||
});
|
||||
|
||||
function reloadRandCodeImage() {
|
||||
var date = new Date();
|
||||
var img = document.getElementById("randCodeImage");
|
||||
|
@ -304,6 +320,7 @@ function reloadRandCodeImage() {
|
|||
$('#id-company-text').attr('class', 'blue');
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
function lightStyle() {
|
||||
$('body').attr('class', 'login-layout light-login');
|
||||
$('#id-text2').attr('class', 'grey');
|
||||
|
@ -311,6 +328,7 @@ function reloadRandCodeImage() {
|
|||
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
function blurStyle() {
|
||||
$('body').attr('class', 'login-layout blur-login');
|
||||
$('#id-text2').attr('class', 'white');
|
||||
|
@ -318,9 +336,9 @@ function reloadRandCodeImage() {
|
|||
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
//设置cookie
|
||||
function setCookie()
|
||||
{
|
||||
function setCookie() {
|
||||
if ($('#on_off').val() == '1') {
|
||||
$("input[iscookie='true']").each(function () {
|
||||
$.cookie(this.name, $("#" + this.name).val(), "/", 24);
|
||||
|
@ -333,9 +351,9 @@ function reloadRandCodeImage() {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
//读取cookie
|
||||
function getCookie()
|
||||
{
|
||||
function getCookie() {
|
||||
var COOKIE_NAME = $.cookie("COOKIE_NAME");
|
||||
if (COOKIE_NAME != null) {
|
||||
$("input[iscookie='true']").each(function () {
|
||||
|
@ -349,9 +367,7 @@ function reloadRandCodeImage() {
|
|||
});
|
||||
$("#on_off").attr("checked", true);
|
||||
$("#on_off").val("1");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$("#on_off").attr("checked", false);
|
||||
$("#on_off").val("0");
|
||||
$("#randCode").focus();
|
||||
|
|
Loading…
Reference in New Issue