2010-12-02 23:34:41 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name= "myInfo" width= "70%" labelWidth= "300px" mode= "" enableTemplate= "0" >
<USR_UID type= "hidden" />
<TITLEADD type= "title" group= "1" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Profile]]> </en>
2010-12-02 23:34:41 +00:00
</TITLEADD>
<USR_PHOTO type= "file" group= "1" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Photo]]> </en>
2010-12-02 23:34:41 +00:00
</USR_PHOTO>
<USR_RESUME type= "file" group= "1" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Resume]]> </en>
2010-12-02 23:34:41 +00:00
</USR_RESUME>
<TITLE9689 type= "title" group= "1" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Personal Information]]> </en>
2010-12-02 23:34:41 +00:00
</TITLE9689>
<USR_FIRSTNAME type= "text" size= "30" maxlength= "32" defaultvalue= "" required= "1" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "0" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" sqlconnection= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[First Name]]> </en>
2010-12-02 23:34:41 +00:00
</USR_FIRSTNAME>
<USR_LASTNAME type= "text" size= "30" maxlength= "32" defaultvalue= "" required= "1" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "0" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" sqlconnection= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Last Name]]> </en>
2010-12-02 23:34:41 +00:00
</USR_LASTNAME>
<USR_USERNAME type= "text" size= "15" maxlength= "50" validate= "" defaultvalue= "" required= "1" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "0" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" onchange= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[User ID]]> </en>
2010-12-02 23:34:41 +00:00
</USR_USERNAME>
<USR_EMAIL type= "text" size= "35" maxlength= "100" validate= "Email" defaultvalue= "" required= "0" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "0" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" sqlconnection= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Email]]> </en>
2010-12-02 23:34:41 +00:00
</USR_EMAIL>
<USR_ADDRESS type= "textarea" rows= "3" cols= "50" defaultvalue= "" required= "0" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "0" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" sqlconnection= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Address]]> </en>
2010-12-02 23:34:41 +00:00
</USR_ADDRESS>
<USR_ZIP_CODE type= "text" size= "30" maxlength= "30" defaultvalue= "" required= "0" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "0" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" sqlconnection= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Zip/Postal Code]]> </en>
2010-12-02 23:34:41 +00:00
</USR_ZIP_CODE>
<USR_COUNTRY type= "dropdown" style= "width:174pt" defaultvalue= "" required= "0" group= "1" dependentfields= "USR_CITY" readonly= "0" sqlconnection= "" noshowingrid= "0" readonlyingrid= "0" >
SELECT IC_UID, IC_NAME FROM ISO_COUNTRY ORDER BY IC_NAME
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Country]]> <option name= "" > <![CDATA[]]> </option> </en>
2010-12-02 23:34:41 +00:00
</USR_COUNTRY>
2014-04-21 10:21:01 -04:00
<USR_CITY type= "dropdown" style= "width:174pt" defaultvalue= "" required= "0" group= "1" dependentfields= "USR_LOCATION" readonly= "0" sqlconnection= "" noshowingrid= "0" readonlyingrid= "0" > <![CDATA[SELECT IS_UID, IS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = "@#USR_COUNTRY" ORDER BY IS_NAME]]> <en > <![CDATA[State or Region]]> </en> </USR_CITY>
<USR_LOCATION type= "dropdown" style= "width:174pt" defaultvalue= "" required= "0" group= "1" readonly= "0" sqlconnection= "" noshowingrid= "0" readonlyingrid= "0" > <![CDATA[SELECT IL_UID, IL_NAME FROM ISO_LOCATION WHERE IC_UID = "@#USR_COUNTRY" AND IS_UID = "@#USR_CITY" AND IS_UID NOT IN ("") ORDER BY IL_NAME]]> <en > <![CDATA[Location]]> </en> </USR_LOCATION>
2010-12-02 23:34:41 +00:00
<USR_PHONE type= "text" size= "15" maxlength= "16" defaultvalue= "" required= "0" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "0" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" sqlconnection= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Phone]]> </en>
2010-12-02 23:34:41 +00:00
</USR_PHONE>
<USR_POSITION type= "text" size= "35" maxlength= "35" defaultvalue= "" required= "0" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "0" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" sqlconnection= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Position]]> </en>
2010-12-02 23:34:41 +00:00
</USR_POSITION>
<USR_DUE_DATE type= "text" mode= "view" defaultvalue= "" required= "0" group= "1" readonly= "0" noshowingrid= "0" readonlyingrid= "0" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Expiration Date]]> </en>
2010-12-02 23:34:41 +00:00
</USR_DUE_DATE>
<USR_STATUS type= "dropdown" mode= "view" group= "1" required= "0" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Status]]> <option name= "ACTIVE" > <![CDATA[ACTIVE]]> </option> <option name= "INACTIVE" > <![CDATA[INACTIVE]]> </option> <option name= "VACATION" > <![CDATA[ON VACATION]]> </option> </en>
2010-12-02 23:34:41 +00:00
</USR_STATUS>
2014-04-21 10:21:01 -04:00
<USR_ROLE type= "dropdown" mode= "view" defaultvalue= "" required= "0" group= "1" dependentfields= "" readonly= "0" sqlconnection= "rbac" noshowingrid= "0" readonlyingrid= "0" > <![CDATA[SELECT ROL_CODE AS USR_ROLE, ROL_CODE AS CODE FROM ROLES WHERE ROL_SYSTEM = '00000000000000000000000000000002' ORDER BY ROL_CODE]]> <en > <![CDATA[Role]]> </en> </USR_ROLE>
<USR_REPORTS_TO type= "caption" size= "35" maxlength= "35" defaultvalue= "" required= "0" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "1" noshowingrid= "0" >
<en > <![CDATA[Reports to]]> </en>
2010-12-02 23:34:41 +00:00
</USR_REPORTS_TO>
<USR_DEPARTMENT type= "caption" size= "35" maxlength= "35" defaultvalue= "" required= "0" group= "1" dependentfields= "" linkfield= "" strto= "" readonly= "1" noshowingrid= "0" readonlyingrid= "0" totalizeable= "0" sqlconnection= "" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Department]]> </en>
</USR_DEPARTMENT>
2010-12-02 23:34:41 +00:00
<TITLECHP type= "title" group= "1" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Change Password]]> </en>
2010-12-02 23:34:41 +00:00
</TITLECHP>
<USR_NEW_PASS type= "password" size= "30" maxlength= "20" validate= "5" mask= "" required= "0" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[New Password]]> </en>
2010-12-02 23:34:41 +00:00
</USR_NEW_PASS>
<USR_CNF_PASS type= "password" size= "30" maxlength= "20" validate= "5" mask= "" required= "0" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Confirm Password]]> </en>
2010-12-02 23:34:41 +00:00
</USR_CNF_PASS>
<TITLEPREF type= "title" group= "1" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Preferences]]> </en>
2010-12-02 23:34:41 +00:00
</TITLEPREF>
<!-- <PREF_DEFAULT_LANG type="dropdown">
<![CDATA[SELECT LAN_ID, LAN_NAME FROM LANGUAGE WHERE LAN_ENABLED = '1' ORDER BY LAN_WEIGHT DESC]]>
<en > Default languaje</en>
</PREF_DEFAULT_LANG> -->
<PREF_DEFAULT_MENUSELECTED type= "dropdown" sqlconnection= "dbarray" >
SELECT * FROM menutab
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Default Main Menu Option]]> </en>
2010-12-02 23:34:41 +00:00
</PREF_DEFAULT_MENUSELECTED>
<PREF_DEFAULT_CASES_MENUSELECTED type= "dropdown" sqlconnection= "dbarray" >
SELECT * FROM CASES_MENU
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Default Cases Menu Option]]> </en>
2010-12-02 23:34:41 +00:00
</PREF_DEFAULT_CASES_MENUSELECTED>
<SUBMIT3 type= "button" onclick= "verifyUserInformation(this.form);" group= "1" >
2014-04-21 10:21:01 -04:00
<en > <![CDATA[Save]]> </en>
2010-12-02 23:34:41 +00:00
</SUBMIT3>
<MESSAGE0 type= "phpvariable" />
<MESSAGE1 type= "phpvariable" />
<MESSAGE2 type= "phpvariable" />
<MESSAGE3 type= "phpvariable" />
<MESSAGE4 type= "phpvariable" />
<MESSAGE5 type= "phpvariable" />
<JS type= "javascript" replacetags= "1" > < ![CDATA[
var sUsername;
var dynaformOnload = function()
{
sUsername = document.forms[0].elements['form[USR_USERNAME]'].value;
leimnud.event.add(document.forms[0].elements['form[USR_USERNAME]'], 'change', {method:verifyUsername, instance:document.forms[0].elements['form[USR_USERNAME]'], event:true});
leimnud.event.add(document.forms[0].elements['form[USR_CITY]'], 'change', {method:existsElements, instance:document.forms[0].elements['form[USR_CITY]'], event:true});
leimnud.event.add(document.forms[0].elements['form[USR_LOCATION]'], 'change', {method:existsElements, instance:document.forms[0].elements['form[USR_LOCATION]'], event:true});
if (document.forms[0].elements['form[USR_CITY]'].options.length == 0) {
hideRow(document.forms[0].elements['form[USR_CITY]']);
}
if (document.forms[0].elements['form[USR_LOCATION]'].options.length == 0) {
hideRow(document.forms[0].elements['form[USR_LOCATION]']);
}
};
var verifyUsername = function()
{
document.forms[0].elements['form[USR_USERNAME]'].disabled = true;
document.forms[0].elements['form[SUBMIT3]'].disabled = true;
var oRPC = new leimnud.module.rpc.xmlhttp({
url :'users_Ajax',
async : false,
method :'POST',
args :'function=verifyUsername& sOriginalUsername=' + sUsername + '& sUsername=' + encodeURIComponent(this.value)});
oRPC.make();
var sResponse = oRPC.xmlhttp.responseText;
document.forms[0].elements['form[USR_USERNAME]'].disabled = false;
if (sResponse == '1')
{
new leimnud.module.app.alert().make({
label: "@#MESSAGE0"
});
document.forms[0].elements['form[USR_USERNAME]'].focus();
}
else
{
document.forms[0].elements['form[SUBMIT3]'].disabled = false;
}
};
var verifyUserInformation = function(oForm)
{
var oAux1, oAux2;
var bContinue = true;
oAux1 = oForm.elements['form[USR_FIRSTNAME]'];
if (oAux1.value == '')
{
new leimnud.module.app.alert().make({
label: "@#MESSAGE4"
});
oAux1.focus();
bContinue = false;
return false;
}
oAux1 = oForm.elements['form[USR_LASTNAME]'];
if (oAux1.value == '')
{
new leimnud.module.app.alert().make({
label: "@#MESSAGE5"
});
oAux1.focus();
bContinue = false;
return false;
}
oAux1 = oForm.elements['form[USR_USERNAME]'];
if (oAux1.value == '')
{
new leimnud.module.app.alert().make({
label: "@#MESSAGE1"
});
oAux1.focus();
bContinue = false;
return false;
}
oAux1 = oForm.elements['form[USR_DUE_DATE]'];
if (oAux1.value == '')
{
new leimnud.module.app.alert().make({
label: "@#MESSAGE2"
});
oAux1.focus();
bContinue = false;
return false;
}
oAux1 = oForm.elements['form[USR_NEW_PASS]'];
if (oAux1.value != '')
{
oAux2 = oForm.elements['form[USR_CNF_PASS]'];
if (oAux1.value != oAux2.value)
{
new leimnud.module.app.alert().make({
label: "@#MESSAGE3"
});
oAux1.focus();
bContinue = false;
return false;
}
}
if (bContinue)
{
oForm.submit();
}
};
var existsElements = function () {
if (this.options.length > 0) {
showRow(this);
}
else {
hideRow(this);
}
};
]]></JS>
2014-04-21 10:21:01 -04:00
</dynaForm>