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