2025-04-23 14:49:32 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2011-06-03 15:07:04 -04:00
|
|
|
<dynaForm name="login" version="1.0" basedir="" xmlform_type="NORMAL" width="400px" enabletemplate="1">
|
2025-04-14 17:32:23 +00:00
|
|
|
<BROWSER_TIME_ZONE_OFFSET type="hidden" />
|
|
|
|
|
|
2014-04-21 10:21:01 -04:00
|
|
|
<TITLE type="title">
|
|
|
|
|
<en><![CDATA[Login]]></en>
|
|
|
|
|
</TITLE>
|
2025-04-14 17:32:23 +00:00
|
|
|
<USR_USERNAME type="text" size="30" maxlength="50" validate="Any" autocomplete="0">
|
2014-04-21 10:21:01 -04:00
|
|
|
<en><![CDATA[User]]></en>
|
|
|
|
|
</USR_USERNAME>
|
2015-04-07 16:53:08 -04:00
|
|
|
<USR_PASSWORD type="text" size="30" maxlength="32" autocomplete="0">
|
2014-04-21 10:21:01 -04:00
|
|
|
<en><![CDATA[Password]]></en>
|
|
|
|
|
</USR_PASSWORD>
|
2025-04-14 17:32:23 +00:00
|
|
|
<USR_PASSWORD_MASK type="password" size="30" maxlength="100" autocomplete="0">
|
2015-04-07 16:53:08 -04:00
|
|
|
<en><![CDATA[Password]]></en>
|
|
|
|
|
</USR_PASSWORD_MASK>
|
2014-04-21 10:21:01 -04:00
|
|
|
<USER_LANG type="dropdown" sqlconnection="dbarray">
|
2012-07-09 19:08:34 -04:00
|
|
|
SELECT LANG_ID, LANG_NAME FROM langOptions
|
2014-04-21 10:21:01 -04:00
|
|
|
<en><![CDATA[Language]]></en>
|
2012-07-09 19:08:34 -04:00
|
|
|
</USER_LANG>
|
2014-04-21 10:21:01 -04:00
|
|
|
<URL type="hidden"/>
|
|
|
|
|
<LOGIN_VERIFY_MSG type="private" showInTable="0"/>
|
2015-04-07 16:53:08 -04:00
|
|
|
<BSUBMIT type="button">
|
2014-04-21 10:21:01 -04:00
|
|
|
<en><![CDATA[Login]]></en>
|
|
|
|
|
</BSUBMIT>
|
2025-04-14 17:32:23 +00:00
|
|
|
<FORGOT_PASWORD_LINK type="link" link="forgotPassword" onclick="" colAlign="right" colWidth="135">
|
2014-04-21 10:21:01 -04:00
|
|
|
<en><![CDATA[Forgot Password]]></en>
|
|
|
|
|
</FORGOT_PASWORD_LINK>
|
|
|
|
|
<JS type="javascript"><![CDATA[
|
2016-04-25 23:17:58 -04:00
|
|
|
|
|
|
|
|
//validate iframe login
|
2017-07-04 16:51:24 -04:00
|
|
|
if(inIframe() && (window.location.search.indexOf("inIFrame=1")===-1)) {
|
2016-04-25 23:17:58 -04:00
|
|
|
if (PM.Sessions.getCookie('PM-TabPrimary') !== '101010010'
|
|
|
|
|
&& (window.location.pathname.indexOf("login/login") !== -1
|
|
|
|
|
|| window.location.pathname.indexOf("sysLogin") !== -1)) {
|
|
|
|
|
window.top.location.href = window.location.pathname;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function inIframe () {
|
|
|
|
|
try {
|
|
|
|
|
return window.self !== window.top;
|
|
|
|
|
} catch (e) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
};
|
2025-04-14 17:32:23 +00:00
|
|
|
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(){
|
|
|
|
|
var inputUser,
|
|
|
|
|
inputPass;
|
|
|
|
|
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";
|
|
|
|
|
inputUser = document.getElementById('form[USR_USERNAME]');
|
|
|
|
|
inputPass = document.getElementById('form[USR_PASSWORD_MASK]');
|
|
|
|
|
|
|
|
|
|
inputUser.attachEvent("onclick", function (){
|
|
|
|
|
if(_('ID_USER') == inputUser.value){
|
|
|
|
|
inputUser.value="";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
inputUser.attachEvent("onblur", function (){
|
|
|
|
|
if(inputUser.value == ""){
|
|
|
|
|
inputUser.value=_('ID_USER');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
inputPass.attachEvent("onclick", function (){
|
|
|
|
|
if(_('ID_PASSWORD') == inputPass.value){
|
|
|
|
|
inputPass.value="";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
inputPass.attachEvent("onblur", function (){
|
|
|
|
|
if(inputPass.value == ""){
|
|
|
|
|
inputPass.value = _('ID_PASSWORD');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER');
|
|
|
|
|
document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD');
|
|
|
|
|
document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray');
|
|
|
|
|
document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
|
|
|
|
|
}
|
|
|
|
|
};
|
2016-04-25 23:17:58 -04:00
|
|
|
|
2025-04-14 17:32:23 +00:00
|
|
|
// delete or not forgot password link
|
|
|
|
|
if(flagForgotPassword != 'on' && flagForgotPassword != '1') {
|
|
|
|
|
var element = document.getElementById("form[FORGOT_PASWORD_LINK]");
|
|
|
|
|
element.parentNode.removeChild(element);
|
2012-07-09 19:08:34 -04:00
|
|
|
}
|
|
|
|
|
|
2010-12-02 23:34:41 +00:00
|
|
|
var panel;
|
|
|
|
|
|
2012-07-09 19:08:34 -04:00
|
|
|
function showGettingStarted() {
|
2010-12-02 23:34:41 +00:00
|
|
|
panel = new leimnud.module.panel();
|
2012-07-09 19:08:34 -04:00
|
|
|
panel.options = {
|
|
|
|
|
size: {w:620,h:500},
|
|
|
|
|
position: {x:50,y:50,center:true},
|
2025-04-14 17:32:23 +00:00
|
|
|
control: {close:true,resize:false, drag: false},fx:{modal:true},
|
2012-07-09 19:08:34 -04:00
|
|
|
statusBar: false,
|
|
|
|
|
fx: {shadow:true,modal:true}
|
2010-12-02 23:34:41 +00:00
|
|
|
};
|
|
|
|
|
panel.make();
|
|
|
|
|
panel.loader.show();
|
|
|
|
|
var r = new leimnud.module.rpc.xmlhttp({
|
|
|
|
|
url:"../services/login_getStarted.php",
|
|
|
|
|
method:"POST"
|
|
|
|
|
});
|
2012-07-09 19:08:34 -04:00
|
|
|
r.callback = function(rpc) {
|
2010-12-02 23:34:41 +00:00
|
|
|
panel.loader.hide();
|
|
|
|
|
panel.addContent(rpc.xmlhttp.responseText);
|
|
|
|
|
};
|
|
|
|
|
r.make();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var saveConfig = function() {
|
2012-07-09 19:08:34 -04:00
|
|
|
if (document.getElementById("getStarted").checked == true) {
|
2010-12-02 23:34:41 +00:00
|
|
|
var oRPC = new leimnud.module.rpc.xmlhttp({
|
2012-07-09 19:08:34 -04:00
|
|
|
url: '../login/login_Ajax',
|
|
|
|
|
async: false,
|
2010-12-02 23:34:41 +00:00
|
|
|
method: 'POST',
|
2012-07-09 19:08:34 -04:00
|
|
|
args: 'function=getStarted_save'
|
2010-12-02 23:34:41 +00:00
|
|
|
});
|
|
|
|
|
oRPC.make();
|
|
|
|
|
}
|
|
|
|
|
panel.remove();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var dynaformOnload = function() {
|
2012-07-09 19:08:34 -04:00
|
|
|
setFocus(getField('USR_USERNAME'));
|
|
|
|
|
if (flagGettingStarted) {
|
|
|
|
|
showGettingStarted();
|
|
|
|
|
}
|
2010-12-02 23:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
2015-04-16 14:51:10 -04:00
|
|
|
leimnud.event.add(document.getElementById('form[USR_PASSWORD_MASK]'), 'keypress', function(event) {
|
|
|
|
|
var key;
|
|
|
|
|
if(window.event)
|
|
|
|
|
key = window.event.keyCode; //IE
|
|
|
|
|
else
|
|
|
|
|
key = event.which; //firefox
|
|
|
|
|
if(key == 13) {
|
|
|
|
|
document.getElementById('form[BSUBMIT]').click();
|
|
|
|
|
return true;
|
|
|
|
|
} else {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2012-07-09 19:08:34 -04:00
|
|
|
leimnud.event.add(document.getElementById('form[BSUBMIT]'), 'click', function() {
|
2025-04-14 17:32:23 +00:00
|
|
|
setNestedProperty(this, Array("disabled"), "true");
|
|
|
|
|
setNestedProperty(this, Array("value"), @@LOGIN_VERIFY_MSG);
|
|
|
|
|
|
|
|
|
|
document.getElementById("form[USR_PASSWORD]").value = document.getElementById("form[USR_PASSWORD_MASK]").value;
|
|
|
|
|
document.getElementById("form[USR_PASSWORD_MASK]").value = "";
|
|
|
|
|
document.getElementById("form[BROWSER_TIME_ZONE_OFFSET]").value = getBrowserTimeZoneOffset();
|
|
|
|
|
if(!navigator.userAgent.indexOf("MSIE 8.0")>0)
|
|
|
|
|
document.getElementById("form[USR_PASSWORD_MASK]").setAttribute("type", "text");
|
|
|
|
|
document.login.submit();
|
2012-07-09 19:08:34 -04:00
|
|
|
}.extend(document.getElementById('form[BSUBMIT]')));
|
2011-06-03 18:32:48 -04:00
|
|
|
|
2014-04-21 10:21:01 -04:00
|
|
|
]]></JS>
|
|
|
|
|
</dynaForm>
|
2025-04-14 17:32:23 +00:00
|
|
|
|