Hacked By AnonymousFox
<?
include("lib/config.php");
include("lib/connect.php");
include("lib/session.php");
if($System_Session_User_ID=="") {
echo "<SCRIPT LANGUAGE=\"JavaScript\">window.location = \"admin.php\";alert(\"You must Login first.\");</SCRIPT>";
}
$sql="select * from bhz_staff where StaffID='$System_Session_User_ID'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
function ShowDate($myDate) {
$myDateArray=explode("-",$myDate);
$myDay = sprintf("%d",$myDateArray[2]);
switch($myDateArray[1]) {
case "01" : $myMonth = "ม.ค."; break;
case "02" : $myMonth = "ก.พ."; break;
case "03" : $myMonth = "มี.ค."; break;
case "04" : $myMonth = "เม.ย."; break;
case "05" : $myMonth = "พ.ค."; break;
case "06" : $myMonth = "มิ.ย."; break;
case "07" : $myMonth = "ก.ค."; break;
case "08" : $myMonth = "ส.ค."; break;
case "09" : $myMonth = "ก.ย."; break;
case "10" : $myMonth = "ต.ค."; break;
case "11" : $myMonth = "พ.ย."; break;
case "12" : $myMonth = "ธ.ค."; break;
}
$myYear = sprintf("%d",$myDateArray[0])+543;
return($myDay . " " . $myMonth . " " . $myYear);
}
$Zone=$_GET["Zone"];
if($Zone==""){ $Zone="1"; }
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>:: รายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning) ::</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/list.ico"/>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animsition/css/animsition.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/daterangepicker/daterangepicker.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css/splash.css">
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--===============================================================================================-->
<style type="text/css">
.inputlogin{
background:#056839;
font-family:Tahoma, Geneva, sans-serif;
font-size:16px;
padding: 5px 10px 5px 10px;
color: #fff;
font-weight: bold;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
cursor: pointer;
border-left:none;
border-top:none;
margin:10px 0 10px 0;
}
.inputlogin:hover{
background:#727FB2;
}
table {
border-collapse: collapse;
width: 100%;
}
</style>
<link rel="stylesheet" href="dist/css/default/zebra_datepicker.min.css" type="text/css">
<link rel="stylesheet" href="examples.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body {
background-image: url(images/bg-0111);
}
-->
</style>
<script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
<style>
.zc-body {
background: #fff;
}
.chart--container {
height: 100%;
width: 100%;
min-height: 420px;
}
.zc-ref {
display: none;
}
</style>
</head>
<body class="zc-body">
<div class="pages_container">
<div align="center"><strong><img src="logo.jpg" height="100"><br>
</strong></div>
<br />
<h4 align="right"><span class="page_title">
<input type="submit" name="button" id="button" class="inputlogin" value="ออกจากระบบ" onclick="window.location='system/logout.php'" /></span></h4>
<div align="center">
<h2><span class="page_title">
<input type="submit" name="button2" id="button2" class="inputlogin" value="กลับหน้าหลัก" onclick="window.location='homez8.php'" />
</span><br>
รายงานผลการดำเนินงานรายตัวชี้วัด<br>
ตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning)<br>
<strong>ปีงบประมาณ 2567 </strong></h2>
<p align="center"><strong><br>
นโยบายที่ 20 ร้านยาใกล้บ้าน<br>
KR.4.7 มีระบบบริการผ่านโครงการร้านยาใกล้บ้าน ที่มีมาตรฐานขึ้นทะเบียน สปสช. ในแต่ละเขตสุขภาพกรุงเทพมหานคร ครบ 7 เขตภายในเดือนมีนาคม 2567<br>
</strong></p>
<p><strong>
</strong></p>
<table width="100%" border="0">
<tr>
<td width="54%"><div align="center"><strong>จำนวนผู้รับบริการร้านยาใกล้บ้าน (ขึ้นทะเบียน สปสช.)</strong></div></td>
</tr>
<tr>
<td>
<?
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='1' order by a.Id desc";
$query=mysql_query($sql);
$rowg31=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='2' order by a.Id desc";
$query=mysql_query($sql);
$rowg32=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='3' order by a.Id desc";
$query=mysql_query($sql);
$rowg33=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='4' order by a.Id desc";
$query=mysql_query($sql);
$rowg34=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='5' order by a.Id desc";
$query=mysql_query($sql);
$rowg35=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='6' order by a.Id desc";
$query=mysql_query($sql);
$rowg36=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='7' order by a.Id desc";
$query=mysql_query($sql);
$rowg37=mysql_fetch_array($query);
?>
<div align="center"><? //echo $total=number_format($row1[0]+$row2[0]+$row3[0]+$row4[0]+$row5[0]+$row6[0]+$row7[0],0)?></div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td width="54%" align="center"><script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
<div id="myChart" class="chart--container">
<a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a> </div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
zingchart.MODULESDIR = 'https://cdn.zingchart.com/modules/';
zingchart.defineModule('toolbar-zoom', 'plugin', function(chartJson) {
chartJson.labels = chartJson.labels ? chartJson.labels : [];
chartJson.labels.push({}, {}, {});
zingchart.label_click = function(p) {
switch (p.labelid) {
case 'zoomin':
zingchart.exec(p.id, 'zoomin');
break;
case 'zoomout':
zingchart.exec(p.id, 'zoomout');
break;
case 'viewall':
zingchart.exec(p.id, 'viewall');
break;
}
};
/* Create a reference to the "toolbar-zoom" object */
let optionsObj = chartJson['toolbar-zoom'];
/*
* If the "background-color" attr exists, loop over each label and
* modify the background-color on those with certain "id" values.
*/
if (optionsObj['background-color']) {
for (let n in chartJson['labels']) {
let labelObj = chartJson['labels'][n];
if (
labelObj['id'] == 'zoomin' ||
labelObj['id'] == 'zoomout' ||
labelObj['id'] == 'viewall'
) {
labelObj['background-color'] = optionsObj['background-color'];
}
}
}
/* Same thing as above, but for border-color. */
if (optionsObj['border-color']) {
for (let n in chartJson['labels']) {
let labelObj = chartJson['labels'][n];
if (
labelObj['id'] == 'zoomin' ||
labelObj['id'] == 'zoomout' ||
labelObj['id'] == 'viewall'
) {
labelObj['border-color'] = optionsObj['border-color'];
}
}
}
return chartJson;
});
let chartConfig = {
type: 'bar',
globals: {
fontSize: '14px',
},
title: {
text: '',
},
'toolbar-zoom': {
// Add the toolbar
'background-color': '#FFFFFF #D0D7E1',
'border-color': '#ACAFB6',
},plot: {
valueBox: {
fontColor: '#000',
fontSize: '12px',
offsetY: '5px',
placement: 'top',
},
barWidth: '90%',
jsRule: 'plot_jsRule()',
},
scaleX: {
values: ['Zone 1', 'Zone 2', 'Zone 3', 'Zone 4','Zone 5','Zone 6','Zone 7'],
zooming: true,
},
series: [{
values: [ <?=$rowg31[0]?>, <?=$rowg32[0]?>, <?=$rowg33[0]?>, <?=$rowg34[0]?>, <?=$rowg35[0]?>, <?=$rowg36[0]?>, <?=$rowg37[0]?>],
}, ],
scrollX: {},
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '400px',
width: '100%',
});
</script></td>
</tr>
<tr>
<td>
<hr>
<div align="center"><strong> <br>
ข้อมูล Zone
<select name="Zone" onChange="window.location='?Zone='+this.value;" style="height:40px">
<option value="1" <? if($Zone==1){?> selected="selected" <? } ?>>1</option>
<option value="2" <? if($Zone==2){?> selected="selected" <? } ?>>2</option>
<option value="3" <? if($Zone==3){?> selected="selected" <? } ?>>3</option>
<option value="4" <? if($Zone==4){?> selected="selected" <? } ?>>4</option>
<option value="5" <? if($Zone==5){?> selected="selected" <? } ?>>5</option>
<option value="6" <? if($Zone==6){?> selected="selected" <? } ?>>6</option>
<option value="7" <? if($Zone==7){?> selected="selected" <? } ?>>7</option>
</select>
</strong></div></td>
</tr>
<tr>
<td>
<div id="myChart3" class="chart--container">
<a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a> </div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; // CHART CONFIG
// -----------------------------
let chartConfig3 = {
type: 'mixed',
globals: {
fontSize: '12px',
},
title: {
text: 'จำนวนผู้รับบริการร้านยาใกล้บ้าน (ขึ้นทะเบียน สปสช.) Zone <?=$Zone?>',
align: 'center',
marginLeft: '23%',
},
plot: {
valueBox: {
fontColor: '#000',
fontSize: '12px',
offsetY: '5px',
placement: 'top',
},
// hoverstate
// animation docs here:
// https://www.zingchart.com/docs/tutorials/design-and-styling/chart-animation/#animation__effect
lineWidth: '3px',
// line node styling
marker: {
borderWidth: 0,
size: '6px',
}
},
scaleX: {
labels: [
'ต.ค.',
'พ.ย.',
'ธ.ค.',
'ม.ค.',
'ก.พ.',
'มี.ค.',
'เม.ย.',
'พ.ค.',
'มิ.ย.',
'ก.ค.',
'ส.ค.',
'ก.ย.',
], // one label for every datapoint
},
scaleY: {
guide: {
// dashed lines
visible: false,
},
label: {
//text: 'Remaing effort (hours)',
fontSize: '14px',
},
},
scaleY2: {
label: {
//text: 'Remaing and completed tasks',
fontSize: '14px',
},
maxValue: 100,
minValue: 0,
step: 25, // can define scale step values or default
},
crosshairX: {
lineColor: '#424242',
lineGapSize: '4px',
lineStyle: 'dotted',
plotLabel: {
padding: '15px',
backgroundColor: 'white',
bold: true,
borderColor: '#e3e3e3',
borderRadius: '5px',
fontColor: '#2f2f2f',
fontFamily: 'Lato',
fontSize: '12px',
shadow: true,
shadowAlpha: 0.2,
shadowBlur: 5,
shadowColor: '#a1a1a1',
shadowDistance: 4,
textAlign: 'left',
},
scaleLabel: {
backgroundColor: '#424242',
},
},
series: [{
type: 'line',
<?
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='1' order by a.Id desc";
$query=mysql_query($sql);
$rowg11=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='2' order by a.Id desc";
$query=mysql_query($sql);
$rowg21=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='3' order by a.Id desc";
$query=mysql_query($sql);
$rowg31=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='4' order by a.Id desc";
$query=mysql_query($sql);
$rowg41=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='5' order by a.Id desc";
$query=mysql_query($sql);
$rowg51=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='6' order by a.Id desc";
$query=mysql_query($sql);
$rowg61=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='7' order by a.Id desc";
$query=mysql_query($sql);
$rowg71=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='8' order by a.Id desc";
$query=mysql_query($sql);
$rowg81=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='9' order by a.Id desc";
$query=mysql_query($sql);
$rowg91=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='10' order by a.Id desc";
$query=mysql_query($sql);
$rowg101=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='11' order by a.Id desc";
$query=mysql_query($sql);
$rowg111=mysql_fetch_array($query);
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='2' and a.Category='20' and b.Zone='$Zone' and a.Monthi='12' order by a.Id desc";
$query=mysql_query($sql);
$rowg121=mysql_fetch_array($query);
?>
values: [ <?=$rowg11[0]?>, <?=$rowg21[0]?>, <?=$rowg31[0]?>, <?=$rowg41[0]?>, <?=$rowg51[0]?>, <?=$rowg61[0]?>, <?=$rowg71[0]?>, <?=$rowg81[0]?>, <?=$rowg91[0]?>, <?=$rowg101[0]?>, <?=$rowg111[0]?>, <?=$rowg121[0]?>],
lineColor: '#42a5f5',
marker: {
visible: false,
},
scales: 'scale-x, scale-y',
},
],
};
// RENDER CHARTS
// -----------------------------
zingchart.render({
id: 'myChart3',
data: chartConfig3,
height: '100%',
width: '100%',
});
</script> </td>
</tr>
</table>
<p> </p>
<p><br>
<br>
</p>
</div>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox