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
|
<?php session_start(); include("../../../$_SESSION[web_name]/connect.php"); include ("../../function_import_request.php"); echo '<script src="../../ckeditor/ckeditor.js"></script>'; //echo "<link href='../../ccs/style.css' rel='stylesheet' type='text/css'>";
import_request_variables('pG', 'p_'); // แสดงเนื้อหา if($p_type!="") { $type=trim($p_type); }
if ($type == 1) { echo "<title>สายตรงถึงนายก ฯ</title>"; } elseif ($type == 2) { echo "<title>สายตรงถึงปลัด ฯ</title>"; } elseif ($type == 3) { echo "<title>ร้องเรียนการทุจริต</title>"; }elseif ($type == 4) { echo "<title>การแสดงความคิดเห็น</title>"; } //echo"<body background='../../../$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[background]' bgproperties='fixed'>"; ?> <table width="70%" height=100 border="0" align="center" cellpadding="1" cellspacing="1" bgcolor='dddddd'> <tr height="40"> <td align=center valign=center><h3><br>กรุณากรอกรายละเอียดข้อมูลการทุจริต</h3></td> </tr> </table>
<form action="help_s_add_output.php" method="post" enctype="multipart/form-data" name="add" onSubmit="return checkadd()"> <table width="70%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor='dddddd'> <tr height="40" bgcolor='eeeeee'> <td><div align="left"><img src='../../images/marker.gif'> <strong>หัวข้อ</strong></div></td> <td><input name="topic" type="text" style="width: 60%;"></td> </tr> <tr height='40' valign="top" bgcolor='eeeeee'> <td> <img src='../../images/marker.gif'> <b>รายละเอียดการทุจริต </td> <td> <textarea id='fulltexts' name='fulltexts'></textarea> <input type="hidden" name="type" value="<?php echo $type; ?>" /> </td> </tr> <script> CKEDITOR.config.width = '80%'; CKEDITOR.config.height = '250'; CKEDITOR.replace( 'fulltexts', { filebrowserBrowseUrl: '../../ckeditor/filemanager/dialog.php?type=2&editor=ckeditor&fldr=', filebrowserImageBrowseUrl: '../../ckeditor/filemanager/dialog.php?type=1&editor=ckeditor&fldr=' }); </script> <tr height="40" bgcolor='eeeeee'> <td><div align="left"><img src='../../images/marker.gif'> <strong>ชื่อ</strong></div></td> <td><div align="left"><input name="name_help" type="text" style="width: 60%;"></td> </tr> <tr height="40" bgcolor='eeeeee'> <td><div align="left"><img src='../../images/marker.gif'> <strong>ที่อยู่</strong></div></td> <td><div align="left"><input name="address_help" type="text" style="width: 60%;"></td> </tr> <tr height="40" bgcolor='eeeeee'> <td><div align="left"><img src='../../images/marker.gif'> <strong>โทรศัพท์</strong></div></td> <td><div align="left"><input name="tel_help" type="text" style="width: 60%;"></td> </tr> <tr height="40" bgcolor='eeeeee'> <td><div align="left"><img src='../../images/marker.gif'> <strong>อีเมล์</strong></div></td> <td><div align="left"><input name="email_help" type="text" style="width: 60%;"></td> </tr> <tr> <!-- File --> <tr height="40" bgcolor='eeeeee'> <td><div align="left"><img src='../../images/marker.gif'> <strong>เอกสารประกอบ</strong></div></td> <td><div align="left"><input name="userfile5" type="file" size="49"></td> </tr> <tr height="40" bgcolor='eeeeee'> <td colspan=2 align="center"> <button type="submit" name="name" style="padding: 5px 10px; cursor: pointer;">ส่งข้อมูลการทุจริต</button> </td> </tr> <tr height="87" bgcolor='eeeeee'> <td colspan=3></td> </tr>
</table> </form> <script language="javascript"> function checkadd() { var fulltexts = CKEDITOR.instances['fulltexts'].getData(); if(document.add.topic.value=="") { alert("กรุณากรอก หัวข้อ !") ; document.add.topic.focus() ; return false ; } else if(fulltexts=="") { alert("กรุณากรอกรายละเอียด !") ; return false ; }else if(document.add.name_help.value=="") { alert("กรุณากรอก ชื่อ !") ; document.add.name_help.focus() ; return false ; } else if(document.add.address_help.value=="") { alert("กรุณากรอก ที่อยู่ !") ; document.add.address_help.focus() ; return false ; } else if(document.add.tel_help.value=="") { alert("กรุณากรอก โทรศัพท์ !") ; document.add.tel_help.focus() ; return false ; } else return true ; } </script>
|