Hacked By AnonymousFox

Current Path : C:/AppServ/www/bhz/
Upload File :
Current File : C:/AppServ/www/bhz/policy12.php

<? 
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">&nbsp;&nbsp;
<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='homez12.php'" />
  </span><br>
  รายงานผลการดำเนินงานรายตัวชี้วัด<br>
    ตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning)<br>
    <strong>ปีงบประมาณ 2567  </strong></h2>
  <p align="center"><strong><br>
  </strong><strong>นโยบายที่  12 </strong>เพิ่ม ศบส. พลัส และยกระดับศูนย์แพทย์ชุมชนเมือง</p>
  <p>KR.4.2 การเปิดให้บริการดูแลรักษาและสังเกตอาการผู้ป่วย <br>
    ในศูนย์บริการสาธารณสุข (ศบส.พลัส)  และศูนย์แพทย์ชุมชนเมือง คลินิกเฉพาะทาง  และคลินิกเครือข่าย ภายในศูนย์บริการสาธารณสุข ภายในเดือนกันยายน 2567
  </p>
  <p align="center">&nbsp;</p>
  <p><strong>จำนวนผู้รับบริการศูนย์แพทย์ชุมชนเมือง <a href="policy12_2.php" target="_blank">click</a></strong></p>
<p><strong>          
</strong></p>
<table width="100%" border="0">
    <tr>
      <td width="54%"><div align="center"></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='1' and a.Category='12' and b.Zone='1' and a.Save='0' order by a.Id desc";
	 $query=mysql_query($sql);
	 $row1=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='12' and b.Zone='2' and a.Save='0' order by a.Id desc";
	 $query2=mysql_query($sql2);
	 $row2=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='12' and b.Zone='3' and a.Save='0' order by a.Id desc";
	 $query3=mysql_query($sql3);
	 $row3=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='12' and b.Zone='4' and a.Save='0' order by a.Id desc";
	 $query4=mysql_query($sql4);
	 $row4=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='12' and b.Zone='5' and a.Save='0' order by a.Id desc";
	 $query5=mysql_query($sql5);
	 $row5=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='12' and b.Zone='6' and a.Save='0' order by a.Id desc";
	 $query6=mysql_query($sql6);
	 $row6=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='12' and b.Zone='7' and a.Save='0' order by a.Id desc";
	 $query7=mysql_query($sql7);
	 $row7=mysql_fetch_array($query7);
	 ?>
	  <div align="center"><? //echo $total=number_format($row1[0]+$row2[0]+$row3[0]+$row4[0]+$row5[0]+$row6[0]+$row7[0],0)?></div>
	  
	  <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: [ <?=$row1[0]?>, <?=$row2[0]?>, <?=$row3[0]?>, <?=$row4[0]?>, <?=$row5[0]?>, <?=$row6[0]?>, <?=$row7[0]?>],
      }, ],
      scrollX: {},
    };

    zingchart.render({
      id: 'myChart',
      data: chartConfig,
      height: '400px',
      width: '100%',
    });
  </script>
	  </td>
    </tr>
  </table>
  <table width="100%" border="0">
    

    <tr>
      <td width="54%">
	  <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='1' and a.Category='12' and b.Zone='$Zone' and a.Monthi='1' and a.Save='0' order by a.Id desc";
	 $query=mysql_query($sql);
	 $row1=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='12' and b.Zone='$Zone' and a.Monthi='2'  and a.Save='0' order by a.Id desc";
	 $query2=mysql_query($sql2);
	 $row2=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='12' and b.Zone='$Zone' and a.Monthi='3' and a.Save='0' order by a.Id desc";
	 $query3=mysql_query($sql3);
	 $row3=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='12' and b.Zone='$Zone' and a.Monthi='4'  and a.Save='0' order by a.Id desc";
	 $query4=mysql_query($sql4);
	 $row4=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='12' and b.Zone='$Zone' and a.Monthi='5'  and a.Save='0' order by a.Id desc";
	 $query5=mysql_query($sql5);
	 $row5=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='12' and b.Zone='$Zone' and a.Monthi='6'  and a.Save='0' order by a.Id desc";
	 $query6=mysql_query($sql6);
	 $row6=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='12' and b.Zone='$Zone' and a.Monthi='7' and a.Save='0' order by a.Id desc";
	 $query7=mysql_query($sql7);
	 $row7=mysql_fetch_array($query7);
	 	 $sql8="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='12' and b.Zone='$Zone' and a.Monthi='8' and a.Save='0' order by a.Id desc";
	 $query8=mysql_query($sql8);
	 $row8=mysql_fetch_array($query8);
	 $sql9="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='12' and b.Zone='$Zone' and a.Monthi='9' and a.Save='0' order by a.Id desc";
	 $query9=mysql_query($sql9);
	 $row9=mysql_fetch_array($query9);
	 $sql10="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='12' and b.Zone='$Zone' and a.Monthi='10' and a.Save='0' order by a.Id desc";
	 $query10=mysql_query($sql10);
	 $row10=mysql_fetch_array($query10);
	 $sql11="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='12' and b.Zone='$Zone' and a.Monthi='11' and a.Save='0' order by a.Id desc";
	 $query11=mysql_query($sql11);
	 $row11=mysql_fetch_array($query11);
	 $sql12="select sum(Detail) from typesave a,hospital b where a.Idsend=b.Id and a.Yearsend='2567' and a.Orderi='1' and a.Category='12' and b.Zone='$Zone' and a.Monthi='12' and a.Save='0' order by a.Id desc";
	 $query12=mysql_query($sql12);
	 $row12=mysql_fetch_array($query12);
	 ?>
        
          values: [ <?=$row1[0]?>,  <?=$row2[0]?>,  <?=$row3[0]?>,  <?=$row4[0]?>,  <?=$row5[0]?>,  <?=$row6[0]?>,  <?=$row7[0]?>,  <?=$row8[0]?>,  <?=$row9[0]?>,  <?=$row10[0]?>,  <?=$row11[0]?>, <?=$row12[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>&nbsp;</p>
  <p><br>
    <br>
  </p>
</div>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox