Server IP : 119.59.102.212 / Your IP : 18.117.185.140 Web Server : Apache/2 System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64 User : yangkam ( 1022) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/yangkam/domains/yangkam.go.th/private_html/coremain/module/help/ |
Upload File : |
<?php // Status Package Module $status_module=select_query("status_module","cms_status_module","id","25"); if($status_module[0]!=1) { fieldset_no_module(); } $navig['help']="ร้องทุกข์"; $navig['help_add']="เพิ่มข้อมูล"; navigator($navig); echo"<br>"; bar_header("เพิ่มข้อมูล"); // Bar_Header fieldset_top("ร้องทุกข์"); if($p_topic!="") { $topic=trim($p_topic); } if($p_evar!="") { $fulltexts=trim($p_evar); } if($p_name_help!="") { $name_help=trim($p_name_help); } if($p_address_help!="") { $address_help=trim($p_address_help); } if($p_tel_help!="") { $tel_help=trim($p_tel_help); } if($p_email_help!="") { $email_help=trim($p_email_help); } $userfile5_name=trim($_FILES['userfile5']['name']); $date=date("d"); $month=date("m"); $year=date("Y"); $yearthai=$year+543; $strf = strftime("%H%M%S"); $date_time_help=$yearthai.$month.$date.$strf; // เช็คไฟล์ว่าถูกต้องหรือไม่ if($userfile5_name!="") { check_file($userfile5_name,5); } // Create_Filename if($userfile5_name!="") { $name5=create_filename($userfile5_name); $dlink="$_SESSION[web_name]/mainfile/".$name5; upload_file_to_server($dlink,$_FILES['userfile5']); } //#########เพิ่มข้อมูลลงในฐาน $sql="INSERT INTO `cms_help` ( `id_help` , `topic` , `fulltexts` , `who_help` , `address_help` , `tel` , `email` , `date_help` , `status` , `files` , `who_process` , `date_process` , `detail_process` , `who_aecept` , `date_aecept` , `detail_acept`,`ip` ) VALUES ( '', '$topic', '$fulltexts', '$name_help', '$address_help', '$tel_help', '$email_help', '$date_time_help', '1', '$name5', '', '', '', '', '', '','$_SERVER[REMOTE_ADDR]')"; mysql_query($sql) or die(mysql_error()); echo "<br><center>"; echo "<b>ข้อมูลร้องทุกข์ข้างล่างนี้ ได้ถูกส่งไปยังเจ้าหน้าที่ที่เกี่ยวข้องแล้ว<b><br>"; $sql="SELECT max(id_help) FROM cms_help"; $re=mysql_query($sql); $data=mysql_fetch_array($re); // แสดงเนื้อหาข่าวประชาสัมพันธ์ echo"<table width='100%' border='0' cellspacing='1' align='center' cellpadding='0'>"; $data=select_query("*","cms_help","id_help",$data[0]); { echo" <tr height=40>"; echo"<td width='140'>"; echo " <img src='coremain/images/marker.gif'> <b>หัวข้อร้องทุกข์</b>"; echo"</td>"; echo "<td>$data[topic]<br></td>"; echo"</tr>"; echo" <tr height=40>"; echo"<td>"; echo " <img src='coremain/images/marker.gif'> <b>รายละเอียด</b>"; echo"</td>"; echo "<td>$data[fulltexts]<br></td>"; echo"</tr>"; echo" <tr height=40>"; echo"<td>"; echo " <img src='coremain/images/marker.gif'> <b>ชื่อผู้ร้อง</b>"; echo"</td>"; echo "<td>$data[who_help]<br></td>"; echo"</tr>"; echo" <tr height=40>"; echo"<td>"; echo " <img src='coremain/images/marker.gif'> <b>ที่อยู่ผู้ร้อง</b>"; echo"</td>"; echo "<td>$data[address_help]<br></td>"; echo"</tr>"; echo" <tr height=40>"; echo"<td>"; echo " <img src='coremain/images/marker.gif'> <b>โทรศัพท์ผู้ร้อง</b>"; echo"</td>"; echo "<td>$data[tel]<br></td>"; echo"</tr>"; echo" <tr height=40>"; echo"<td>"; echo " <img src='coremain/images/marker.gif'> <b>อีเมล์ผู้ร้อง</b>"; echo"</td>"; echo "<td>$data[email]<br></td>"; echo"</tr>"; echo" <tr height=40>"; echo"<td>"; echo " <img src='coremain/images/marker.gif'> <b>วัน/เวลาที่ร้อง</b>"; echo"</td>"; echo "<td>$data[date_help]<br></td>"; echo"</tr>"; if($data[files]!=""){ echo" <tr height=40>"; echo"<td>"; echo " <img src='coremain/images/marker.gif'> <b>เอกสารประกอบ</b>"; echo"</td>"; echo "<td><a href='$_SESSION[web_name]/mainfile/$data[files]' target=blank>ดาวน์โหลด</a><br></td>"; echo"</tr>"; } } echo"</table>"; echo "<a href='index.php'>กลับหน้าหลัก</a>"; echo "</center>"; //include('coremain/footer.php'); fieldset_down(); exit; ?>