|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_integration/requirement/application/ecomplain/bin/ |
Upload File : |
<?
session_start();
include "../../config/config.inc.php";
include("function/function.php");
//insert timeQuery
include("../../common/common_system.inc.php");
$ApplicationName="ecomplain";
$time_start = getmicrotime();
//insert timeQuery
if($type_user == "gov"){
$txt_type_user = "0"; // เจ้าหน้าที่ของรัฐ
}else{
$txt_type_user = "1";// ประชาชน
}
if($_SESSION[province_code] != ""){
$province_code = $_SESSION[province_code];
}else{
$province_code = "13000000"; // defult จังหวัดสมุทรสาคร
}
$ran_str = randomstr(6); /// random รหัสรูปภาพ
$curent_yy = date("Y");
if($type_user != ""){
include("header_menu.php");
}
if ($_SERVER[REQUEST_METHOD] == "POST"){
if($Aaction == "SAVE"){
// วันเริ่มต้นช่วงเกิดเหต
if($rdodate == "0")
{
$act_start_date = $act_start_date0;
$act_end_date = "";
}
if($act_start_date != ""){
$arr_dt1 = explode("/",$act_start_date);
$act_sd = ($arr_dt1[2]-543)."-".$arr_dt1[1]."-".$arr_dt1[0];
}else{
$act_sd = "0000-00-00";
}
// ถึงวันที่สิ้นสุด
if($act_end_date != ""){
$arr_dt2 = explode("/",$act_end_date);
$act_ed = ($arr_dt2[2]-543)."-".$arr_dt2[1]."-".$arr_dt2[0];
}else{
$act_ed = "0000-00-00";
}
// วันที่รับเรื่อง
if($accept_date != ""){
$arr_dt3 = explode("/",$accept_date);
$act_ad = ($arr_dt3[2]-543)."-".$arr_dt3[1]."-".$arr_dt3[0];
}else{
$act_ad = "0000-00-00";
}
## รหัส Ticket ID ที่จะบันทึกเข้าสู่ระบบ
$Tic_TYY = substr((date("Y")+543),-2);
$Ticket_ID = $Tic_TYY.date("md")."T".date("His");
// echo"<pre>";print_r($_POST);die;
//------------------------------------------------------------- บันทึกข้อมูลติดตามเรื่องร้องเรียน
####### USER INFOMATION
$info=$_SERVER['HTTP_USER_AGENT'];
$info=str_replace("(","",$info);
$info=str_replace(")","",$info);
$arr_info=explode(" ",$info);
$user_info[client_ip]=$REMOTE_ADDR;
$user_info[browser].=$arr_info[0];
$user_info[browser]=$arr_info[2];
$user_info[browser_version]=str_replace(";","",$arr_info[3]);
$user_info[os]=$arr_info[4]." ".$arr_info[5];
$user_info[os_version]=$arr_info[6];
$sql_insert = "
INSERT INTO
tbl_complain set
complain_id='$Ticket_ID',
yy='$curent_yy',
public_writen = '$public_writen',
public_title='$title',
public_name = '$public_name',
public_lastname = '$public_lastname',
date='$date',
month='$mm',
year='$year',
public_age = '$public_age',
public_job = '$public_job',
public_address = '$public_address',
public_moo = '$public_moo',
public_tambol = '$public_tambon',
public_amphur = '$public_amphur',
public_province = '$public_province',
public_zipcode = '$public_zipcode',
public_phone = '$public_phone',
public_email = '$public_email',
public_idcard='$public_idcard',
type_request = '$type_problem',
problem_comment = '$problem_comment',
complain_detail = '$complain_detail',
type_process = '$type_process',
process_comment = '$process_comment',
keyin_time = now(),
status_show_owner='$status_show_owner',
accept_date='$accept_date',
feedback='$feedback',
type_user='$txt_type_user',
client_ip='$user_info[client_ip]',
client_browser='$user_info[browser]',
client_browser_version='$user_info[browser_version]',
client_os='$user_info[os]',
client_os_version='$user_info[os_version]',
request_level='$type_level' ";
// echo '<pre>'.$sql_insert;die;
$result_insert = mysql_db_query($dbname,$sql_insert);
$insert_id = $Ticket_ID; // รหัสล่าสุดที่มีการเพิ่มข้อมูล
// กรณี เจ้าหน้าที่ login เข้ามากรอกข้อมูล
//$sql_insert_gov = "INSERT INTO tbl_complain_approve SET complain_id='$insert_id', org_code='$org_code',subject='$complain_detail',type_problem='$type_problem',office_id='$office_id',ministry='$ministry',department='$department',accept_date='$txt_date_accept' ";
// end กรณีเจ้าหน้าที่ login เข้ามากรอก
$count_file = count($file_act);// นับจำนวนไฟล์ที่แนบเข้ามา
for($i = 0; $i < $count_file; $i++){ // ทำการวน loop เพื่อบันทึกไฟล์แนบ
if(!empty($file_act[$i])){
$yymmdd = (date("Ymd")).$insert_id."_".randigit(5);
$path_name = "../../attach_file/";
$arrfileext = explode("." , $file_act_name[$i]) ;
$nmcount = count($arrfileext) - 1 ;
$file1ext = $arrfileext[$nmcount] ;
$server_filename = $yymmdd.".$file1ext" ;
$save_path = $path_name.$server_filename;
if (copy( $file_act[$i] , $save_path )){
$sql_insert_file = "INSERT INTO tbl_attachfile SET complain_id='$insert_id',act_file='$save_path',note_file='$note_file[$i]'";
$result_insert_file = mysql_db_query($dbname,$sql_insert_file);
}// end if (copy( $url_file , $save_path )){
} // end if(!empty($file_act[$i])){
}// end for(){
if($result_insert){
if($type_user != ""){
addlog("บันทึกเรื่องเรียน - ร้องทุกข์ โดยเจ้าหน้าที่",$app_id,$act1,$insert_id); // add log
echo "
<script language=\"javascript\">
alert(\"ทำการบันทึกข้อมูลเสร็จสิ้น ! ท่านจะได้ Ticket_ID เพื่อตรวจสอบสถานะเรื่องร้องเรียนจากระบบ\\n \");
location.href='form_manage_data.php?senttab=$senttab&action=Ticket_ID&complain_id=$insert_id&type_user=$type_user';
</script>
";
exit();
}else{
addlog("บันทึกเรื่องเรียน - ร้องทุกข์โดยประชาชน",$app_id,$act1,$insert_id); // add log
echo "
<script language=\"javascript\">
alert(\"ทำการบันทึกข้อมูลเสร็จสิ้น ! ท่านจะได้ Ticket_ID เพื่อตรวจสอบสถานะเรื่องร้องเรียนจากระบบ\\n \");
location.href='form_manage_data.php?action=Ticket_ID&complain_id=$insert_id&type_user=$type_user';
</script>
";
exit();
} // end if($type_user != ""){
}// end if($result_insert){
} // end if($Aaction == "SAVE"){
// แก้ไขรายการข้อมูล
if($Aaction == "SAVE_EDIT"){
if($rdodate == "0")
{
$act_start_date = $act_start_date0;
$act_end_date = "";
}
if($act_start_date != ""){
$arr_dt1 = explode("/",$act_start_date);
$act_sd = ($arr_dt1[2]-543)."-".$arr_dt1[1]."-".$arr_dt1[0];
}else{
$act_sd = "0000-00-00";
}
// ถึงวันที่สิ้นสุด
if($act_end_date != ""){
$arr_dt2 = explode("/",$act_end_date);
$act_ed = ($arr_dt2[2]-543)."-".$arr_dt2[1]."-".$arr_dt2[0];
}else{
$act_ed = "0000-00-00";
}
// วันที่รับเรื่อง
if($accept_date != ""){
$arr_dt3 = explode("/",$accept_date);
$act_ad = ($arr_dt3[2]-543)."-".$arr_dt3[1]."-".$arr_dt3[0];
}else{
$act_ad = "0000-00-00";
}
$sql_update = "
UPDATE tbl_complain SET
public_writen = '$public_writen',
public_title='$title',
public_name = '$public_name',
public_lastname = '$public_lastname',
date='$date',
month='$mm',
year='$year',
public_job = '$public_job',
public_address = '$public_address',
public_moo = '$public_moo',
public_tambol = '$public_tambon',
public_amphur = '$public_amphur',
public_province = '$public_province',
public_zipcode = '$public_zipcode',
public_phone = '$public_phone',
public_email = '$public_email',
type_problem = '$type_problem',
problem_comment = '$problem_comment',
complain_detail = '$complain_detail',
type_process = '$type_process',
feedback='$feedback',
process_comment = '$process_comment',
type_user='$txt_type_user'
WHERE complain_id='$insert_id'";
//echo "<pre>".$sql_update;die;
$result_update = mysql_db_query($dbname,$sql_update);
$count_file = count($file_act);// นับจำนวนไฟล์ที่แนบเข้ามา
for($i = 0; $i < $count_file; $i++){ // ทำการวน loop เพื่อบันทึกไฟล์แนบ
if(!empty($file_act[$i])){
$yymmdd = (date("Ymd")).$insert_id."_".randigit(5);
$path_name = "../../attach_file/";
$arrfileext = explode("." , $file_act_name[$i]) ;
$nmcount = count($arrfileext) - 1 ;
$file1ext = $arrfileext[$nmcount] ;
$server_filename = $yymmdd.".$file1ext" ;
$save_path = $path_name.$server_filename;
if (copy( $file_act[$i] , $save_path )){
$sql_insert_file = "INSERT INTO tbl_attachfile SET complain_id='$insert_id',act_file='$save_path',note_file='$note_file[$i]'";
$result_insert_file = mysql_db_query($dbname,$sql_insert_file);
}// end if (copy( $url_file , $save_path )){
} // end if(!empty($file_act[$i])){
}// end for(){
if($result_update){
if($type_user != ""){
addlog("แก้ไขเรื่องเรียน - ร้องทุกข์ โดยเจ้าหน้าที่",$app_id,$act1,$insert_id); // add log
echo "
<script language=\"javascript\">
alert(\"ทำการบันทึกข้อมูลเสร็จสิ้น ! ท่านจะได้ Ticket_ID เพื่อตรวจสอบสถานะเรื่องร้องเรียนจากระบบ\\n \");
location.href='form_manage_data.php?senttab=$senttab&action=Ticket_ID&complain_id=$insert_id&type_user=$type_user';
</script>
";
//location.href='report_index.php?senttab=$senttab';
exit();
}else{
addlog("แก้ไขเรื่องเรียน - ร้องทุกข์ โดยประชาชน",$app_id,$act1,$insert_id); // add log
echo "
<script language=\"javascript\">
alert(\"ทำการบันทึกข้อมูลเสร็จสิ้น ! ท่านจะได้ Ticket_ID เพื่อตรวจสอบสถานะเรื่องร้องเรียนจากระบบ\\n \");
location.href='form_manage_data.php?action=Ticket_ID&complain_id=$insert_id&type_user=$type_user';
</script>
";
exit();
}// end if($type_user != ""){<strong></strong>
}// end if($result_update){
}
} //end post
?><HTML>
<HEAD>
<TITLE><?=$show_title_comp?></TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-874">
<LINK href="../../common/style.css" type="text/css" rel="stylesheet" />
<SCRIPT language='javascript' src='daily_popcalendar.js'></SCRIPT>
<SCRIPT language='javascript' src='displayelement.js'></SCRIPT>
<STYLE type="text/css">
<!--
body { margin: 0px 0px; padding: 0px 0px}
a:link { color: #005CA2; text-decoration: none}
a:visited { color: #005CA2; text-decoration: none}
a:active { color: #0099FF; text-decoration: underline}
a:hover { color: #0099FF; text-decoration: underline}
.style3 {color: #FF0000}
.p_border{
border-bottom:2 solid #DADCED;
}
.style4 {
color: #990000;
}
-->
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
var xmlHttp;
function createXMLHttpRequest() {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
}
function handleStateChange() {
if(xmlHttp.readyState == 4) {
if(xmlHttp.status == 200) {
updateproductList();
}
}
}
function updateproductList() {
clearproductList();
var department = document.getElementById("alleg_department");
var results = xmlHttp.responseText;
var option = null;
p=results.split(",");
option = document.createElement("option");
option.setAttribute("value",0);
option.appendChild(document.createTextNode("ไม่ระบุ"));
department.appendChild(option);
for (var i = 0; i < p.length; i++){
if(p[i] > ""){
x = p[i].split("::");
option = document.createElement("option");
option.setAttribute("value",x[1]);
option.appendChild(document.createTextNode(x[0]));
department.appendChild(option);
}
}
}
function clearproductList() {
var department = document.getElementById("alleg_department");
while(department.childNodes.length > 0) {
department.removeChild(department.childNodes[0]);
}
}
function refreshproductList() {
var ministry = document.getElementById("alleg_ministry").value;
if(ministry == "" ) {
clearproductList();
return;
}
var url = "ajax_minitry.php?ministry_id=" + ministry;
createXMLHttpRequest();
xmlHttp.onreadystatechange = handleStateChange;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
}
var gFiles = 0;
function addFile() {
var subS = "คำอธิบายไฟล์ : ";
var subS1 = " ไฟล์แนบ : ";
var li = document.createElement('li');
li.setAttribute('id', 'file-' + gFiles);
li.innerHTML = subS+'<input type="text" name="note_file[]" size="30">'+subS1+'<input type="file" name="file_act[]" size="20" ><span onclick="removeFile(\'file-' + gFiles + '\')" style="cursor:pointer;"> <img src=../../images/profile_expanded.gif border=0></span>';
document.getElementById('files-root').appendChild(li);
gFiles++;
}
function removeFile(aId){
var obj = document.getElementById(aId);
obj.parentNode.removeChild(obj);
}
/// function check เลขบัตร
function checkID(id) {
if(id.length != 13) return false;
for(i=0, sum=0; i < 12; i++)
sum += parseFloat(id.charAt(i))*(13-i);
if((11-sum%11)%10!=parseFloat(id.charAt(12))) return false;
return true;
}
// end function check เลขบัตร
function CheckForm(){
var type_u = document.getElementById("type_user").value;
// alert (document.form.type_problem.value);
if(document.form.type_problem.value == "6"){
if(document.form.problem_comment.value == ""){
alert(" ! กรุณาระบุรายละเอียดเรื่องร้องเรียน ");
document.form.problem_comment.focus();
return false;
}
}
if(document.form.type_process.value == "5"){
if(document.form.process_comment.value == ""){
alert(" ! กรุณาระบุรายละเอียดการดำเนินการที่ต้องการ ");
document.form.process_comment.focus();
return false;
}
}
if(document.form.public_name.value == ""){
alert(" !กรุณาระบุชื่อ - สกุล ผู้ถูกร้องเรียน");
document.form.public_name.focus();
return false;
}else if(document.form.type_problem.value == ""){
alert(" !กรุณาระบุประเภทเรื่องร้องเรียน ");
document.form.type_problem.focus();
return false;
}else if(document.form.complain_detail.value == ""){
alert(" !กรุณาระบุข้อกล่าวหา / ข้อร้องเรียน");
document.form.complain_detail.focus();
return false;
}else if(document.form.type_process.value == ""){
alert(" !กรุณาระบุประเภทดำเนินการ ");
document.form.type_process.focus();
return false;
}else{
if(type_u != "gov"){
if(document.form.public_name.value == ""){
alert(" ! กรุณาระบุชื่อของท่านด้วยครับ");
document.form.public_name.focus();
return false;
}else if(!checkID(document.form.public_idcard.value)){
alert(" ! เลขบัตรประจำตัวของท่านไม่ถูกต้องตามกรมการปกครอง กรุณาระบุใหม่อีกครั้ง");
document.form.public_idcard.focus();
return false;
}else if(document.form.char_code.value == ""){
alert(" !กรุณาระบุรหัสภาพ");
document.form.char_code.focus();
return false;
}
}else{
return true;
}
}
}
</SCRIPT>
<SCRIPT language="javascript">
function popWindow(url, w, h){
var popup = "Popup";
if(w == "") w = 420;
if(h == "") h = 300;
var newwin = window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
newwin.focus();
}
function popWindow1(url, w, h){
var popup = "Popup";
if(w == "") w = 420;
if(h == "") h = 300;
var newwin = window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
newwin.focus();
}
function popWindow2(url, w, h){
var popup = "Popup";
if(w == "") w = 420;
if(h == "") h = 300;
var newwin = window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
newwin.focus();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function Check_imgcode(){
var hidcode = document.getElementById("hid_code").value;
var charcode = document.getElementById("char_code").value;
if(hidcode != charcode){
alert("ท่านกรอกรหัสภาพไม่ถูกต้องกรุณาระบุรหัสภาพใหม่อีกครับ");
document.form.char_code.focus();
return false;
}else{
return true;
}
}
//รูปแบบของเลขประจำตัวประชาชน 2-3456-544-44-55-6
function fmtPIN(id, e) {
var oEvent = (window.event) ? window.event : e;
var Obj = document.getElementById(id);
if ( Obj.value.length == 1 || Obj.value.length == 6 || Obj.value.length == 12 || Obj.value.length == 15 ) {
Obj.value = Obj.value + "-";
}
}
function Filter_Keyboard() {
var keycode = window.event.keyCode;
if( keycode >=37 && keycode <=40 ) return true; // arrow left, up, right, down
if( keycode >=48 && keycode <=57 ) return true; // key 0-9
if( keycode >=96 && keycode <=105 ) return true; // numpad 0-9
if( keycode ==110 || keycode ==190 ) return true; // dot
if( keycode ==8 ) return true; // backspace
if( keycode ==9 ) return true; // tab
if( keycode ==45 || keycode ==46 || keycode ==35 || keycode ==36) return true; // insert, del, end, home
return false;
}
function keyother(){
var tr_id = document.getElementById("alleg_office_id").value;
if(tr_id == "other"){
document.getElementById("tr1").style.display = "";
}else{
document.getElementById("tr1").style.display = "none";
}
}
function show_com_detail(){
document.getElementById("tbl_detail").style.display="";
}
//@add 2009/06/06 @author Kridsada
function toDisble(rdo)
{
var value = rdo.value;
if(value == "0")
{
document.getElementById("act_start_date").disabled = true;
document.getElementById("button1").disabled = true;
document.getElementById("act_end_date").disabled = true;
document.getElementById("button2").disabled = true;
document.getElementById("act_start_date0").disabled = false;
document.getElementById("button0").disabled = false;
}else if(value == "1")
{
document.getElementById("act_start_date").disabled = false;
document.getElementById("button1").disabled = false;
document.getElementById("act_end_date").disabled = false;
document.getElementById("button2").disabled = false;
document.getElementById("act_start_date0").disabled = true;
document.getElementById("button0").disabled = true;
}
}
</SCRIPT>
</HEAD>
<BODY >
<TABLE width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#144C85', EndColorStr='#ffffff');">
<?
if($action == "Ticket_ID"){
$sql_Ticket = "SELECT * FROM tbl_complain WHERE complain_id ='$complain_id'";
$result_Ticket = mysql_db_query($dbname,$sql_Ticket);
$rs_t = mysql_fetch_assoc($result_Ticket);
?>
<TR align="center">
<TD valign="top" background="bimg/bg1.gif" style="background-repeat: no-repeat; background-position:right bottom ">
<TABLE width="99%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<TR>
<TD align="center" valign="top"><BR>
<BR>
<TABLE width="70%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD bgcolor="#CCCCCC"><TABLE width="100%" border="0" cellspacing="1" cellpadding="3">
<TR>
<TD colspan="2" bgcolor="#BDC9F9">
<span class="headerTB"> รหัสรับเรื่องร้องเรียน (Ticket_ID)
<?=$complain_id?>
<a href="#"><img src="../../images/print.gif" width="21" height="20" onClick="window.print();" border=0 /></a></span>
<br><span class="style4">** การติดตามเรื่องร้องเรียนในครั้งต่อไป จะต้องใช้รหัสรับเรื่องร้องเรียน (Ticket ID)
กรุณาบันทึก หรือสั่งพิมพ์ รหัสไว้ </span></TD>
</TR>
<TR>
<TD width="24%" align="left" bgcolor="#FFFFFF"><STRONG>เรื่องร้องเรียน</STRONG></TD>
<TD width="76%" align="left" bgcolor="#FFFFFF"><?=$rs_t[complain_detail]?></TD>
</TR>
<TR>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><STRONG>ละเอียดเรื่องร้องเรียน<A href="form_manage_data.php?type_user=&complain_id=<?=$rs_t[complain_id]?>&action=EDIT&type_user=<?=$type_user?>"><IMG src="../../images/document_edit.gif" alt="คลิ๊กเพื่อแก้ไข" width="20" height="20" border="0"></A></STRONG></TD>
</TR>
<TR>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><TABLE width="100%" border="0" cellspacing="1" cellpadding="3">
<TR>
<TD align="right"><SPAN class="link_back">เรื่องความต้องการ : </SPAN></TD>
<TD align="left"><?
$sql_type_problem = "SELECT * FROM tbl_type_request where request_id='$rs_t[type_request]' ORDER BY type_request ASC";
$Result_type_problem = mysql_db_query($dbname,$sql_type_problem);
while($rs_tp = mysql_fetch_assoc($Result_type_problem)){
if($rs_tp[request_id] == $rse[type_request]){ $sel = "selected";}else{ $sel = "";}
echo "<option value='$rs_tp[request_id]' $sel>$rs_tp[type_request]</option>";
}
?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">ชื่อสกุล : </TD>
<TD align="left"><?=$rs_t[public_name]?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">อาชีพ : </TD>
<TD align="left"><?=$rs_t[public_job]?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">ที่อยู่ : </TD>
<TD align="left"><?=$rs_t[public_address]?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">หมู่ที่ : </TD>
<TD align="left"><?=$rs_t[public_moo]?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">ตำบล : </TD>
<TD align="left"><?=$rs_t[public_tambol]?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">อำเภอ : </TD>
<TD align="left"><? $am = mysql_query("SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccDigi='$rs_t[public_amphur]' ");
while( $ram = mysql_fetch_array($am) ) {
echo $ram[ccName];
} ?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">จังหวัด : </TD>
<TD align="left"><? echo "ปทุมธานี"; ?> </TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">รหัสไปรษณีย์ : </TD>
<TD align="left"><?=$rs_t[public_zipcode]?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">หมายเลขโทรศัพท์ : </TD>
<TD align="left"><?=$rs_t[public_phone]?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">E-mail (ถ้ามี) : </TD>
<TD align="left"><?=$rs_t[public_email]?></TD>
</TR>
<TR>
<TD align="right"> </TD>
<TD align="left"> </TD>
</TR>
<TR>
<TD align="right"><SPAN class="link_back">การดำเนินการที่ระบุ :</SPAN></TD>
<TD align="left"><? if($rs_t[feedback]==0){ echo "ไม่ต้องการให้แจ้งการดำเนินการ";}else{ echo "ต้องการให้แจ้งการดำเนินการ";} ?></TD>
</TR>
<TR>
<TD align="right"><SPAN class="link_back">ประเภทเรื่องร้องเรียน : </SPAN></TD>
<TD align="left"><?
$sql_type_problem = "SELECT * FROM tbl_type_request where request_id='$rs_t[type_request]' ORDER BY type_request ASC";
$Result_type_problem = mysql_db_query($dbname,$sql_type_problem);
while($rs_tp = mysql_fetch_assoc($Result_type_problem)){
if($rs_tp[request_id] == $rse[type_request]){ $sel = "selected";}else{ $sel = "";}
echo "<option value='$rs_tp[request_id]' $sel>$rs_tp[type_request]</option>";
}
?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">รายละเอียด : </TD>
<TD align="left"><?=$rs_t[complain_detail]?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">ระดับความต้องการ : </TD>
<TD align="left"><?=$rs_t[request_level]?></TD>
</TR>
<!--
<TR>
<TD align="right"><SPAN class="link_back">พฤติการณ์ของข้อกล่าวหา : </SPAN></TD>
<TD align="left"><?=$rs_t[complain_action]?></TD>
</TR>
-->
<TR>
<TD width="25%" align="right"> </TD>
<TD width="75%" align="left"> </TD>
</TR>
<?
$sql_re = "SELECT * FROM tbl_complain WHERE public_idcard = '$rs_t[public_idcard]' AND public_idcard <> '' ORDER BY complain_id DESC";
//echo $sql_re;
$result_re = @mysql_db_query($dbname,$sql_re);
$num_re = @mysql_num_rows($result_re);
if($num_re > 1){ // กรณีเคยร้องเรียนก่อนหน้านี้
?>
<TR>
<TD colspan="2" align="left" bgcolor="#BDC9F9"><STRONG>เรื่องที่เคยร้องเรียน</STRONG></TD>
</TR>
<TR>
<TD colspan="2" align="center"><TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD bgcolor="#000000"><TABLE width="100%" border="0" cellspacing="1" cellpadding="3">
<TR>
<TD width="8%" align="center" bgcolor="#BDC9F9"><STRONG>ลำดับ</STRONG></TD>
<TD width="68%" align="center" bgcolor="#BDC9F9"><STRONG>เรื่องที่ร้องเรียน</STRONG></TD>
<TD width="24%" align="center" bgcolor="#BDC9F9"><STRONG>สถานะดำเนินการ</STRONG></TD>
</TR>
<?
$i2 = 0;
while($rs_re = @mysql_fetch_assoc($result_re)){
$bg = ($i2 % 2)?'#F1F1F1':'#FFFFFF';$i2++;
?>
<TR bgcolor="<?=$bg?>">
<TD align="center"><?=$i2;?></TD>
<TD align="left"><?=$rs_re[complain_detail];?></TD>
<TD align="center">
<?
$sql_status = "SELECT
tbl_complain_sent.process_date_finish
FROM
tbl_complain
Inner Join tbl_complain_approve ON tbl_complain.complain_id = tbl_complain_approve.complain_id
Inner Join tbl_complain_sent ON tbl_complain_approve.runid = tbl_complain_sent.com_app_id
WHERE
tbl_complain.complain_id = '$rs_re[complain_id]'";
$result_status = mysql_db_query($dbname,$sql_status);
$rs_s = mysql_fetch_assoc($result_status);
//echo "xxxxxx".$rs_s[process_date_finish];
if($rs_s[process_date_finish] == ""){echo "รอพิจารณาเข้าสู่ระบบ"; }else if($rs_s[process_date_finish] == "0000-00-00"){ echo "<font color='red'>อยู่ระหว่างดำเนินการ</font>";}else{ echo "ดำเนินการเสร็จเรียบร้อยแล้ว";}
?> </TD>
</TR>
<? } //end while?>
</TABLE></TD>
</TR>
</TABLE></TD>
</TR>
<?
} // end if($num_re > 1){ // กรณีเคยร้องเรียนก่อนหน้านี้
?>
<TR>
<TD colspan="2" align="center"><? if($type_user != ""){?><INPUT type="button" name="btnB" value="กลับหน้าหลัก" onClick="location.href='report_index.php?senttab=<?=$senttab?>'"><? } ?></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE>
</TD>
</TR>
<?
}// end //if($Aaction == "Ticket_ID"){
?>
<TR>
<TD valign="top" background="bimg/bg1.gif" style="background-repeat: no-repeat; background-position:right bottom "><TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR><TD valign="top"></TD></TR>
<TR>
<TD valign="top" >
<?
if($action == "ADD" or $action == "EDIT"){
if($action == "EDIT"){
$strSQL_edit = "SELECT * FROM tbl_complain WHERE complain_id = '$complain_id'";
//echo $strSQL_edit;
$Result_edit = mysql_db_query($dbname,$strSQL_edit);
$rse = mysql_fetch_array($Result_edit);
if($rse[act_start_date] != "0000-00-00"){
$arr_d1 = explode("-",$rse[act_start_date]);
if($arr_d1[0] > 0){
$txt_act_start_date = $arr_d1[2]."/".$arr_d1[1]."/".($arr_d1[0]+543);
}
}
if($rse[act_end_date] != "0000-00-00"){
$arr_d2 = explode("-",$rse[act_end_date]);
if($arr_d2[0] > 0){
$txt_act_end_date = $arr_d2[2]."/".$arr_d2[1]."/".($arr_d2[0]+543);
}
}
if($rse[accept_date] != "0000-00-00"){
$arr_d3 = explode("-",$rse[accept_date]);
if($arr_d3[0] > 0){
$txt_accept_date = $arr_d3[2]."/".$arr_d3[1]."/".($arr_d3[0]+543);
}
}
}
?>
<FORM action = "?" method ="post" enctype="multipart/form-data" name="form" >
<INPUT type="hidden" name="senttab" value="0">
<TABLE width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<TR>
<TD width="20%" align="right" valign="middle" bgcolor="#FFFFFF" class="link_back"> </TD>
<TD width="80%" align="left" bgcolor="#FFFFFF"> </TD>
<TD width="25%" align="right" bgcolor="#FFFFFF">
<? $writen=($rse[public_writen])?$rse[public_writen]:"ศาลากลางจังหวัด$provincename";?>
<INPUT name="public_writen" type="hidden" id="public_writen" value="<?=$writen?>">
เขียนที่ <?=$writen?></TD>
</TR>
<TR>
<TD colspan="3" align="left" valign="top" bgcolor="#BDC9F9" class="link_back">ข้อมูลผู้ร้องเรียน</TD>
</TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">ชื่อ <SPAN class="redlink">*</SPAN> : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><LABEL>
<select name="title">
<option value = "-">เลือก</option>
<option value = "เด็กชาย">เด็กชาย</option>
<option value = "เด็กหญิง">เด็กหญิง</option>
<option value = "นาย">นาย</option>
<option value = "นาง">นาง</option>
<option value = "นางสาว">นางสาว</option>
</select>
ชื่อ
<INPUT name="public_name" type="text" id="public_name" size="25" value="<?=$rse[public_name]?>">
นามสกุล <INPUT name="public_lastname" type="text" id="public_lastname" size="25" value="<?=$rse[public_lastname]?>">
</LABEL> </TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">เลขบัตรประชาชน : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><LABEL>
<INPUT name="public_idcard" type="text" id="public_idcard" maxlength="17" onKeyPress="return fmtPIN('public_idcard',event);" value="<?=$rse[public_idcard]?>">
<SPAN class="style4"> <br>
* ต้องระบุเลขบัตรประจำตัวประชาชน 13 หลักเท่านั้น<br>
</SPAN></LABEL></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">วันเดือนปีเกิด : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF">
<?php /*?> < INPUT name="public_age" type="text" id="public_age" size="3" value="<?=$rse[public_age]?>"><?php */?>
<select name="date"><OPTION value="-">ระบุวัน</option>
<?
for ($i=01;$i<=31;$i++) {
echo "<option value = '$i'>$i</option>";
}
?>
</select>
-
<?php
$thaimonthFull=array("ไม่ระบุ","มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม", "พฤศจิกายน","ธันวาคม");
echo "<select name='mm' size='1'>";
for($i=0;$i<count($thaimonthFull);$i++){
echo "<option value='".$thaimonthFull[$i]."' ";
if(date("m")==$i){// ใช้ date("n") ก็ได้
echo " selected";
}
echo ">".$thaimonthFull[$i]."</option>";
}
echo "</select>";
?>
-
<select name="year" id="year"><OPTION value="">เลือกปี</option>
<?
for ($i=2480;$i<=2550;$i++) {
echo "<option value = '$i'>$i</option>";
}
?>
</select> </TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">อาชีพ : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><strong>
<select name="public_job" id="public_job" >
<option value="">เลือกอาชีพ</option>
<? $job=mysql_query("select * from tb_cat_system where caten='jobs' order by id_cat ");
while( $ramm = mysql_fetch_array($job) ) {
echo "<option value=\"".$ramm['catth']."\" $slted>".$ramm['catth']."</option>\n";
}
?>
</select>
<?php /*?> < input name="public_job" type="text" id="public_job" size="30" value="<?=$rse[public_job]?>"><?php */?>
</strong></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">บ้านเลขที่ : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><LABEL>
<INPUT name="public_address" type="text" id="public_address" size="5" value="<?=$rse[public_address]?>">
</LABEL></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">หมู่ที่ : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><LABEL id="lblMoo">
<?php /*?> <SELECT name="public_mooid" id="public_mooid" >
<OPTION value="">เลือกหมู่บ้าน</OPTION>
</SELECT><?php */?>
<INPUT name="public_moo" type="text" id="public_moo2" size="5" value="<?=$rse[public_moo]?>">
</LABEL>
<strong></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">จังหวัด : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><strong>
<label>
<?php
$province = mysql_query("SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccType='Changwat' AND ccDigi LIKE '13000000' ");
while( $ram = mysql_fetch_array($province) ) {
$id=$ram['ccDigi'];
?>
<input type="readonly" readonly="readonly" name="public_province1" id="public_province1" value="ปทุมธานี" />
<input name="public_province" type="hidden" value="<? echo $ram['ccDigi'];?>" />
</label>
</strong></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">อำเภอ : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><strong><LABEL id="lblAmphur">
<select name="public_amphur" id="public_amphur" onChange="chgTambon(this.value, 13);">
<option value="">เลือกอำเภอ</option>
<?php
$am = mysql_query("SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccType='Aumpur' AND ccDigi LIKE '13%' ");
while( $ram = mysql_fetch_array($am) ) {
echo "<option value=\"".$ram['ccDigi']."\" $slted>".$ram['ccName']."</option>\n";
}
?>
</select>
</LABEL>
</strong></TD>
<? } ?> </TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">ตำบล : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><strong>
<select name="public_tambon" id="public_tambon" >
<option value="">เลือกตำบล</option>
<?php
$am = mysql_query("SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccType='Tamboon' AND ccDigi LIKE '13%' ");
while( $ram = mysql_fetch_array($am) ) {
echo "<option value=\"".$ram['ccName']."\" $slted>".$ram['ccName']."</option>\n";
}
?>
</select>
<LABEL id="lblTambon"></LABEL>
</strong><?php /*?>< INPUT name="public_tambol" type="text" id="public_tambol" size="30" value="<?=$rse[public_tambol]?>"><?php */?></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">รหัสไปรษณีย์ : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><INPUT name="public_zipcode" type="text" id="public_zipcode" value="<?=$rse[public_zipcode]?>" size="8" maxlength="5"></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">หมายเลขโทรศัพท์ : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><INPUT name="public_phone" type="text" id="public_phone" size="30" value="<?=$rse[public_phone]?>"></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">E-mail (ถ้ามี) : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><INPUT name="public_email" type="text" id="public_email" size="30" value="<?=$rse[public_email]?>"></TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back"> </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"> </TD>
</TR>
<?
// $type_user = "";
if($type_user != "gov"){
?>
<!-- <TR>
<TD align="right" valign="top" class="link_back">สถานะประสงค์ออกนาม : </TD>
<TD align="left"><LABEL>
<INPUT name="status_show_owner" type="radio" value="0" <? if($action == "EDIT"){ if($rse[status_show_owner] == "0"){echo "checked='checked'";}}else{?>checked="checked" <? }?>>
ประสงค์ออกนาม
<INPUT name="status_show_owner" type="radio" value="1" <? if($rse[status_show_owner] == "1"){ echo "checked='checked'";}?>>
ไม่ประสงค์ออกนาม</LABEL></TD>
</TR>-->
<?
}
?>
<TR>
<TD colspan="3" align="left" valign="middle" bgcolor="#BDC9F9" class="p_border"><STRONG>รายละเอียดเรื่องที่ร้องเรียน </STRONG></TD>
</TR>
<!-- <tr>
<td align="right" valign="middle" class="link_back">ประเภทผู้ร้องเรียน : </td>
<td align="left"><label>
<select name="type_request" id="type_request">
<option value="">- เลือกประเภทผู้ร้องเรียน -</option>
<?//
// $sql_ty = "SELECT * FROM tbl_request_type ORDER BY ctype_id ASC";
// $result_ty = mysql_db_query($dbname,$sql_ty);
// while($rs_ty = mysql_fetch_assoc($result_ty)){
// if($rs_ty[ctype_id] == $rse[type_request]){ $sel1 = "selected";}else{ $sel1 = "";}
// echo "<option value='$rs_ty[ctype_id]'$sel1>$rs_ty[ctype_name]</option>";
// }
//?>
</select>
</label></td>
</tr>
<tr>
<td align="right" valign="middle" class="link_back"> </td>
<td align="left"><label>
<input name="type_request_other" type="text" id="type_request_other" size="50" value="<?//=$rse[type_request_other]?>">
<span class="style4">ระบุในกรณีเลือกประเภทผู้ร้องเรียนเป็นประเภทอื่นๆ </span></label></td>
</tr>-->
<TR>
<TD align="right" valign="middle" bgcolor="#FFFFFF" class="link_back">ประเภทเรื่องความต้องการ <SPAN class="redlink">*</SPAN> : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><select name="type_problem" id="type_problem" onChange="showoptionA(this);">
<option value="">- ระบุประเภทเรื่องร้องเรียน -</option>
<?
$sql_type_problem = "SELECT * FROM tbl_type_request ORDER BY type_request ASC";
$Result_type_problem = mysql_db_query($dbname,$sql_type_problem);
while($rs_tp = mysql_fetch_assoc($Result_type_problem)){
if($rs_tp[request_id] == $rse[type_request]){ $sel = "selected";}else{ $sel = "";}
echo "<option value='$rs_tp[request_id]' $sel>$rs_tp[type_request]</option>";
}
?>
</select>
<? $g_check="none"; ?>
<label class="style4" id="displayX1" NAME="displayX1" style="display:<?=$g_check?>;">
<TEXTAREA name="problem_comment" cols="70" rows="2" id="problem_comment"><?=$rse[problem_comment]?>
</TEXTAREA>
<SPAN class="style4">ระบุในกรณีประเภทร้องเรียนเป็นเรื่องทั่วไป </SPAN> </label>
<script language="javascript">
function showoptionA(objsel){
if(objsel.value==17){
document.getElementById("displayX1").style.display="block";
}else{
document.getElementById("displayX1").style.display="none";
}
}
</script> </TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back">รายละเอียด<SPAN class="redlink">*</SPAN> : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><LABEL>
<textarea name="complain_detail" cols="70" rows="5" id="complain_detail"><?=$rse[complain_detail]?>
</textarea>
</LABEL></TD>
</TR>
<TR>
<TD align="right" valign="middle" bgcolor="#FFFFFF"><strong>ระดับความต้องการ</strong><SPAN class="redlink">*</SPAN><SPAN class="link_back"> :</SPAN></TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><select name="type_level" id="type_level" >
<option value="">- ระบุระดับความต้องการ -</option>
<option value="น้อย">-น้อย -</option>
<option value="ปานกลาง">-ปานกลาง -</option>
<option value="มาก">-มาก -</option>
</select></TD>
</TR>
<TR>
<TD align="right" valign="middle" bgcolor="#FFFFFF" class="link_back">แนบหลักฐานประกอบ : </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"> <SPAN class="style3">หมายเหตุ : </SPAN>ไฟล์ที่ท่านสามารถแนบได้ เช่น ไฟล์รูป ที่มีนามสกุล jpg, jpeg, gif, หรือไฟล์เอกสารทั่วไป เช่น word, excel และขนาด file ต้องไม่เกิน 1 เมกาไบต์
<SPAN style="cursor:pointer;" onClick="addFile()">เพิ่มไฟล์แนบ <IMG src="../../images/profile_collapsed.gif" border="0"></SPAN>
<UL id="files-root">
</UL>
<? if($action == "EDIT"){
$sql_act_file = "SELECT * FROM tbl_attachfile WHERE complain_id ='$complain_id'";
$result_act_file = @mysql_db_query($dbname,$sql_act_file);
$num_act_rows = @mysql_num_rows($result_act_file);
if($num_act_rows > 0){
echo "<img src=\"../../images/icon_doc2.gif\" alt=\"คลิ๊กเพื่อดูไฟล์แนบ\" width=\"24\" height=\"31\" border=\"0\" onClick=\"MM_openBrWindow('popup_attach_file.php?complain_id=$complain_id','','width=400,height=300,scrollbars=Yes,resizable=Yes,status=Yes')\" style=\"cursor:hand\">";
}
}
?> </TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back"> </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF">
<IMG src="function/pic_text.php?str=<?=$ran_str?>" onClick="location.reload();" style="cursor:hand">
<INPUT type="hidden" name="hid_code" id="hid_code" value="<?=$ran_str?>"> </TD>
</TR>
<TR>
<TD align="right" valign="top" bgcolor="#FFFFFF" class="link_back"> </TD>
<TD colspan="2" align="left" bgcolor="#FFFFFF"><LABEL>
<INPUT type="text" name="char_code" id="char_code" maxlength="13" onBlur="return Check_imgcode();">
</LABEL></TD>
</TR>
<!-- <TR>
<TD colspan="3" align="left" valign="top" bgcolor="#BDC9F9" class="p_border"><STRONG>วันเดือนปี หรือช่วงเวลาที่เกิดเหตุ</STRONG></TD>
</TR>
<TR>
<?
if($txt_act_end_date != "" && $txt_act_start_date != "")
{
$chk2 = "checked";
$chk1 = "";
$dis1 = "disabled";
$dis2 = "";
$txt_act_start_date0 = "";
}else
{
$chk1 = "checked";
$chk2 = "";
$dis2 = "disabled";
$dis1 = "";
$txt_act_start_date0 = $txt_act_start_date;
$txt_act_start_date = "";
}
?>
<TD align="right" valign="top" class="link_back">วันที่ : </TD>
<TD colspan="2" align="left">
<INPUT type="radio" name="rdodate" id="rdodate" value="0" <?= $chk1 ?> onClick="toDisble(this)" >
<INPUT name="act_start_date0" id="act_start_date0" type="text" onFocus="blur();" size="20" value="<?=$txt_act_start_date0?>" readonly <?= $dis1?>>
<INPUT name="button0" id="button0" type="button" style='font-size:11px; width:80px;' onClick="popUpCalendar(this, form.act_start_date0, 'dd/mm/yyyy')" value='วัน เดือน ปี' <?= $dis1?>> </TD>
</TR>
<TR>
<TD align="right" valign="top" class="link_back">ระหว่างวันที่ : </TD>
<TD colspan="2" align="left">
<INPUT type="radio" name="rdodate" id="rdodate" value="1" <?= $chk2?> onClick="toDisble(this)">
<INPUT name="act_start_date" id="act_start_date" type="text" onFocus="blur();" size="20" value="<?=$txt_act_start_date?>" readonly <?= $dis2?>>
<INPUT name="button1" id="button1" type="button" style='font-size:11px; width:80px;' onClick="popUpCalendar(this, form.act_start_date, 'dd/mm/yyyy')" value='วัน เดือน ปี' <?= $dis2?>>
ถึง
<INPUT name="act_end_date" id="act_end_date" type="text" onFocus="blur();" size="20" value="<?=$txt_act_end_date?>" readonly <?= $dis2?>>
<INPUT name="button2" id="button2" type="button" style='font-size:11px; width:80px;' onClick="popUpCalendar(this, form.act_end_date, 'dd/mm/yyyy')" value='วัน เดือน ปี' <?= $dis2?>> </TD>
</TR>
<TR>
<TD align="right" valign="top" class="link_back">หมายเหตุ : </TD>
<TD colspan="2" align="left">
<TEXTAREA name="note_date" id="note_date" cols="70" rows="3" ><?= $rse['note_date']?></TEXTAREA> </TD>
</TR>-->
<? //if($type_user == "gov"){?>
<!--<tr>
<td align="right" valign="top" class="link_back">วันที่รับเรื่องร้องเรียน : </td>
<td align="left"><input name="accept_date" type="text" onFocus="blur();" value="<?//=$txt_accept_date?>" size="20" readonly>
<input name="button2" type="button" style='font-size:11px; width:80px;' onClick="popUpCalendar(this, form.accept_date, 'dd/mm/yyyy')" value='วัน เดือน ปี'></td>
</tr>
<tr>
<td align="right" valign="top" class="link_back">รหัสหน่วยงาน : </td>
<td align="left"><input type="text" name="org_code" id="org_code" value="<?//=$rse[org_code]?>"></td>
</tr>-->
<? //} // end if($type_user == "gov"){ ?>
<TR>
<TD colspan="3" align="center" valign="top" bgcolor="#BDC9F9">
<? if($action == "ADD"){?>
<INPUT type="hidden" name="Aaction" value="SAVE">
<? } if($action == "EDIT"){?>
<INPUT type="hidden" name="insert_id" value="<?=$complain_id?>">
<INPUT type="hidden" name="Aaction" value="SAVE_EDIT">
<? } ?>
<INPUT type="hidden" name="type_user" id="type_user" value="<?=$type_user?>">
<INPUT type="submit" name="Submit" value=" บันทึก " onClick="return CheckForm();">
<INPUT type="reset" name="Submit2" value="ล้างข้อมูล">
<INPUT type="button" name="btnBK" value="ยกเลิก" onClick="location.href='report_index.php?senttab=0'"> </TD>
</TR>
</TABLE>
</FORM>
<?
}
?></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE>
<?
echo "<!--USER INFO <br>";
echo $REMOTE_ADDR;
echo "<pre>";print_r($_SERVER['HTTP_USER_AGENT']); echo "</pre><br>-->";
?>
</BODY>
</HTML>
<?
//insert timeQuery
$time_end = getmicrotime();
writetime2db($timestart,$timeend);
//insert timeQuery
?>