|
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/ |
Upload File : |
<?
$month_arr=array('','มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฏาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม');
$defult_start_date = $start_date?$start_date:"01-".date("m")."-".(date("Y")+543);
$defult_end_date = $end_date?$end_date:date("d")."-".date("m")."-".(date("Y")+543);
?>
<SCRIPT type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_openBrWindow1(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="../../common/style.css" rel="stylesheet" type="text/css">
<BODY onLoad="MM_preloadImages('../../images/bar/menu2_06.jpg')">
<TABLE width="100%" height="32" border="0" cellpadding="0" cellspacing="0" background="../../images/bar/menu_10s.jpg">
<TR >
<TD align="center" valign="top" width="712"> </TD>
<TD align="center" valign="middle" width="36"><A href="index.php" ><IMG src="../../images/home.gif" title="หน้าหลัก" name="Image14" width="20" height="20" border="0"></A></TD>
<TD width="47" align="center" valign="middle" ><img src="../../images/icon_user_b.gif" width="28" height="28" border="0" title="การส่งออกข้อมูล" onClick="location.href='?p=report_main.php'" style="cursor:pointer;"></TD>
<?php /*?> <TD width="33" align="center" valign="middle"><img src="../../images/book_blue_view.png" width="28" height="28" alt="ค้นหา สถานะการดำเนินงาน" style="cursor: pointer;" onClick="MM_openBrWindow('check_ticket_id.php','','status=yes,scrollbars=yes,resizable=yes,width=650,height=500')"></TD><?php */?>
<TD width="37" align="center" valign="middle"><img src="../../images/ico_dashboard.png" title="รายงาน และกราฟ แผนภูมิรูปภาพ " width="24" height="24" border="0" onClick="location.href='?p=report_main2.php'" style="cursor:pointer;"></a></TD>
<TD width="37" align="center" valign="middle"><img src="../../images/gear.png" title="กำหนดค่าข้อมูลตั้งต้นระบบ" width="24" height="24" border="0" onClick="location.href='?p=tool_request.php'" style="cursor:pointer;"></a></TD>
<TD width="110" align="center" valign="top">
<A href="http://123.242.173.131/pathumthani_integration/integration/application/usermanager/chpage.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('LOGOUT','','../../images/bar/menu2_06.jpg',1)"><IMG src="../../images/bar/menu1_06.jpg" alt="ออกจากระบบ" name="LOGOUT" width="99" height="32" border="0" id="LOGOUT" /> </A> </TD>
</TR>
</TABLE>
<?
// $sql_d = "SELECT min(act_start_date) as min_date FROM tbl_complain WHERE act_start_date <> '0000-00-00' AND act_start_date IS NOT NULL ";
// $result_d = @mysql_db_query($dbname,$sql_d);
// $rs_d = @mysql_fetch_assoc($result_d);
// $arr_d = explode("-",$rs_d[min_date]);
// if($arr_d[2] > 0){
// $txt_sd = intval($arr_d[2])." ".$month_arr[intval($arr_d[1])]." ".($arr_d[0]+543);
// }
$ds=explode("-",$defult_start_date);
$de=explode("-",$defult_end_date);
$txt_sd=intval($ds[0])." ".$month_arr[intval($ds[1])]." ".($ds[2]);
$txt_ed=intval($de[0])." ".$month_arr[intval($de[1])]." ".($de[2]);
?>