/home/banprang/domains/plai.go.th/public_html/coremain/module/help_s/help_s_full.php


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
<?php
session_start
();
include(
"../../../$_SESSION[web_name]/connect.php");
include (
"../../function_import_request.php");
echo 
'<script src="../../ckeditor/ckeditor.js"></script>';
import_request_variables('pG''p_');
// แสดงเนื้อหา
if($p_type!="")                                                    {         $type=trim($p_type);                                            }
if(
$p_id_help_detail!="")                                    {         $id_help_detail=trim($p_id_help_detail);            }

echo
"<link href='../../ccs/style.css' rel='stylesheet' type='text/css'>";
if (
$type == 1) {
  echo 
"<title>สายตรงถึงนายก ฯ</title>";
} elseif (
$type == 2) {
  echo 
"<title>สายตรงถึงปลัด ฯ</title>";
} elseif (
$type == 3) {
  echo 
"<title>ร้องเรียนการทุจริต</title>";
}elseif (
$type == 4) {
  echo 
"<title>การแสดงความคิดเห็น</title>";
}

include(
"../../../$_SESSION[web_name]/connect.php");
//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" bgcolor='dddddd'>
     <td align=center valign=center><h3><br>กรุณากรอกรายละเอียดข้อมูล</h3></td>
  </tr>
</table>
<?php
// แสดงเนื้อหาข่าวประชาสัมพันธ์
echo"<table width='70%' border='0' align='center' cellpadding='1' cellspacing='1' bgcolor='dddddd'>";

$sql="SELECT * FROM cms_help_group_detail WHERE id_help_detail='$id_help_detail'";
$re=mysql_query($sql);
$data=mysql_fetch_array($re);
    
    echo
"  <tr height=40' bgcolor='eeeeee'>";
        echo
"<td width='200'>";                                    
                    echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>หัวข้อ</b>";
        echo
"</td>";
        echo 
"<td>$data[topic]<br></td>";
    echo
"</tr>";

    echo
"  <tr height=40 bgcolor='eeeeee'>";
        echo
"<td valign=top>";                                    
                    echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>รายละเอียด</b>";
        echo
"</td>";
        echo 
"<td>$data[fulltexts]<br></td>";
    echo
"</tr>";

    echo
"  <tr height=40 bgcolor='eeeeee'>";
        echo
"<td>";                                    
                    echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>ชื่อ</b>";
        echo
"</td>";
        echo 
"<td>$data[who_help]<br></td>";
    echo
"</tr>";

    echo
"  <tr height=40 bgcolor='eeeeee'>";
        echo
"<td>";                                    
                    echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>ที่อยู่</b>";
        echo
"</td>";
        echo 
"<td>$data[address_help]<br></td>";
    echo
"</tr>";
    
    echo
"  <tr height=40 bgcolor='eeeeee'>";
        echo
"<td>";                                    
                    echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>โทรศัพท์</b>";
        echo
"</td>";
        echo 
"<td>$data[tel]<br></td>";
    echo
"</tr>";

    echo
"  <tr height=40 bgcolor='eeeeee'>";
        echo
"<td>";                                    
                    echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>อีเมล์</b>";
        echo
"</td>";
        echo 
"<td>$data[email]<br></td>";
    echo
"</tr>";    

    echo
"  <tr height=40 bgcolor='eeeeee'>";
        echo
"<td>";                                    
                    echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>วัน/เวลา</b>";
        echo
"</td>";
        echo 
"<td>$data[date_help]<br></td>";
    echo
"</tr>";    
    if(
$data['files']!=""){
    echo
"  <tr height=40 bgcolor='eeeeee'>";
        echo
"<td>";                                    
        echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>เอกสารประกอบ</b>";
        echo
"</td>";
        echo 
"<td><a href='../../../$_SESSION[web_name]/mainfile/$data[files]' target=blank>ดาวน์โหลด</a><br></td>";
    echo
"</tr>";    
    }            
    echo
"  <tr height=40 bgcolor='eeeeee'>";
        echo
"<td>";                                    
                    echo 
"&nbsp; &nbsp;&nbsp;<img src='../../../coremain/images/marker.gif'>&nbsp;&nbsp;<b>การดำเนินการ</b>";
        echo
"</td>";
        echo 
"<td valign=center>";
        echo
"<form  action='help_s.php?type=$type&id_help_detail=$id_help_detail' method='post' enctype='multipart/form-data' name='add'>";
                echo
"<TEXTAREA NAME='change' ROWS='7' COLS='48'>$data[detail_acept]</TEXTAREA>";
                echo 
"<br/><br/><INPUT TYPE='submit' value='บันทึกข้อมูล' name='ok'>";
        echo 
"</form>";
        echo
"</td>";
    echo
"</tr>";    

echo
"  <tr height='40'>";
echo
"     <td colspan=2 align=center valign=center><a href='help_s.php?type=$type'>กลับหน้าหลัก</a></td>";
echo
"  </tr>";

echo
"</table>";
?>