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=$_POST["Zone"];
$Year=$_POST["Year"];
$Month=$_POST["Month"];
$Tri=$_POST["Tri"];
if($Zone==""){ $Zone="1"; }
if($Year==""){ $Year="2567"; }
?>
<!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>
<style>
.canvasjs-chart-tooltip{
pointer-events: auto !important;
}
.chart--container1 { height: 100%;
width: 100%;
min-height: 530px;
}
</style>
<script type="text/javascript">
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
title: {
},
axisY: {
},
axisX: {
title: ""
},
data: [
{
color: "#B0D0B0",
type: "column",
name: "Zone",
showInLegend: "false",
indexLabel: "{y}",
xValueFormatString: "y",
indexLabelPlacement: "outside",
toolTipContent: " {name}",
<?
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='1' and a.Save='0' order by a.Id desc";
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Save='0'";
if($Month!=""){
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Monthi='$Month' and a.Save='0'";
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='1' and a.Monthi='$Month' and a.Save='0' order by a.Id desc";
} if($Tri=="1"){
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='16' and b.Zone='1' and a.Monthi<4 and a.Save='0' order by a.Id desc";
} if($Tri=="2"){
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and (a.Monthi between 4 and 6) and a.Save='0' order by a.Id desc";
} if($Tri=="3"){
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and (a.Monthi between 7 and 9) and a.Save='0' order by a.Id desc";
} if($Tri=="4"){
$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and (a.Monthi between 9 and 12) and a.Save='0' order by a.Id desc";
}
$query=mysql_query($sql);
$rowg31=mysql_fetch_array($query);
$sql2="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='2' and a.Save='0' order by a.Id desc";
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Save='0'";
if($Month!=""){
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Monthi='$Month' and a.Save='0'";
$sql2="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='2' and a.Monthi='$Month' and a.Save='0' order by a.Id desc";
} if($Tri=="1"){
$sql2="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='16' and b.Zone='2' and a.Monthi<4 and a.Save='0' order by a.Id desc";
} if($Tri=="2"){
$sql2="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='2' and (a.Monthi between 4 and 6) and a.Save='0' order by a.Id desc";
} if($Tri=="3"){
$sql2="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='2' and (a.Monthi between 7 and 9) and a.Save='0' order by a.Id desc";
} if($Tri=="4"){
$sql2="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='2' and (a.Monthi between 9 and 12) and a.Save='0' order by a.Id desc";
}
$query2=mysql_query($sql2);
$rowg32=mysql_fetch_array($query2);
$sql3="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='3' and a.Save='0' order by a.Id desc";
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Save='0'";
if($Month!=""){
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Monthi='$Month' and a.Save='0'";
$sql3="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='3' and a.Monthi='$Month' and a.Save='0' order by a.Id desc";
} if($Tri=="1"){
$sql3="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='16' and b.Zone='3' and a.Monthi<4 and a.Save='0' order by a.Id desc";
} if($Tri=="2"){
$sql3="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='3' and (a.Monthi between 4 and 6) and a.Save='0' order by a.Id desc";
} if($Tri=="3"){
$sql3="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='3' and (a.Monthi between 7 and 9) and a.Save='0' order by a.Id desc";
} if($Tri=="4"){
$sql3="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='3' and (a.Monthi between 9 and 12) and a.Save='0' order by a.Id desc";
}
$query3=mysql_query($sql3);
$rowg33=mysql_fetch_array($query3);
$sql4="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='4' and a.Save='0' order by a.Id desc";
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Save='0'";
if($Month!=""){
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Monthi='$Month' and a.Save='0'";
$sql4="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='4' and a.Monthi='$Month' and a.Save='0' order by a.Id desc";
} if($Tri=="1"){
$sql4="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='16' and b.Zone='4' and a.Monthi<4 and a.Save='0' order by a.Id desc";
} if($Tri=="2"){
$sql4="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='4' and (a.Monthi between 4 and 6) and a.Save='0' order by a.Id desc";
} if($Tri=="3"){
$sql4="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='4' and (a.Monthi between 7 and 9) and a.Save='0' order by a.Id desc";
} if($Tri=="4"){
$sql4="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='4' and (a.Monthi between 9 and 12) and a.Save='0' order by a.Id desc";
}
$query4=mysql_query($sql4);
$rowg34=mysql_fetch_array($query4);
$sql5="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='5' and a.Save='0' order by a.Id desc";
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Save='0'";
if($Month!=""){
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Monthi='$Month' and a.Save='0'";
$sql5="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='5' and a.Monthi='$Month' and a.Save='0' order by a.Id desc";
} if($Tri=="1"){
$sql5="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='16' and b.Zone='5' and a.Monthi<4 and a.Save='0' order by a.Id desc";
} if($Tri=="2"){
$sql5="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='5' and (a.Monthi between 4 and 6) and a.Save='0' order by a.Id desc";
} if($Tri=="3"){
$sql5="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='5' and (a.Monthi between 7 and 9) and a.Save='0' order by a.Id desc";
} if($Tri=="4"){
$sql5="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='5' and (a.Monthi between 9 and 12) and a.Save='0' order by a.Id desc";
}
$query5=mysql_query($sql5);
$rowg35=mysql_fetch_array($query5);
$sql6="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='6' and a.Save='0' order by a.Id desc";
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Save='0'";
if($Month!=""){
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Monthi='$Month' and a.Save='0'";
$sql6="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='6' and a.Monthi='$Month' and a.Save='0' order by a.Id desc";
} if($Tri=="1"){
$sql6="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='16' and b.Zone='6' and a.Monthi<4 and a.Save='0' order by a.Id desc";
} if($Tri=="2"){
$sql6="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='6' and (a.Monthi between 4 and 6) and a.Save='0' order by a.Id desc";
} if($Tri=="3"){
$sql6="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='6' and (a.Monthi between 7 and 9) and a.Save='0' order by a.Id desc";
} if($Tri=="4"){
$sql6="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='6' and (a.Monthi between 9 and 12) and a.Save='0' order by a.Id desc";
}
$query6=mysql_query($sql6);
$rowg36=mysql_fetch_array($query6);
$sql7="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='7' and a.Save='0' order by a.Id desc";
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Save='0'";
if($Month!=""){
//$sql="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='1' and a.Monthi='$Month' and a.Save='0'";
$sql7="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='16' and b.Zone='7' and a.Monthi='$Month' and a.Save='0' order by a.Id desc";
} if($Tri=="1"){
$sql7="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='16' and b.Zone='7' and a.Monthi<4 and a.Save='0' order by a.Id desc";
} if($Tri=="2"){
$sql7="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='7' and (a.Monthi between 4 and 6) and a.Save='0' order by a.Id desc";
} if($Tri=="3"){
$sql7="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='7' and (a.Monthi between 7 and 9) and a.Save='0' order by a.Id desc";
} if($Tri=="4"){
$sql7="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='$Year' and a.Orderi='1' and a.Category='1' and b.Zone='7' and (a.Monthi between 9 and 12) and a.Save='0' order by a.Id desc";
}
$query7=mysql_query($sql7);
$rowg37=mysql_fetch_array($query7);
?>
dataPoints: [
{ y: <?=$rowg31[0]?>, label: "Zone 1", name: "คลินิกผู้สูงอายุคุณภาพ รพ.เปิด 3 แห่ง เปิดคลินิกผู้สูงอายุครบวงจร ศบส. เปิด 5 แห่ง" },
{ y: <?=$rowg32[0]?>, label: "Zone 2", name: "คลินิกผู้สูงอายุคุณภาพ รพ.เปิด 1 แห่ง เปิดคลินิกผู้สูงอายุครบวงจร ศบส. เปิด 5 แห่ง" },
{ y: <?=$rowg33[0]?>, label: "Zone 3", name: "คลินิกผู้สูงอายุคุณภาพ รพ.เปิด 0 แห่ง เปิดคลินิกผู้สูงอายุครบวงจร ศบส. เปิด 16 แห่ง" },
{ y: <?=$rowg34[0]?>, label: "Zone 4", name: "คลินิกผู้สูงอายุคุณภาพ รพ.เปิด 0 แห่ง เปิดคลินิกผู้สูงอายุครบวงจร ศบส. เปิด 6 แห่ง" },
{ y: <?=$rowg35[0]?>, label: "Zone 5", name: "คลินิกผู้สูงอายุคุณภาพ รพ.เปิด 1 แห่ง เปิดคลินิกผู้สูงอายุครบวงจร ศบส. เปิด 6 แห่ง" },
{ y: <?=$rowg36[0]?>, label: "Zone 6", name: "คลินิกผู้สูงอายุคุณภาพ รพ.เปิด 1 แห่ง เปิดคลินิกผู้สูงอายุครบวงจร ศบส. เปิด 4 แห่ง" },
{ y: <?=$rowg37[0]?>, label: "Zone 7", name: "คลินิกผู้สูงอายุคุณภาพ รพ.เปิด 3 แห่ง เปิดคลินิกผู้สูงอายุครบวงจร ศบส. เปิด 13 แห่ง" }
]
}
]
});
chart.render();
}
</script>
<script type="text/javascript" src="https://cdn.canvasjs.com/canvasjs.min.js"></script>
</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>
<h2 align="center"><strong><br>
นโยบายที่ 16 คลินิกผู้สูงอายุครบวงจรทั่ว กทม.</strong></h2>
<form action="policy16.php" method="post">
<fieldset>
<strong><br>
ปีงบประมาณ
<select name="Year">
<option <?php if($Year==2566){?> selected="selected"<?php } ?>>2566</option>
<option <?php if($Year==2567){?> selected="selected"<?php } ?>>2567</option>
</select>
เดือน
<select name="Month">
<option value="">----เลือกเดือน----</option>
<option value="4" <?php if($Month==4){?> selected="selected"<?php } ?>>มกราคม</option>
<option value="5" <?php if($Month==5){?> selected="selected"<?php } ?>>กุมภาพันธ์</option>
<option value="6" <?php if($Month==6){?> selected="selected"<?php } ?>>มีนาคม</option>
<option value="7" <?php if($Month==7){?> selected="selected"<?php } ?>>เมษายน</option>
<option value="8" <?php if($Month==8){?> selected="selected"<?php } ?>>พฤษภาคม</option>
<option value="9" <?php if($Month==9){?> selected="selected"<?php } ?>>มิถุนายน</option>
<option value="10" <?php if($Month==10){?> selected="selected"<?php } ?>>กรกฎาคม</option>
<option value="11" <?php if($Month==11){?> selected="selected"<?php } ?>>สิงหาคม</option>
<option value="12" <?php if($Month==12){?> selected="selected"<?php } ?>>กันยายน</option>
<option value="1" <?php if($Month==1){?> selected="selected"<?php } ?>>ตุลาคม</option>
<option value="2" <?php if($Month==2){?> selected="selected"<?php } ?>>พฤศจิกายน</option>
<option value="3" <?php if($Month==3){?> selected="selected"<?php } ?>>ธันวาคม</option>
</select>
ไตรมาส
<select name="Tri">
<option>----เลือกไตรมาส----</option>
<option value="1" <?php if($Tri==1){?> selected="selected"<?php } ?>>1</option>
<option value="2" <?php if($Tri==2){?> selected="selected"<?php } ?>>2</option>
<option value="3" <?php if($Tri==3){?> selected="selected"<?php } ?>>3</option>
<option value="4" <?php if($Tri==4){?> selected="selected"<?php } ?>>4</option>
</select>
<br>
<input type="submit" name="button32" id="button32" class="inputlogin" value="แสดงข้อมูล" />
</strong>
</fieldset>
</form>
<h2><strong> OKRs <br>
KR.4.5 การเปิดบริการคลินิกผู้สูงอายุครบวงจรหรือคลินิกผู้สูงอายุคุณภาพครบทุกโรงพยาบาล 12 แห่ง ในสังกัดสำนักการแพทย์ และศูนย์บริการสาธารณสุข 69 แห่ง ในสังกัดสำนักอนามัย</strong></h2>
<table width="100%" border="1" style="border-bottom:collapse;collapse" cellpadding="10">
<tr>
<td><div align="center"><strong>KPI 1 จำนวนโรงพยาบาลที่เปิดบริการคลินิก<br>
ผู้สูงอายุคุณภาพหรือครบวงจร</strong></div></td>
<td><div align="center"><strong>KPI 2 จำนวนศูนย์บริการสาธารณสุขที่เปิดบริการคลินิก<br>
ผู้สูงอายุครบวงจร</strong></div></td>
</tr>
<tr>
<td align="center"><img src="mid11.jpg"></td>
<td align="center"><img src="3.jpg"></td>
</tr>
<tr>
<td><div align="center"><br>
<table width="100%" border="0">
<tr>
<td width="21%"> </td>
<td width="47%"><div align="center">เป้าหมาย 12 แห่ง <br>
ปีงบ 2567 ทำได้ 11 แห่ง </div></td>
<td width="13%"><div align="left"><img src="cc.jpg" width="63" height="60"></div></td>
<td width="19%"> </td>
</tr>
</table>
<br>
<br>
</div></td>
<td><div align="center">
<table width="100%" border="0">
<tr>
<td width="24%"> </td>
<td width="39%"><div align="center">เป้าหมาย 60 แห่ง <br>
ปีงบ 2567 ทำได้ 55 แห่ง </div></td>
<td width="14%"><div align="left"><img src="cc.jpg" width="63" height="60"></div></td>
<td width="23%"> </td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center"><strong><br>
KR 4.6 การขยายบริการคลินิกผู้สูงอายุครบวงจรไปคลินิกชุมชนอบอุ่น<br>
KPI จำนวนคลินิกชุมชนอบอุ่น ที่เปิดบริการคลินิกผู้สูงอายุครบวงจร
<br>
<br>
</strong></div></td>
</tr>
<tr>
<td colspan="2"><div align="center"><img src="4.jpg"></div></td>
</tr>
<tr>
<td colspan="2" align="center"> </td>
</tr>
<tr>
<td colspan="2" align="center"><table width="100%" border="0">
<tr>
<td width="33%"> </td>
<td width="31%"><div align="center">เป้าหมาย 100 แห่ง <br>
ปีงบ 2567 ทำได้ 8 แห่ง </div></td>
<td width="6%"><div align="left"><img src="cc.jpg" width="63" height="60"></div></td>
<td width="30%"> </td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
<table width="100%" border="0">
<tr>
<td width="54%"><div align="center"><strong>จำนวนผู้สูงอายุที่ได้รับการคัดกรองตรวจสุขภาพผ่านช่องทางต่าง ๆ</strong></div></td>
</tr>
<tr>
<td>
<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"><div id="chartContainer" style="height: 300px; width: 100%;">
</div></td>
</tr>
<tr>
<td>
<hr>
<form action="policy16.php#show1" method="post">
<div align="center"> <br>
<strong>ปีงบประมาณ
<?=$Year?>
</strong> ข้อมูล Zone
<select name="Zone" 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>
<a name="show1"></a><input type="submit" name="button322" id="button322" class="inputlogin" value="แสดงข้อมูล" />
</strong></div>
</form>
</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='1' and a.Category='16' and b.Zone='$Zone' and a.Monthi='1' and a.Save='0' 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='1' and a.Category='16' and b.Zone='$Zone' and a.Monthi='2' and a.Save='0' 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='1' and a.Category='16' and b.Zone='$Zone' and a.Monthi='3' and a.Save='0' 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='1' and a.Category='16' and b.Zone='$Zone' and a.Monthi='4' and a.Save='0' 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='1' and a.Category='16' and b.Zone='$Zone' and a.Monthi='5' and a.Save='0' 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='1' and a.Category='16' and b.Zone='$Zone' and a.Monthi='6' and a.Save='0' 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='1' and a.Category='16' and b.Zone='$Zone' and a.Monthi='7' and a.Save='0' 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='1' and a.Category='16' 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='1' and a.Category='16' 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='1' and a.Category='16' 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='1' and a.Category='16' 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='1' and a.Category='16' 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