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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
<?php $formid = "Usr"; require_once "inc/configure.php";
?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?=$system_var['COMPANY_NAME']?></title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <?php require_once "inc/jsheader.php"; ?> <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" class="top"><?php require"mod_webhead.php"; ?></td> </tr> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="200" valign="top" class="menu_bg"><?php require"mod_menu.php"; ?></td> <td valign="top" class="padding1"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr></tr> <tr> <td class="c1_bg"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="search"> <tr><form action="master_worker_addform.php" method="post"> <td width="80" valign="top" ><span class="stext1"><?=WORKER?>:</span></td> <td width="400" valign="top"> </td> <td align="right" valign="top"><!--<input type="image" src="image/btn_search.jpg" width="64" height="20" /> --><a href="master_worker_addform.php"><img src="image/btn_new.jpg" width="52" height="20" /></a></td> </form></tr> </table></td> </tr> <tr>
<td valign="top" class="c2_bg"> <!-- content--> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tablelist"> <!-- <tr> <th align="left">ModifyForm</th> <th align="left">Table</th> </tr>--> <tr> <td valign="top"> <?php if(true) { ?> <!--master add form--> <form action="master_worker_add.php" method="post"> <table> <tr> <th colspan="2"><?=ADD?></th> </tr> <tr> <td><?=LOGIN?></td> <td><span id="sprytextfield2"> <input name="userid" type="text" value="<?=$row['userid']?>" autocomplete="off" /><br/> <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span></span></td> </tr> <tr> <td><?=NAME?></td> <td><span id="sprytextfield1"> <input name="username" type="text" value="<?=$row['username_en']?>" autocomplete="off" /><br/> <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span></span></td> </tr> <tr> <td><?=NAME?> (<?=CHINESE?>)</td> <td><span id="sprytextfieldsc"> <input name="username_sc" type="text" value="<?=$row['username_sc']?>" autocomplete="off" /><br/> <span class="textfieldMinCharsMsg">Minimum number of characters not met.</span></span></td> </tr> <tr> <td><?=COMPANY?><?=WS?><?=ID?></td> <td><select name="companyid"><?=master_company_option($row['companyid'], false)?></select></td> </tr> <tr> <td><?=DEPARTMENT?></td> <td><select name="department"><?=master_option('DEPARTMENT', $row['department'], TRUE)?></select></td> </tr> <tr> <td><?=STATUS?></td> <td><select name="status"><?=master_user_status($row['status'], false)?></select></td> </tr> <tr> <td><?=BARCODE?><?=WS?><?=PASSWORD?></td> <td><span id="sprypassword1"> <input name="userpwd" id="userpwd" type="password" autocomplete="off" /> <br/> <span class="passwordRequiredMsg">A value is required.</span><span class="passwordMinCharsMsg">Minimum number of characters not met.</span><span class="passwordMaxCharsMsg">Exceeded maximum number of characters.</span></span></td> <tr> <tr> <td><?=CONFIRM?><?=WS?><?=PASSWORD?></td> <td><span id="spryconfirm1"> <input name="userpwd_confirm" id="userpwd_confirm" type="password" autocomplete="off" /><br/> <span class="confirmRequiredMsg">A value is required.</span><span class="confirmInvalidMsg">The values don't match.</span></span></td> </tr> </table>
<input name="submit" type="submit" value="<?=SUBMIT?>" class="pressnhide2" /> <input type="hidden" name="action" value="master_worker_addform"/> <input name="Cancel" value="<?=CANCEL?>" type="button" onclick="location.href='master_worker_addform.php'"/> </form> <?php } ?> <!-- end of addform--></td> <td valign="top" align="right"><?=master_worker_table($row['refid'], true);?></td> </tr> </table></td> </tr> </table> <!-- end of content--> </td>
</tr> </table></td> </tr> </table></td> </tr> </table> <script type="text/javascript"> var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "userpwd", {validateOn:["blur", "change"]}); var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {minChars:6, validateOn:["blur", "change"], maxChars:8}); var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"], minChars:4}); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur", "change"], minChars:4}); var sprytextfieldsc = new Spry.Widget.ValidationTextField("sprytextfieldsc", "none", {validateOn:["blur", "change"], minChars:0, isRequired:false}); </script> </body> </html>
|