update last modified support login ie8 & ie9

This commit is contained in:
jonathan
2015-04-30 11:41:39 -04:00
parent 83d95a63e9
commit 9dafb667ee
6 changed files with 93 additions and 27 deletions

View File

@@ -8,11 +8,16 @@
font-weight: normal; font-weight: normal;
src: local("?"), url("/fonts/Chivo-Regular.ttf") format("truetype"); src: local("?"), url("/fonts/Chivo-Regular.ttf") format("truetype");
} }
body.login { body.login {
background: url("/images/backgroundpm3.jpg") repeat scroll 0 0 / cover rgba(0, 0, 0, 0); //background: url("/images/backgroundpm3.jpg") repeat scroll 0 0 / cover rgba(0, 0, 0, 0);
//background-position-y: -30px; //background-position-y: -30px;
font-family: "Chivo",sans-serif; //font-family: "Chivo",sans-serif;
height: 100%; //height: 100%;
background-color: #444;
background: url(/images/backgroundpm3.jpg);
background-size: cover;
} }
.vertical-offset-100 { .vertical-offset-100 {

View File

@@ -1,6 +1,10 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<link rel="stylesheet" href="/lib/pmdynaform/libs/bootstrap-3.1.1/css/bootstrap.min.css"> <link rel="stylesheet" href="/lib/pmdynaform/libs/bootstrap-3.1.1/css/bootstrap.min.css">
<script src="/lib/pmdynaform/libs/respondjs/respond.min.js"></script>
<script src="/lib/pmdynaform/libs/html5shiv/html5shiv.js"></script>
{$meta} {$meta}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />

View File

@@ -19,13 +19,29 @@
</BCANCEL> </BCANCEL>
<JS type="javascript"><![CDATA[ <JS type="javascript"><![CDATA[
function getElementsByClassNameIE8(node, classname) {
var a = [];
var re = new RegExp('(^| )'+classname+'( |$)');
var els = node.getElementsByTagName("*");
for(var i=0,j=els.length; i<j; i++)
if(re.test(els[i].className))a.push(els[i]);
return a;
};
window.onload= function(){ window.onload= function(){
if(document.getElementById('form[USR_USERNAME]').placeholder == undefined && document.getElementById('form[BSUBMIT]').classList == undefined){
document.getElementById('form[USR_USERNAME]').value = _('ID_USER');
document.getElementById('form[USR_EMAIL]').value = _('ID_EMAIL');
document.getElementById('form[BSUBMIT]').className = "button-login-success";
document.getElementById('form[BCANCEL]').className = "button-login-cancel";
}else{
document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER'); document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER');
document.getElementById('form[USR_EMAIL]').placeholder = _('ID_EMAIL'); document.getElementById('form[USR_EMAIL]').placeholder = _('ID_EMAIL');
document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray'); document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray');
document.getElementById('form[BSUBMIT]').classList.add('button-login-success'); document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
document.getElementById('form[BCANCEL]').classList.remove('module_app_button___gray'); document.getElementById('form[BCANCEL]').classList.remove('module_app_button___gray');
document.getElementById('form[BCANCEL]').classList.add('button-login-cancel'); document.getElementById('form[BCANCEL]').classList.add('button-login-cancel');
}
}; };
var panel; var panel;

View File

@@ -10,9 +10,23 @@
<en>Update License</en> <en>Update License</en>
</updateButton> </updateButton>
<JS type="javascript"><![CDATA[ <JS type="javascript"><![CDATA[
function getElementsByClassNameIE8(node, classname) {
var a = [];
var re = new RegExp('(^| )'+classname+'( |$)');
var els = node.getElementsByTagName("*");
for(var i=0,j=els.length; i<j; i++)
if(re.test(els[i].className))a.push(els[i]);
return a;
};
window.onload= function(){ window.onload= function(){
if(document.getElementById('form[updateButton]').classList == undefined){
document.getElementById('form[updateButton]').className = "button-login-success";
}else{
document.getElementById('form[updateButton]').classList.remove('module_app_button___gray'); document.getElementById('form[updateButton]').classList.remove('module_app_button___gray');
document.getElementById('form[updateButton]').classList.add('button-login-success'); document.getElementById('form[updateButton]').classList.add('button-login-success');
}
}; };
]]></JS> ]]></JS>
</dynaForm> </dynaForm>

View File

@@ -25,11 +25,27 @@ SELECT LANG_ID, LANG_NAME FROM langOptions
<en><![CDATA[Forgot Password]]></en> <en><![CDATA[Forgot Password]]></en>
</FORGOT_PASWORD_LINK> </FORGOT_PASWORD_LINK>
<JS type="javascript"><![CDATA[ <JS type="javascript"><![CDATA[
function getElementsByClassNameIE8(node, classname) {
var a = [];
var re = new RegExp('(^| )'+classname+'( |$)');
var els = node.getElementsByTagName("*");
for(var i=0,j=els.length; i<j; i++)
if(re.test(els[i].className))a.push(els[i]);
return a;
};
window.onload= function(){ window.onload= function(){
if(document.getElementById('form[USR_USERNAME]').placeholder == undefined && document.getElementById('form[BSUBMIT]').classList == undefined){
document.getElementById('form[USR_USERNAME]').value = _('ID_USER');
document.getElementById('form[USR_PASSWORD_MASK]').value = _('ID_PASSWORD');
document.getElementById('form[BSUBMIT]').className = "button-login-success";
}else{
document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER'); document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER');
document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD'); document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD');
document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray'); document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray');
document.getElementById('form[BSUBMIT]').classList.add('button-login-success'); document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
}
}; };
// enable/disable forgot password link // enable/disable forgot password link

View File

@@ -24,12 +24,28 @@ SELECT LANG_ID, LANG_NAME FROM langOptions
</BSUBMIT> </BSUBMIT>
<JS type="javascript"><![CDATA[ <JS type="javascript"><![CDATA[
function getElementsByClassNameIE8(node, classname) {
var a = [];
var re = new RegExp('(^| )'+classname+'( |$)');
var els = node.getElementsByTagName("*");
for(var i=0,j=els.length; i<j; i++)
if(re.test(els[i].className))a.push(els[i]);
return a;
};
window.onload= function(){ window.onload= function(){
if(document.getElementById('form[USR_USERNAME]').placeholder === undefined && document.getElementById('form[BSUBMIT]').classList == undefined){
document.getElementById('form[USR_USERNAME]').value = _('ID_USER');
document.getElementById('form[USR_PASSWORD_MASK]').value = _('ID_PASSWORD');
document.getElementById('form[USER_ENV]').value = _('ID_WORKSPACE');
document.getElementById('form[BSUBMIT]').className = "button-login-success";
}else{
document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER'); document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER');
document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD'); document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD');
document.getElementById('form[USER_ENV]').placeholder = _('ID_WORKSPACE'); document.getElementById('form[USER_ENV]').placeholder = _('ID_WORKSPACE');
document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray'); document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray');
document.getElementById('form[BSUBMIT]').classList.add('button-login-success'); document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
}
}; };
setFocus (getField ('USR_USERNAME')); setFocus (getField ('USR_USERNAME'));
@@ -64,11 +80,6 @@ leimnud.event.add(document.getElementById('form[USER_ENV]'), 'keypress', functio
leimnud.event.add(document.getElementById('form[BSUBMIT]'), 'click', function() { leimnud.event.add(document.getElementById('form[BSUBMIT]'), 'click', function() {
createCookie("pm_sys_sys", "{\"sys_sys\": \"" + getField("USER_ENV").value + "\"}", 365); createCookie("pm_sys_sys", "{\"sys_sys\": \"" + getField("USER_ENV").value + "\"}", 365);
var client = getBrowserClient();
if (client.browser == "msie" || client.browser == "safari"){
document.sysLogin.submit();
}
document.getElementById('form[USR_PASSWORD]').value = document.getElementById('form[USR_PASSWORD_MASK]').value; document.getElementById('form[USR_PASSWORD]').value = document.getElementById('form[USR_PASSWORD_MASK]').value;
document.getElementById('form[USR_PASSWORD_MASK]').value = ''; document.getElementById('form[USR_PASSWORD_MASK]').value = '';
document.getElementById('form[USR_PASSWORD_MASK]').setAttribute('type', 'text'); document.getElementById('form[USR_PASSWORD_MASK]').setAttribute('type', 'text');