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
|
<?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_chart!="") { $id_chart=trim($p_id_chart); }
$navig['muban_chart']=$data_name_menu_sub[name]; $navig['director_add']="ข้อมูลบุคลากร"; navigator($navig); echo "<br>"; bar_header("ข้อมูลบุคลากร"); // Bar_Header fieldset_top($data_name_menu_sub[name]); //include ("ajax_link_picture.php"); echo "<br/>"; ?> <form name="add" action="index.php?mod=muban_add_output&path=muban_chart&id_sub=<?php echo $id_sub?>&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=''></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"></td> </tr> <tr height='35'> <td><?php echo print_arr1();?> <strong>เบอร์โทรศัพท์</strong></td> <td><input name="telephone" type="text" size="50"></td> </tr> <tr height='35'> <td><?php echo print_arr1();?> <strong>E-mail</strong></td> <td><input name="email" type="text" size="50"></td> </tr> <tr height='35'> <td><?php echo print_arr1();?> <strong>ข้อมูลประวัติ</strong></td> <td> <?php $oFCKeditor = new FCKeditor('profile') ; $oFCKeditor->BasePath = 'coremain/editor/'; $oFCKeditor->Width = '440'; $oFCKeditor->Height = '300'; $oFCKeditor->Create() ?> </td> </tr>
<td colspan='2' 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.add; if(doc.name.value == ""){ alert("กรุณากรอกชื่อ"); doc.name.focus(); return false; } return true; } </script>
|