{CALENDAR_NAME:htmlEncode}
'
});
var status = new Ext.data.SimpleStore({
fields: ["USR_STATUS_VALUE", "status"],
data: [["ACTIVE", _("ID_ACTIVE")], ["INACTIVE", _("ID_INACTIVE")], ["VACATION", _("ID_VACATION")]]
});
var comboStatus = new Ext.form.ComboBox({
xtype : 'combo',
name : 'status',
fieldLabel : _('ID_STATUS'),
hiddenName : 'USR_STATUS',
id : 'USR_STATUS',
mode : 'local',
store : status,
displayField : 'status',
valueField : 'USR_STATUS_VALUE',
width : 120,
typeAhead : true,
triggerAction : 'all',
editable : false,
value : 'ACTIVE'
});
storeRole = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: "usersAjax",
method: "POST"
}),
baseParams: {"action" : "rolesList"},
reader: new Ext.data.JsonReader({
fields: [
{name: "ROL_UID"},
{name: "ROL_CODE"}
]
})
});
comboRole = new Ext.form.ComboBox({
fieldLabel : _('ID_ROLE'),
hiddenName : 'USR_ROLE',
id : 'USR_ROLE',
store : storeRole,
valueField : 'ROL_UID',
displayField : 'ROL_CODE',
emptyText : TRANSLATIONS.ID_SELECT,
width : 260,
selectOnFocus : true,
editable : false,
allowBlank : false,
triggerAction : 'all',
mode : 'local'
});
cboTimeZone = new Ext.form.ComboBox({
id: "cboTimeZone",
name: "USR_TIME_ZONE",
valueField: "id",
displayField: "value",
value: SYSTEM_TIME_ZONE,
store: new Ext.data.ArrayStore({
idIndex: 0,
fields: ["id", "value"],
data: TIME_ZONE_DATA
}),
fieldLabel: _("ID_TIME_ZONE"),
triggerAction: "all",
mode: "local",
editable: false,
width: 260,
hidden: !(__SYSTEM_UTC_TIME_ZONE__ == 1)
});
/*----------------------------------********---------------------------------*/
storeLanguage = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: "usersAjax",
method: "POST"
}),
baseParams: {"action" : "languagesList"},
reader: new Ext.data.JsonReader({
fields: [
{name: "LAN_ID"},
{name: "LAN_NAME"}
]
})
});
comboLanguage = new Ext.form.ComboBox({
fieldLabel : _('ID_DEFAULT_LANGUAGE'),
hiddenName : 'USR_DEFAULT_LANG',
id : 'USR_DEFAULT_LANG',
readOnly : false,
store : storeLanguage,
valueField : 'LAN_ID',
displayField : 'LAN_NAME',
emptyText : TRANSLATIONS.ID_SELECT,
width : 260,
selectOnFocus : true,
editable : false,
allowBlank : false,
triggerAction : 'all',
mode : 'local',
hidden : !(LANGUAGE_MANAGEMENT == 1)
});
/*----------------------------------********---------------------------------*/
var informationFields = new Ext.form.FieldSet({
title : _('ID_PERSONAL_INFORMATION'),
items : [
{
id : 'USR_FIRSTNAME',
fieldLabel : '