Hacked By AnonymousFox

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

<?php 
include("lib/config.php");
include("lib/connect.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);

$zone=$_POST["zone"];
$dept=$_POST["dept"];
?>
<!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">
<!--===============================================================================================-->	
<!--===============================================================================================-->
<style type="text/css">
<!--
.header {
  text-align: center;
  background: #2F4F4F; color:white;
  font-size: 20px; 
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.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;

}
.style1 {
	color: #056839;
	font-weight: bold;
}
-->
</style>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
	<table width="100%" border="1" style="border-collapse:collapse" bordercolor="#CCCCCC" cellpadding="10">
	  <tr>
	    <td colspan="14" align="center"><strong><img src="logo.jpg"  height="100"></strong></td>
      </tr>
	  <tr>
	    <td colspan="14" bgcolor="#2F4F4F" align="center"><span class="header"> <br>
            <strong>ส่วนของผู้ดูแลระบบ</strong><br>
            ระบบรายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning)<br><br>
            <span class="pages_container">
            <input type="submit" name="button22" id="button22" class="inputlogin" value="กลับหน้าหลัก" onClick="window.location='home.php'"  />
        </span></span></td>
      </tr>
	  <tr>
	    <td colspan="14"><h4 align="center"><span class="page_title">ยินดีต้อนรับ !
	      <?=$System_Session_FullName?>
	      เข้าสู่ระบบ                                            &nbsp;&nbsp;
  <input type="submit" name="button" id="button" class="inputlogin" value="ออกจากระบบ"  onclick="window.location='system/logout.php'" />
	    </span></h4>        </td>
      </tr>
	  <tr>
	    <td colspan="14"><div align="center"><strong>ปีงบประมาณ 2567</strong></div></td>
      </tr>
	  <tr>
	    <td colspan="14" align="center">
		
		<form action="report.php" method="post">
		<table width="442" border="1" align="center" cellpadding="5" cellspacing="0" class="table_footer">
          <tr>
            <td colspan="2" align="center" bgcolor="#CCFF99"><strong>ค้นหาข้อมูล</strong></td>
          </tr>
          <tr>
            <td><div align="center"><strong>Zone : </strong></div></td>
            <td><select name="zone"  id="zone">
			<option value="" selected="selected">---- เลือก zone -----</option>
                <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>            </td>
          </tr>
          <tr>
            <td width="140"><div align="center"><strong>ชื่อหน่วยงาน  : </strong></div></td>
            <td width="276"><input name="dept" type="text" class="input_left" id="dept" value="<?=$dept?>" size="20" maxlength="50" /></td>
          </tr>
          <tr>
            <td colspan="2" align="center"><input name="btPageSearch" type="submit" class="inputlogin" id="btPageSearch" value="ค้นหาข้อมูล"  /></td>
          </tr>
        </table>
		</form>		</td>
      </tr>
	  <tr>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ชื่อหน่วยงาน</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>Zone</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ต.ค. 66</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>พ.ย. 66</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ธ.ค. 66</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ม.ค. 67</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ก.พ. 67</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>มี.ค. 67</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>เม.ย. 67</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>พ.ค. 67</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>มิ.ย. 67</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ก.ค. 67</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ส.ค. 67</strong></div></td>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ก.ย. 67</strong></div></td>
      </tr>
	  
      <?
	  if($dept==""&&$zone==""){
	  $sql1="select * from hospital where Zone='1' order by Type asc,Id asc";
	  }
	  if($dept!=""){
	  	  $sql1="select * from hospital where Name like '%$dept%' order by Type asc,Id asc";
	  }
	    if($zone!=""){
	  	  $sql1="select * from hospital where Zone='$zone' order by Type asc,Id asc";
	  }
	   if($dept!=""&&$zone!=""){
	  $sql1="select * from hospital where Zone='$zone' and Name like '%$dept%' order by Type asc,Id asc";
	  }
	 // echo $sql1;
	  $query1=mysql_query($sql1);
	  $i=1;
	  while($row1=mysql_fetch_array($query1)){
	  ?>
	  <tr>
	    <td><?=$i?>.<?=$row1[Name]?></td>
	    <td><div align="center"><?=$row1[Zone]?></div></td>
	    <td align="center"><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='1' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
	      <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=1" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=1" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=1" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=1" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='2' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=2" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=2" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=2" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=2" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='3' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          ยังไม่ได้บันทึกข้อมูล
          <? } else { ?>
          <img src="tick.png" width="25"><br>
	      <span class="style1">บันทึกข้อมูลแล้ว</span><br>
		  <? if ($row1[Type]==1) { ?>
	      <a href="report1.php?Id=<?=$row1[Id]?>&Month=3" target="_blank">ดูข้อมูล</a>
		  <? } ?>
		    <? if ($row1[Type]==2) { ?>
	      <a href="report2.php?Id=<?=$row1[Id]?>&Month=3" target="_blank">ดูข้อมูล</a>
		  <? } ?>
		    <? if ($row1[Type]==3) { ?>
	      <a href="report3.php?Id=<?=$row1[Id]?>&Month=3" target="_blank">ดูข้อมูล</a>
		  <? } ?>
		    <? if ($row1[Type]==4) { ?>
	      <a href="report4.php?Id=<?=$row1[Id]?>&Month=3" target="_blank">ดูข้อมูล</a>
		  <? } ?>
		   
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='4' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=4" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=4" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=4" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=4" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='5' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=5" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=5" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=5" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=5" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='6' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=6" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=6" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=6" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=6" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='7' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=7" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=7" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=7" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=7" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='8' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=8" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=8" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=8" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=8" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='9' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=9" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=9" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=9" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=9" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='10' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=10" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=10" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=10" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=10" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='11' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=11" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=11" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=11" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=11" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
	    <td><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='12' and Idsend='$row1[Id]'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
	      ยังไม่ได้บันทึกข้อมูล
  <? } else { ?>
  <img src="tick.png" width="25"><br>
  <span class="style1">บันทึกข้อมูลแล้ว</span><br>
  <? if ($row1[Type]==1) { ?>
  <a href="report1.php?Id=<?=$row1[Id]?>&Month=12" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==2) { ?>
  <a href="report2.php?Id=<?=$row1[Id]?>&Month=12" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==3) { ?>
  <a href="report3.php?Id=<?=$row1[Id]?>&Month=12" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? if ($row1[Type]==4) { ?>
  <a href="report4.php?Id=<?=$row1[Id]?>&Month=12" target="_blank">ดูข้อมูล</a>
  <? } ?>
  <? } ?>
        </div></td>
      </tr> <? $i++; } ?>
</table>

</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox