Hacked By AnonymousFox

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

<?php 
include("lib/config.php");
include("lib/connect.php");
include("lib/session.php");
$Id=$_GET["Id"];
$Month=$_GET["Month"];
$action=$_GET["action"];
$Yearsend=$_GET["Yearsend"];

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='$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">
<!--
.style27 {
	color: #FF0000;
	font-size: 14px;
}
.header {
  padding: 15px;
  text-align: center;
  background: #2F4F4F; color:white;
  font-size: 20px; 
}
.header2 {
  padding: 15px;
  text-align: center;
  background: #CCFF99; 
  font-size: 20px; 
}

.style28 {color: #FF0000;
	font-weight: bold;
}
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;
}.top{
	background-image: url("header.jpg");
  	background-repeat: no-repeat;
}

-->
</style>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<script>
function NumChk() {
  
<? for($i=1;$i<=6;$i++){ ?>
    var number = document.getElementById("num<?=$i?>").value;
    if (number < 0) {
      alert('ระบบรับค่าจำนวนตัวเลขตั้งแต่ 0 ขึ้นไป');
       document.getElementById("num<?=$i?>").value = "0";      
  }
<? } ?>

    }
</script>
<table width="100%" border="1" style="border-collapse:collapse" bordercolor="#CCCCCC" cellpadding="10">
	  
	  <tr>
	    <td colspan="14" align="center" bgcolor="#05291B" class="top" b><br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br></td>
      </tr>
</table>
	<div class="header">รายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning) รายตัวชี้วัด ประจำปีงบประมาณ 
	  <?=$Yearsend?>
	</div>
   <div class="header2">
     <?=$row[Name]?>
   </div>
<div id="dropDownSelect1">
  <div align="center">
    <input type="submit" name="button2" id="button2" class="inputlogin" value="กลับหน้าหลัก" onClick="window.location='main4.php'"  />
  </div>
</div>
		  <? if($action=="addnew"){

$sql="insert into namesave2 values (NULL,'$inputzone','$Month1','$inputname','$inputtel','$inputposition','$Idrefer',NOW())";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','2','$input72','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','3','$input73','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','6','$input76','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','7','$input77','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','8','$input78','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','9','$input79','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','10','$input710','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','11','$input711','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'$inputzone','7','12','$input712','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);

?>
<script langquage='javascript'>
window.location="save4.php?Id=<?=$Idrefer?>&Month=<?=$Month1?>&action=complete";
</script>
<?
}
?>
<?php if($action=="complete"){?>
<hr>
<strong></strong>
<div align="center"><strong><font color="#006600">ระบบได้บันทึกข้อมูลเรียบร้อยแล้ว </font></strong></div>
<strong></strong><hr>
 <?php }else{ ?>
 		<form action="save4.php?action=addnew" method="post">
			<input type="hidden" name="Idrefer" value="<?=$Id?>">
	<input type="hidden" name="Month1" value="<?=$Month?>">
	<input type="hidden" name="Yearsend1" value="<?=$Yearsend?>">

	<table width="100%" border="1" style="border-collapse:collapse" bordercolor="#CCCCCC" cellpadding="10">
	  <tr>
	    <td><div align="center"><strong>ปีงบประมาณ
	      <?=$Yearsend?>
	     <? if($Yearsend>2566) { ?>  เดือน
  <? if($Month==1) {   echo"ต.ค."; ?>
  <?=$Yearsend-1?>
  <? } ?>
  <? if($Month==2) {   echo"พ.ย."; ?>
  <?=$Yearsend-1?>
  <? } ?>
  <? if($Month==3) {   echo"ธ.ค."; ?>
  <?=$Yearsend-1?>
  <? } ?>
  <? if($Month==4) {   echo"ม.ค."; ?>
  <?=$Yearsend?>
  <? } ?>
  <? if($Month==5) {   echo"ก.พ."; ?>
  <?=$Yearsend?>
  <? } ?>
  <? if($Month==6) {   echo"มี.ค."; ?>
  <?=$Yearsend?>
  <? } ?>
  <? if($Month==7) {   echo"เม.ย."; ?>
  <?=$Yearsend?>
  <? } ?>
  <? if($Month==8) {   echo"พ.ค."; ?>
  <?=$Yearsend?>
  <? } ?>
  <? if($Month==9) {   echo"มิ.ย. "; ?>
  <?=$Yearsend?>
  <? } ?>
  <? if($Month==10) {   echo"ก.ค. "; ?>
  <?=$Yearsend?>
  <? } ?>
  <? if($Month==11) {   echo"ส.ค. "; ?>
  <?=$Yearsend?>
  <? } ?>
  <? if($Month==12) {   echo"ก.ย. "; ?>
  <?=$Yearsend?>
  <? } ?> <? }else{ ?>
(กรอกข้อมูลภาพรวมทั้ง 12 เดือน)
<? } ?>
        </strong></div></td>
      </tr>
	  <tr>
	    <td><span class="style28">*ระบุว่าเป็นคําถามที่จําเป็นต้องกรอกข้อมูล</span></td>
      </tr>
	  <tr>
        <td bgcolor="#E6E6E6"><div align="center"><strong>นโยบายที่ 7  รถจักรยานยนต์กู้ชีพฉุกเฉิน</strong></div></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><div align="center">เลือก Zone
	        <select name="inputzone" style="height:40px">
	            <option value="1">1</option>
	            <option value="2">2</option>
				<option value="3">3</option>
				<option value="4">4</option>
				<option value="5">5</option>
				<option value="6">6</option>
				<option value="7">7</option>
              </select>
	    </div></td>
      </tr>
	  
	  <tr>
        <td bgcolor="#FFFFFF"><br>
          จำนวนผู้ป่วยฉุกเฉินวิกฤตที่ได้รับการปฏิบัติการฉุกเฉินภายใน 8 นาที (Motorlance) (ครั้ง)<span class="style28">*</span><br>
        <br>
        จำนวน
        <input type="number" name="input72" min="0" onKeyUp="NumChk()" width="25" required>
ครั้ง<br><br></td>
      </tr>
	  
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      จำนวนผู้ป่วย Emergency Care (ครั้ง)<span class="style28">*</span><br>
        <br>
        จำนวน
        <input type="number" name="input73" min="0" onKeyUp="NumChk()" width="25" required>
ครั้ง<br><br></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      ผลรวมของระยะเวลาการเข้าถึงที่เกิดเหตุ ในเดือนนั้นๆ (นาที) <span class="style28">*</span><br>
        <br>
        <br>
        จำนวน
        <input type="text" name="input76" id="num2" min="0" onKeyUp="NumChk()" width="25" required>
        นาที        <br>        <br></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      จำนวนครั้งในการเข้าถึงที่เกิดเหตุ ในเดือนนั้นๆ (ครั้ง)<span class="style28">*</span><br>
        <br>
        <br>
        จำนวน
        <input type="number" name="input77" min="0" onKeyUp="NumChk()" width="25" required>
ครั้ง<br><br></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      ระยะเวลาเฉลี่ยของการเข้าถึงที่เกิดเหตุ (นาที)<span class="style28">*</span><br>
          <br>
จำนวน
<input type="text" name="input711" id="num3" min="0" onKeyUp="NumChk()" width="25" required>
นาที<br>
<br></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      ระยะเวลาที่น้อยที่สุดของการเข้าถึงที่เกิดเหตุ (นาที)<span class="style28">*</span><br>
        <br>
        จำนวน
        <input type="text" name="input78" id="num4" min="0" onKeyUp="NumChk()" width="25" required>
นาที <br><br></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      ระยะเวลาที่มากที่สุดของการเข้าถึงที่เกิดเหตุ (นาที)<span class="style28">*</span><br>
        <br>
        จำนวน
        <input type="text" name="input79" id="num5" min="0" onKeyUp="NumChk()" width="25" required>
นาที <br><br></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      ระยะเวลาที่เข้าถึงที่เกิดเหตุมีความถี่มากที่สุด (ค่าฐานนิยม) (นาที)<span class="style28">*</span><br>
	      <br>
	      จำนวน
          <input type="text" name="input710" id="num6" min="0" onKeyUp="NumChk()" width="25" required>
นาที<br>
<br>        </td>
      </tr>
	  
	  
	  <tr>
	    <td bgcolor="#E6E6E6" align="center"><div role="listitem">
	      <div jsname="bLLMxc" role="heading">
	        <div>
	          <div><strong>ผู้รายงานข้อมูล<br>
	          </strong></div>
	        </div>
	      </div>
	      </div>	      </td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF">ชื่อ  สกุล<span class="style28">*</span>
	      <input type="text" name="inputname" id="inputname" width="350" required></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF">เบอร์โทรศัพท์<span class="style28">*
	      <input type="text" name="inputtel" id="inputtel" width="350" required>
	      </span></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF">ตำแหน่ง<span class="style28">*
            <input type="text" name="inputposition" id="inputposition" width="350" required>
        </span></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><div align="center"><span class="page_title">
	      <input type="submit" name="button" id="button" class="inputlogin" value="บันทึกข้อมูล"  />
        </span></div></td>
      </tr>
</table>
</form>
<? } ?>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox