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
|
<?php if(id_sub_permission($id_sub)!=1){ permission_fail(); } import_request_variables('pG', 'p_'); if($p_id_sub!="") { $id_sub=trim($p_id_sub); } if($p_id_profile!="") { $id_profile=trim($p_id_profile); } if($p_id_chart!="") { $id_chart=trim($p_id_chart); }
$navig['muban_chart']=$data_name_menu_sub[name]; $navig['muban_edit_profile']="ข้อมูลบุคลากร"; navigator($navig); echo "<br>"; bar_header("ข้อมูลบุคลากร"); // Bar_Header fieldset_top($data_name_menu_sub[name]); //include ("ajax_link_picture.php");
$dat_info = select_query_object("*","cms_muban_chart_profile","id_profile",$id_profile); $name = $dat_info->name; $picture = $dat_info->picture; $position = $dat_info->position; $tel = $dat_info->telephone; $email = $dat_info->email; $profile = $dat_info->profile;
echo "<br/>"; ?> <form name="edit" action="index.php?mod=muban_edit_profile_output&path=muban_chart&id_sub=<?php echo $id_sub?>&id_profile=<?php echo $id_profile?>&id_chart=<?php echo $id_chart;?>" method="post" enctype="multipart/form-data" onSubmit="return check_form();"> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="3">
<tr height='35'> <td><?php echo print_arr1();?> <strong>ชื่อ</strong></td> <td><INPUT TYPE="text" NAME="name" size="50" value='<?php echo $name;?>'></td> </tr> <tr height='35'> <td></td> <td><img src="<?php echo $_SESSION[web_name]."/muban_chart/".$id_sub."/".$picture;?>"></td> </tr> <tr height='35'> <td><?php echo print_arr1();?> <strong>อัพโหลดรูปภาพ</strong></td> <td><input name="picture_file" type="file" size="50"> <br><font color="#FF0000">รูปขนาดไม่เกิน 170x200 pixel</font></td> </tr>
<tr height='35'> <td><?php echo print_arr1();?> <strong>ตำแหน่ง</strong></td> <td><input name="position" type="text" size="50" value='<?php echo $position;?>'></td> </tr> <tr height='35'> <td><?php echo print_arr1();?> <strong>เบอร์โทรศัพท์</strong></td> <td><input name="telephone" type="text" size="50" value='<?php echo $tel;?>'></td> </tr> <tr height='35'> <td><?php echo print_arr1();?> <strong>E-mail</strong></td> <td><input name="email" type="text" size="50" value='<?php echo $email;?>'></td> </tr> <tr height='35'> <td><?php echo print_arr1();?> <strong>ข้อมูลประวัติ</strong></td> <td> <?php $oFCKeditor = new FCKeditor('profile') ; $oFCKeditor->BasePath = 'coremain/editor/'; $oFCKeditor->Value = $profile; $oFCKeditor->Width = '450'; $oFCKeditor->Height = '300'; $oFCKeditor->Create() ?> </td> </tr>
<td colspan='3' align="center"> <input type="submit" name="Submit" value="แก้ไขข้อมูล" onmouseover="this.style.cursor='hand'"> </td> </tr>
</table> </form>
<? echo "<br/>"; fieldset_down(); ?>
<script language="javascript"> function check_form(){ doc = document.edit; if(doc.name.value == ""){ alert("กรุณากรอกชื่อ"); doc.name.focus(); return false; } return true; } </script>
|