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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
<?php // Status Package Module $status_module=select_query("status_module","cms_status_module","id","10"); if($status_module[0]!=1) { fieldset_no_module(); } import_request_variables('pG', 'p_'); if($p_id_user!="") { $id_user=trim($p_id_user); }
$navig['manage_user']="ระบบสมาชิก"; $navig['edit_user']="แก้ไขข้อมูล";
navigator($navig); echo "<br>"; bar_header("แก้ไขข้อมูล"); // Bar_Header fieldset_top("จัดการระบบสมาชิก"); $data_profile = select_query_object("*","cms_user_profile","id_user",$id_user); $name_profile = $data_profile->name; $surname_profile = $data_profile->surname; $email_profile = $data_profile->email; $addres_profile = $data_profile->address; $telephone_profile = $data_profile->telephone; $picure_profile = $data_profile->picture; $id_user = $data_profile->id_user; $sex = $data_profile->sex; ?> <form name="edit_form" method="post" action="index.php?mod=edit_user_output&path=user" enctype="multipart/form-data" /> <table align="center" width="98%" border="0">
<tr height='30'> <td width="6%"> </td> <td width="29%"> <?php print_arr1(); ?> รูปภาพ </td> <td> <?php if (file_exists("$_SESSION[web_name]/users/$id_user/user_picture/$picure_profile")) echo "<img src='$_SESSION[web_name]/users/$id_user/user_picture/$picure_profile' />"; else print_nopic(); ?> </td> </tr>
<tr height='30'> <td width="6%"> </td> <td width="29%"> <?php print_arr1(); ?> อัพรูปภาพใหม่ </td> <td> <input name="picture_file" type="file" size="50px" > </td> </tr> <tr height='30'> <td width="6%"> </td> <td width="29%"> <?php print_arr1(); ?> ชื่อ </td> <td width="100%" align="left"> <input type="text" name="name" value="<?php echo $name_profile?>" /> </td> </tr> <tr height='30'> <td width="6%"> </td> <td width="29%"> <?php print_arr1(); ?> เพศ </td> <td width="100%" align="left"> <select name="sex"> <?php if($sex==M) echo "<option value='M' selected='selected'>ชาย</option>"; else echo "<option value='M'>ชาย</option>"; if($sex==F) echo "<option value='F' selected='selected'>หญิง</option>"; else echo "<option value='F'>หญิง</option>"; ?> </select> </td> </tr> <tr height='30'> <td> </td> <td> <?php print_arr1(); ?> นามสกุล </td> <td> <input type="text" name="surname" value="<?php echo $surname_profile?>" /> </td> </tr> <tr height='30'> <td width="6%"> </td> <td width=""> <?php print_arr1(); ?> อีเมลล์ </td> <td> <input type="text" name="email" value="<?php echo $email_profile?>" /> </td> </tr> <tr height='30'> <td width="6%"> </td> <td width=""> <?php print_arr1(); ?> ที่อยู่ </td> <td> <input type="text" name="address" value="<?php echo $address_profile?>" /> </td> </tr> <tr height='30'> <td width="6%"> </td> <td width=""> <?php print_arr1(); ?> เบอร์โทรศัพท์ </td> <td> <input type="text" name="tel" value="<?php echo $telephone_profile?>" /> </td> </tr> <tr height='30'> <td width="6%"> </td> <td> <?php print_arr1(); ?> คลิกเพื่อเปลี่ยนรหัสผ่าน </td> <td> <input type="checkbox" name="change_pass" onclick="enable_pass()"/> </td> </tr> </tr> <tr height='30'> <td width="6%"> </td> <td> <?php print_arr1(); ?> รหัสผ่านใหม่ </td> <td> <input type="password" name="new_pass" disabled="disabled"/> </td> </tr> <tr height='30'> <td width="6%"> </td> <td> <?php print_arr1(); ?> ยืนยันรหัสผ่านใหม่ </td> <td> <input type="password" name="new_pass2" disabled="disabled"/> </td> </tr> <tr height='30'> <td width="6%"> </td> <td width=""> </td> <td> <input type="submit" name="btn_submit" value="แก้ไขข้อมูล" / onmouseover=this.style.cursor='hand'> <input type="hidden" name="id_user_edit" value="<?php echo $id_user;?>" /> </td> </tr> </table> </form> <?echo fieldset_down();?> <script language="javascript"> function enable_pass(){ document.edit_form.new_pass.disabled = false; document.edit_form.new_pass2.disabled = false; } </script>
|