Hacked By AnonymousFox

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

<?php 
include("lib/config.php");
include("lib/connect.php");

include("lib/config.php");
include("lib/connect.php");
include("lib/session.php");

$Yearsend=$_GET["Yearsend"];
if($Yearsend==""){  $Yearsend="2566";  }
if($System_Session_User_ID=="") {
echo "<SCRIPT LANGUAGE=\"JavaScript\">window.location = \"index.php\";alert(\"You must Login first.\");</SCRIPT>";
 } 

$sql="select * from hospital where Id='$System_Session_User_ID'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
?>
<!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; 
}.header2 {
  padding: 15px;
  text-align: center;
  background: #CCFF99; 
  font-size: 20px; 
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.button {
  background-color: #4CAF50; /* Green */
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}
.button2 {
  background-color: #A4F2C5; /* Green */
  border: none;
  color: green;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;  border: 2px solid #4CAF50;

}
.button1 {
  background-color: white; 
  color: black; 
  border: 2px solid #4CAF50;
}

.button1:hover {
  background-color: #4CAF50;
  color: white;
}
.button2:hover {
  background-color: #4CAF50;
  color: white;
}
.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;

}
.nore{
	background-image: url("search2.jpg");
  	background-repeat: no-repeat;
}
.top{
	background-image: url("header.jpg");
  	background-repeat: no-repeat;
}
.style2 {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 align="center" bgcolor="#05291B" class="top" b><br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br></td>
      </tr>
	  <tr>
	    <td bgcolor="#2F4F4F" align="center"><span class="header"> ระบบรายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning)</span></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF" align="center"><span class="page_title">
	      <input type="submit" name="button4" id="button15" class="inputlogin" value="แก้ไขรหัสผ่าน"  onclick="window.location='editpass.php'" />
	      <br>
        ยินดีต้อนรับ !
          <span class="style2">
          <?=$System_Session_FullName?>
          </span> เข้าสู่ระบบ                                            &nbsp;&nbsp;
<input type="submit" name="button" id="button" class="inputlogin" value="ออกจากระบบ"  onclick="window.location='system/logoutmain.php'" />
	    </span></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF" align="center"><strong>เลือกปีงบประมาณ</strong> 
	      <select name="Yearsend" onChange="window.location='main.php'"  style="height:40px">
	        <option value="2566" <? if($Yearsend==2566){?> selected="selected" <? } ?>>2566</option>
	        <option value="2567" <? if($Yearsend==2567){?> selected="selected" <? } ?>>2567</option>
          </select>        </td>
      </tr>
	  
	  <tr>
	    <td bgcolor="#E6E6E6"><div align="center"><strong>ปีงบประมาณ <?=$Yearsend?></strong></div></td>
      </tr>
	  
	  
      <?
	  if($dept==""&&$zone==""){
	  $sql1="select * from hospital where Id='$System_Session_User_ID' order by Zone asc,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 align="center"><div align="center">
          <?
		$sqlcheck="select * from typesave where Monthi='1' and Idsend='$row1[Id]' and Yearsend='$Yearsend'";
		$querycheck=mysql_query($sqlcheck);
		$rowcheck=mysql_query($querycheck);
		$numcheck=mysql_num_rows($querycheck);
		if($numcheck==0){
		?>
          <input type="submit" name="button23" id="button23" class="inputlogin" value="บันทึกข้อมูลภาพรวม 12 เดือน" 
		  onClick="window.location='<? if ($row1[Type]==1) { ?>save1.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==2) { ?>save2.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==3) { ?>save3.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?><? } ?><? if ($row1[Type]==4) { ?>save4.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?><? } ?>'"  />
          <? } else { ?>
  <a href="report<?=$row1[Type]?>.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?>" target="_blank"><img src="view.jpg" width="50"></a><br>
 <a href="report<?=$row1[Type]?>edit.php?Id=<?=$row1[Id]?>&Month=1&Yearsend=<?=$Yearsend?>" target="_blank"> <img src="edit.png" width="30"></a><br>
  <? } ?>
        </div></td>
      </tr>
	  <? $i++; } ?>
</table>

</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox