-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuser_modify_pass.xml
More file actions
36 lines (36 loc) · 1.94 KB
/
user_modify_pass.xml
File metadata and controls
36 lines (36 loc) · 1.94 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<WndTap Text="xms_user" Name="xms_user" Ver="2" popup="1">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lan\xms_user.xml"/>
<Ctrls>
<GroupBox Text="xms_user" Name="GBxms_user" id="xms_user" Size="100,100"><Ctrls>
<GroupBox Name="GBDEDITxms_user"><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 sm12 md12 lg12" Name="GBOPDVitem"><Ctrls>
<TAB/><Button Text="modifyPass" ToolTip="ttp_modifyPass" Name="modifyPass" Size="50,20">
<OnClick><if cond="%{password}!=%{passwordsec}"><alert expr="new passwords input does not match!"/><else/>
<DbDetails fcsm="1">
<DbTable>tms.xms_user</DbTable>
<DataEx>password,last_update_by,last_update_date;md5('%{password}'),'%{user_id}',now()</DataEx>
<Where>xms_user_id='%{user_id}' and password=md5('%{passwordold}')</Where>
<queryFormat>update %{table} set %{data} where %{where}</queryFormat></DbDetails>
<submit namelist="DbDetails"/></if></OnClick>
</Button><TAB/>
</Ctrls></GroupBox>
</Ctrls></GroupBox>
</Ctrls>
<OnChanged/>
<OnActivate/>
</WndTap>