Adjust field validation.

This commit is contained in:
Hector Cortez
2011-01-27 15:24:56 +00:00
parent cffdb71ebc
commit 479ca86e00

View File

@@ -8,114 +8,95 @@
<END_DATE type="phpVariable"/>
<TITLE3 type="title" group="1">
<en>Profile</en>
<ru-RU><![CDATA[Профиль]]></ru-RU>
</TITLE3>
<USR_PHOTO type="file" group="1">
<en>Photo</en>
<ru-RU><![CDATA[Фотография]]></ru-RU>
</USR_PHOTO>
<USR_RESUME type="file" group="1">
<en>Resume</en>
<ru-RU><![CDATA[Резюме]]></ru-RU>
</USR_RESUME>
<TITLE1 type="title" group="1">
<en>Personal Information</en>
<ru-RU><![CDATA[Персональные данные]]></ru-RU>
</TITLE1>
<USR_UID type="private"/>
<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="">
<en>First Name</en>
<ru-RU><![CDATA[Имя]]></ru-RU>
</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="">
<en>Last Name</en>
<ru-RU><![CDATA[Фамилия]]></ru-RU>
</USR_LASTNAME>
<USR_USERNAME type="text" size="15" maxlength="50" validate="Email" defaultvalue="" required="1" group="1" dependentfields="" linkfield="" strto="" readonly="0" noshowingrid="0" readonlyingrid="0" totalizeable="0" onchange="">
<USR_USERNAME type="text" size="15" maxlength="50" validate="Login" defaultvalue="" required="1" group="1" dependentfields="" linkfield="" strto="" readonly="0" noshowingrid="0" readonlyingrid="0" totalizeable="0" onchange="">
<en>User ID (*)</en>
<ru-RU><![CDATA[Идентификатор (*)]]></ru-RU>
</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="">
<en>Email</en>
<ru-RU><![CDATA[Email]]></ru-RU>
</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="">
<en>Address</en>
<ru-RU><![CDATA[Адрес]]></ru-RU>
</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="">
<en>Zip Code</en>
<ru-RU><![CDATA[Индекс]]></ru-RU>
</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
<en>Country<option name=""/></en>
<ru-RU><![CDATA[Страна]]><option name="''"><![CDATA['']]></option></ru-RU></USR_COUNTRY>
</USR_COUNTRY>
<USR_CITY type="dropdown" style="width:174pt" defaultvalue="" required="0" group="1" dependentfields="USR_LOCATION" readonly="0" sqlconnection="" noshowingrid="0" readonlyingrid="0">
SELECT IS_UID, IS_NAME FROM ISO_SUBDIVISION WHERE IC_UID = "@#USR_COUNTRY" ORDER BY IS_NAME
<en>State or Region</en>
<ru-RU><![CDATA[Регион/область]]></ru-RU></USR_CITY>
</USR_CITY>
<USR_LOCATION type="dropdown" style="width:174pt" defaultvalue="" required="0" group="1" readonly="0" sqlconnection="" noshowingrid="0" readonlyingrid="0">
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>Location</en>
<ru-RU><![CDATA[Местонахождение]]></ru-RU></USR_LOCATION>
</USR_LOCATION>
<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="">
<en>Phone</en>
<ru-RU><![CDATA[Телефон]]></ru-RU>
</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="">
<en>Position</en>
<ru-RU><![CDATA[Должность]]></ru-RU>
</USR_POSITION>
<USR_REPORTS_TO type="dropdown" defaultvalue="" required="0" group="1" dependentfields="" readonly="0" sqlconnection="dbarray" noshowingrid="0" readonlyingrid="0">
SELECT * FROM aUserInfo
<en>Reports to<option name=""/></en>
<ru-RU><![CDATA[В подчинении]]><option name="''"><![CDATA['']]></option></ru-RU></USR_REPORTS_TO>
</USR_REPORTS_TO>
<USR_REPLACED_BY type="dropdown" defaultvalue="" required="0" group="1" dependentfields="" readonly="0" sqlconnection="dbarray" noshowingrid="0" readonlyingrid="0">
SELECT * FROM aUserInfo
<en>Replaced by<option name=""/></en>
<ru-RU><![CDATA[Заместитель]]><option name="''"><![CDATA['']]></option></ru-RU></USR_REPLACED_BY>
</USR_REPLACED_BY>
<USR_DUE_DATE type="date" mask="Y-m-d" startDate="@#START_DATE" endDate="@#END_DATE" defaultvalue="" required="1" group="1" readonly="0" noshowingrid="0" readonlyingrid="0">
<en>Expiration Date</en>
<ru-RU><![CDATA[Срок]]></ru-RU>
</USR_DUE_DATE>
<USR_CALENDAR type="dropdown" sqlconnection="dbarray">
SELECT CALENDAR_UID, CALENDAR_NAME FROM availableCalendars
<en>Calendar
<option name="">- None -</option>
</en>
<ru-RU><![CDATA[Календарь]]><option name="''"><![CDATA[- None -]]></option></ru-RU></USR_CALENDAR>
</USR_CALENDAR>
<USR_STATUS type="dropdown" group="1" required="0">
<en>Status
<option name="ACTIVE">ACTIVE</option>
<option name="INACTIVE">INACTIVE</option>
<option name="VACATION">ON VACATION</option>
</en>
<ru-RU><![CDATA[Статус]]><option name="ACTIVE"><![CDATA[Действующий]]></option><option name="INACTIVE"><![CDATA[Отключенный]]></option><option name="VACATION"><![CDATA[В отпуске]]></option></ru-RU>
</USR_STATUS>
<USR_ROLE type="dropdown" defaultvalue="" required="0" group="1" dependentfields="" readonly="0" sqlconnection="rbac" noshowingrid="0" readonlyingrid="0">
SELECT ROL_CODE AS USR_ROLE, ROL_CODE AS CODE FROM ROLES WHERE ROL_SYSTEM = '00000000000000000000000000000002' AND ROL_STATUS = 1 ORDER BY FIELD(ROL_CODE,'@#DEFAULT_ROLE') DESC
<en>Role</en>
<ru-RU><![CDATA[Роль]]></ru-RU></USR_ROLE>
</USR_ROLE>
<TITLE2 type="title" group="1">
<en>Change Password</en>
<ru-RU><![CDATA[Изменить пароль]]></ru-RU>
</TITLE2>
<USR_NEW_PASS type="password" size="30" maxlength="20" validate="5" mask="" required="1">
<en>New Password </en>
<ru-RU><![CDATA[Новый пароль]]></ru-RU>
</USR_NEW_PASS>
<USR_CNF_PASS type="password" size="30" maxlength="20" validate="5" mask="" required="1">
<en>Confirm Password </en>
<ru-RU><![CDATA[Подтверждение]]></ru-RU>
</USR_CNF_PASS>
<SUBMIT type="button" onclick="validateLocalFields(this.form);" group="1">
<en>Save</en>
<ru-RU><![CDATA[Сохранить]]></ru-RU>
</SUBMIT>
<BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en>
<ru-RU><![CDATA[Отменить]]></ru-RU>
</BTN_CANCEL>
<MESSAGE0 type="phpvariable"/>
<MESSAGE1 type="phpvariable"/>