|
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/ |
Upload File : |
<?
session_start();
include "../../config/config.inc.php";
include("function/function.php");
include ("graph.inc.php");
if(!isset($session_username)){
header("Location: ../document/login.php");
}
include("header_menu.php");
include ("report_repeatdly.inc.php");
//insert timeQuery
include("../../common/common_system.inc.php");
$ApplicationName="ecomplain";
$time_start = getmicrotime();
//insert timeQuery
$month_arr=array('','มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฏาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม');
$displaytype=(isset($displaytype))?$displaytype:1;
$Arr_report_repeated1=get_repeated1($dbname,$yy);
$Arr_report_repeated2=get_repeated2($dbname,$yy);
//$Arr_report_repeated2=getcomplete($dbname,$yy);
if($yy == ""){
$yy = date("Y");
}else{
$yy = $yy;
}
addlog("แสดงหน้ารายงานสัดส่วนการรับเรื่องราวร้องทุกข์จำแนกรายเดือน",$app_id,$act7); // add log
$xmonth_arr = $month_arr;
for($m=1;$m<count($xmonth_arr);$m++){
if($daylist > "") $daylist .= ";";
if($data1 > "") $data1 .= ";";
$daylist .= $xmonth_arr[$m];
$data1 .= intval($Arr_reportall[$m]);
}
$txt_title = "สัดส่วนการรับเรื่องร้องเรียนจำแนกรายเดือน ปี ".($yy+543);
$graphurl = $graph_path . "?category=$daylist&data1=$data1&outputstyle=&numseries=1&seriesname=&graphtype=pie&title=$txt_title&xname=เดือน&yname=จำนวน(ความต้องการ)&subtitle=&graphstyle=srd_sf_004.scs";
$w1 = 250;
$h1 = 150;
?>
<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" />
<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}
-->
</style>
</head>
<body >
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td valign="top" background="bimg/bg1.gif" style="background-repeat: no-repeat; background-position:right bottom ">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" ><form name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%" align="center" valign="middle"><!-- เลือกปี --></td>
<td width="89%"><!--<label>
<? $c_yy = date("Y");?>
<select name="yy" id="yy">
<?
for($n=2008;$n<=$c_yy;$n++){
if($n == $yy){ $sel_e = "selected";}else{ $sel_e = "";}
echo "<option value='$n' $sel_e>".($n+543)."</option>";
}
?>
</select>
<input type="submit" name="Submit" value="ตกลง">
</label>--></td>
<td width="5%" align="center"><img src="../../images/element_previous.png" width="24" height="24" alt="กลับหน้าหลัก" onClick="location.href='report_main.php'" style="cursor:hand"></td>
</tr>
</table>
</form> </td>
</tr>
<tr>
<td align="center" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="66%" align="center" valign="top">
<!--
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="<?=$w1?>" height="<?=$h1?>">
<param name="movie" value="<?=$graphurl?>">
<param name="quality" value="high">
<embed src="<?=$graphurl?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?=$w1?>" height="<?=$h1?>"></embed>
</object>
<BR><BR>
<button name="graph1" class="epm_button" style="width:120px;" onClick="window.open('<?=$graphurl?>')">กราฟขนาดใหญ่</button> --> </td>
<td width="34%" align="center" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top" bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td colspan="2" align="left" valign="top" bgcolor="#BDC9F9"><strong>รายงานการร้องเรียนซ้ำ</strong></td>
</tr>
<tr>
<td width="55%" align="center" valign="top" bgcolor="#BDC9F9"> </td>
<td width="45%" align="center" valign="top" bgcolor="#BDC9F9"><strong>จำนวน(คน)</strong></td>
</tr>
<tr >
<td align="left" valign="top" bgcolor="#FFFFFF">
ประชาชนคนเดิมร้องเรียน เรื่องเดิม </td>
<td align="center" valign="top" bgcolor="#FFFFFF"><a href="?displaytype=1"><?=number_format(count($Arr_report_repeated1)) ?></a></td>
</tr>
<tr >
<td align="left" valign="top" bgcolor="#FFFFFF">ประชาชนคนเดิม ร้องเรียนเรื่องใหม่</td>
<td align="center" valign="top" bgcolor="#FFFFFF"><a href="?displaytype=2"><?=number_format(count($Arr_report_repeated2)) ?></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"> </td>
<td align="center" valign="top"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="#000000">
<?
if($displaytype=='1'){
?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td colspan="6" align="center" bgcolor="#BDC9F9"><strong><?=$arrcaption[$displaytype]?>
</strong></td>
</tr>
<tr>
<td width="4%" align="center" bgcolor="#BDC9F9"><strong>ลำดับ</strong></td>
<td width="20%" align="center" bgcolor="#BDC9F9"><strong>ประเภทความต้องการ</strong></td>
<td width="18%" align="center" bgcolor="#BDC9F9"><strong>ข้อเรียกร้อง</strong></td>
<td width="18%" align="center" bgcolor="#BDC9F9"><strong>เลขบัตรประชาชนผู้ร้องเรียน</strong></td>
<td width="8%" align="center" bgcolor="#BDC9F9"><strong>จำนวนครั้ง</strong></td>
</tr>
<?
$kk=0;
foreach($Arr_report_repeated1 as $key=>$values){
$bg_color = ($kk%2)?'#F1F1F1':'FFFFFF';$kk++;
//$Arr_report[$rs['public_idcard']]['complain_detail'] = $rs[complain_detail] ;
// $Arr_report[$rs['public_idcard']]['type_request'] = $rs[type_request] ;
// $Arr_report[$rs['public_idcard']]['s_name'] = $rs[s_name] ;
// $Arr_report[$rs['public_idcard']]['ncount'] = $rs[ncount] ;
?>
<tr bgcolor="<?=$bg_color?>">
<td align="center"><?=$kk?></td>
<td align="center"><?=$values[s_name]?></td>
<td align="center"><?=$values[complain_detail]?></td>
<td align="center"><a href="report_peper_detail.php?idcard=<?=$key?>&displaytype=<?=$displaytype?>"><?=$key?></a></td>
<td align="center"><?=$values[ncount]?></td>
</tr>
<?
}
?>
</table>
<? }elseif($displaytype=='2'){
?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td colspan="6" align="center" bgcolor="#BDC9F9"><strong><?=$arrcaption[$displaytype]?>
</strong></td>
</tr>
<tr>
<td width="4%" align="center" bgcolor="#BDC9F9"><strong>ลำดับ</strong></td>
<td width="18%" align="center" bgcolor="#BDC9F9"><strong>เลขบัตรประชาชนผู้ร้องเรียน</strong></td>
<td width="8%" align="center" bgcolor="#BDC9F9"><strong>จำนวนครั้ง</strong></td>
</tr>
<?
$kk=0;
foreach($Arr_report_repeated2 as $key=>$values){
$bg_color = ($kk%2)?'#F1F1F1':'FFFFFF';$kk++;
//$Arr_report[$rs['public_idcard']]['complain_detail'] = $rs[complain_detail] ;
// $Arr_report[$rs['public_idcard']]['type_request'] = $rs[type_request] ;
// $Arr_report[$rs['public_idcard']]['s_name'] = $rs[s_name] ;
// $Arr_report[$rs['public_idcard']]['ncount'] = $rs[ncount] ;
?>
<tr bgcolor="<?=$bg_color?>">
<td align="center"><?=$kk?></td>
<td align="center"><a href="report_peper_detail.php?idcard=<?=$key?>&displaytype=<?=$displaytype?>"><?=$key?></a></td>
<td align="center"><?=$values[ncount]?></td>
</tr>
<?
}
?>
</table>
<?
}?>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<?
//insert timeQuery
$time_end = getmicrotime();
writetime2db($timestart,$timeend);
//insert timeQuery
?>