|
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_vc/report/ |
Upload File : |
<?
session_start();
if ($session_login == "" ) {
header ("Location:../");
die;
}
$office_refid = $session_id ;
include ("../../../config/conndb_obec.inc.php") ;
include ("../../../common/std_function.inc.php") ;
$phpfile = "index.php";
//check ว่ามี ค่าตัวแปร $start หรือไม่ ถ้าไม่มีให้ตั้งเป็น 0
if(!isset($start)){ $start = 0; }
$limit = '30';// แสดงผลหน้าละกี่หัวข้อ
?>
<?
# where_str
$tmp1=" AND ( problem_topic like '%$txt_extsearch%' OR problem like '%$txt_extsearch%' OR fist_aid like '%$txt_extsearch%' " ;
$tmp1=$tmp1." OR officer like '%$txt_extsearch%' OR url_ref like '%$txt_extsearch%' )";
if ($Submit != ""){ $showall = "y" ; }
if (($showall=="n")or($showall=="") ){
$limit_str = " Limit 0,30 " ;
}else{
$limit_str = " ";
}
$where_str = " WHERE 1 ";
if ($txt_ticket != "" ) { $where_str = $where_str. " AND ticket_id like '%$txt_ticket%' " ; $search_act="y"; }
if ($txt_name != "" ) { $where_str = $where_str. " AND cus_contact like '%$txt_name%' " ; $search_act="y"; }
if ($txt_extsearch != "" ) { $where_str = $where_str. " $tmp1 " ; $search_act="y"; }
if ($txt_datestart != "" ) { $where_str = $where_str. " AND date_rec > '$txt_datestart' " ; $search_act="y"; }
if ($txt_dateend != "" ) { $where_str = $where_str. " AND date_rec < '$txt_dateend' " ; $search_act="y"; }
$ext_url = "txt_ticket=$txt_ticket";
$ext_url = $ext_url . "&txt_name=$txt_name";
$ext_url = $ext_url . "&txt_extsearch=$txt_extsearch";
$ext_url = $ext_url . "&txt_datestart=$txt_datestart";
$ext_url = $ext_url . "&txt_dateend=$txt_dateend";
if ($sel_order1 != ""){ $ext_url .= "&sel_order1=$sel_order1&radio1=$radio1"; }
if ($sel_order2 != ""){ $ext_url .= "&sel_order2=$sel_order2&radio2=$radio2"; }
if ($sel_order3 != ""){ $ext_url .= "&sel_order3=$sel_order3&radio3=$radio3"; }
if ($sel_order4 != ""){ $ext_url .= "&sel_order4=$sel_order4&radio4=$radio4"; }
if ($sel_order5 != ""){ $ext_url .= "&sel_order5=$sel_order5&radio5=$radio5"; }
if ($sel_order6 != ""){ $ext_url .= "&sel_order6=$sel_order6&radio6=$radio6"; }
if ($sel_order7 != ""){ $ext_url .= "&sel_order7=$sel_order7&radio7=$radio7"; }
$arr_order = array("","ticket_id","date_rec","prov_id","problem_topic","problem_status","officer","estimate_date") ;
$orderflag = "n" ;
$order_str = " ORDER BY " ;
if ($sel_order1 > 0 ){ $order_str .= " $arr_order[$sel_order1] $radio1 ," ; $orderflag="y"; }
if ($sel_order2 > 0 ){ $order_str .= " $arr_order[$sel_order2] $radio2 ," ; $orderflag="y"; }
if ($sel_order3 > 0 ){ $order_str .= " $arr_order[$sel_order3] $radio3 ," ; $orderflag="y"; }
if ($sel_order4 > 0 ){ $order_str .= " $arr_order[$sel_order4] $radio4 ," ; $orderflag="y"; }
if ($sel_order5 > 0 ){ $order_str .= " $arr_order[$sel_order5] $radio5 ," ; $orderflag="y"; }
if ($sel_order6 > 0 ){ $order_str .= " $arr_order[$sel_order6] $radio6 ," ; $orderflag="y"; }
if ($sel_order7 > 0 ){ $order_str .= " $arr_order[$sel_order7] $radio7 ," ; $orderflag="y"; }
if ($orderflag != "y") {
$order_str="";
}else{
$order_str = substr($order_str,0,(strlen($order_str)-1)) ;
}
/*
================================
Ticket ID
วันที่เพิ่มปัญหา
จังหวัด
หัวข้อปัญหา
สถานะปัญหา
เจ้าหน้าที่ บริษัทฯ
วันที่กำหนดแล้วเสร็จ
================================
*/
# where_param = ????????????? Search จาก อะไรดี อ่า
#ticket_id
#cus_contact
?>
<html>
<head>
<title>Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<LINK href="../style.css" rel=stylesheet type="text/css">
<script src="../../../common/functions.js" type="text/javascript" language="javascript"></script>
<script src="../../../common/javaopenwin.js" type="text/javascript" language="javascript"> </script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="0761A8"><table width="100%" border="0" cellspacing="0" cellpadding="0" style=" border-bottom:1px solid #666666">
<tr>
<td width="2%"><img src="../images/banner_01.gif" width="153" height="70"></td>
<td width="98%" align="right"><img src="../images/banner_02.gif" width="627" height="70"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="fill_bg_add_new1"> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#419BE1">
<tr>
<td width="10%" align="center"> </td>
<td width="90%" align="right"><? include ("../common/menu.inc.php") ; ?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100%" align="center" class="fill_bg_add_new2"><form name="form1" method="post" action="<?=$phpfile?>?menu=3">
<table width="98%" border="0" cellpadding="5" cellspacing="1" bgcolor="#aaaaaa">
<tr>
<td bgcolor="#FFFFFF"><strong>1. สถิติจำนวนรวมการรับแจ้งปัญหา</strong></td>
</tr>
<tr>
<td width="44%" bgcolor="#FFFFFF">1.1. <a href="report_graph_b1_1.php" target="_blank">สถิติจำนวนรวมการรับแจ้งปัญหารายวัน สามารถเปรียบเทียบข้อมูลได้</a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">1.2. <a href="report_graph_b1_2.php" target="_blank">สถิติจำนวนรวมการรับแจ้งปัญหารายเดือน สามารถเปรียบเทียบข้อมูลได้</a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">1.3. <a href="report_graph_b1_3.php" target="_blank">สถิติจำนวนรวมการรับแจ้งปัญหารายปี สามารถเปรียบเทียบข้อมูลได้</a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><strong>2. <a href="report_graph_b2.php" target="_blank">สถิติจำนวนรวมการรับแจ้งปัญหาจำแนกรายหน่วยงานตามรอบเวลาที่กำหนด</a></strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><strong>3. <a href="report_graph_b3_1.php" target="_blank">สถิติเวลาในการแก้ปัญหารายวัน-เดือน จำแนกรายหมวดรายการข้อมูลได้</a></strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><strong>4. สถิติจำนวนการรับแจ้งปัญหาจำแนกตามหมวดรายการ</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">4.1. <a href="report_graph_b4_1.php" target="_blank">สถิติจำนวนการรับแจ้งปัญหาจำแนกตามหมวดรายการข้อมูล รายวัน สามารถเปรียบเทียบข้อมูลได้</a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">4.2.<a href="report_graph_b4_2.php" target="_blank"> สถิติจำนวนการรับแจ้งปัญหาจำแนกตามหมวดรายการข้อมูล รายเดือน สามารถเปรียบเทียบข้อมูลได้</a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">4.3.<a href="report_graph_b4_3.php" target="_blank"> สถิติจำนวนการรับแจ้งปัญหาจำแนกตามหมวดรายการข้อมูล รายปี สามารถเปรียบเทียบข้อมูลได้</a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
</tr>
</table>
</form>
<br>
<br></td>
</tr>
</table>
</body>
</html>