-
Notifications
You must be signed in to change notification settings - Fork 1
/
modify_pass_4user.xml
38 lines (38 loc) · 2.2 KB
/
modify_pass_4user.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<WndTap Text="modifypass" Name="userlogin_modifypass" remark="For user modify pass" Ver="2" popup="1">
<var name="refreshAfterEdit" expr="2"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lan\vtiger_users.xml"/>
<Ctrls>
<GroupBox Text="vtiger_users" Name="GBvtiger_users" id="vtiger_users" Size="100,100"><Ctrls>
<GroupBox Name="GBDEDITuserlogin"><Ctrls>
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_password"><Ctrls>
<Label Align="Right" Text="old password" PASSWORD="true" Name="lb_passwordold" Size="60,20"/>
<TextBox Weight="170" ToolTip="ttp_password" PASSWORD="true" Name="passwordold" Size="170,20"/>
</Ctrls></GroupBox><BR AutoHeight="1"/>
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_password"><Ctrls>
<Label Align="Right" Text="new password" PASSWORD="true" Name="lb_password" Size="60,20"/>
<TextBox Weight="170" ToolTip="ttp_password" PASSWORD="true" Name="password" Size="170,20"/>
</Ctrls></GroupBox><BR AutoHeight="1"/>
<GroupBox cols="xs12 sm6 md4" Multiline="0" Name="GB_password"><Ctrls>
<Label Align="Right" Text="reinupt password" PASSWORD="true" Name="lb_password" Size="60,20"/>
<TextBox Weight="170" ToolTip="ttp_password" PASSWORD="true" Name="passwordsec" Size="170,20"/>
</Ctrls></GroupBox>
</Ctrls></GroupBox>
<BR AutoHeight="1"/>
<GroupBox cols="xs12 sm6 md4" Name="GBOPDVitem"><Ctrls>
<TAB/><Button Text="modifyPass" ToolTip="ttp_modifyPass" Name="modifyPass" Size="100,20">
<OnClick><if cond="%{password}!=%{passwordsec}"><alert expr="new passwords input does not match!"/><else/>
<DbDetails fcsm="1">
<DbTable>vtigercrm6.vtiger_users</DbTable>
<DataEx>user_password,modified_user_id,date_modified;md5('%{password}'),'%{user_id}',now()</DataEx>
<Where>id='%{user_id}' and (user_password=md5('%{passwordold}'))</Where>
<queryFormat>update %{table} set %{data} where %{where}</queryFormat></DbDetails>
<submit namelist="DbDetails"/>
<if cond="!%{modifyPass[broke]}"><if cond="%{refreshAfterEdit}==2"><if cond="'%{frmwndctrl}'"><submit next="%{frmwndctrl}" delay="1000"/></if></if></if></if></OnClick>
</Button><TAB/>
</Ctrls></GroupBox>
</Ctrls></GroupBox>
</Ctrls>
<OnChanged/>
<OnActivate/>
</WndTap>