Hacked By AnonymousFox

Current Path : C:/AppServ/www/bkup/bhzv160368/bhz/
Upload File :
Current File : C:/AppServ/www/bkup/bhzv160368/bhz/report52edit.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);

$sql="select * from hospital where Id='$Id'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);

$sql1="select * from namesave2 where Idrefer='$Id' and Monthi='$Month'  order by Id desc";
$query1=mysql_query($sql1);
$row1=mysql_fetch_array($query1);

$sql131="select * from typesave2 where Idsend='$Id' and Monthi='$Month' and Category='13' and Orderi='1' and Yearsend='$Yearsend'  order by Id desc";
$query131=mysql_query($sql131);
$row131=mysql_fetch_array($query131);

$sql132="select * from typesave2 where Idsend='$Id' and Monthi='$Month' and Category='13' and Orderi='2' and Yearsend='$Yearsend'  order by Id desc";
$query132=mysql_query($sql132);
$row132=mysql_fetch_array($query132);
?>
<!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() {
  
    var number = document.getElementById("num1").value;
    if (number < 0) {
      alert('ระบบรับค่าจำนวนตัวเลขตั้งแต่ 0 ขึ้นไป');
       document.getElementById("num1").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='main5.php'"  />
  </div>
</div>
		  <? if($action=="addnew"){

$sql="insert into namesave2 values (NULL,'','$Month1','$inputname','$inputtel','$inputposition','$Idrefer',NOW())";
$query=mysql_query($sql);

$sql="update typesave2 set Save='1' where Idsend='$Idrefer' and Monthi='$Month1' and Yearsend='$Yearsend1' and Category='13'";
$query=mysql_query($sql);

$sql="insert into typesave2 values (NULL,'','13','1','$input131','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);
$sql="insert into typesave2 values (NULL,'','13','2','$input132','$Idrefer','$Month1','$Yearsend1','')";
$query=mysql_query($sql);

?>
<script langquage='javascript'>
window.location="report52edit.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="report52edit.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>นโยบายที่ 13 แผนที่ข้อมูลระบบสุขภาพและพื้นที่เสี่ยง</strong></div></td>      </tr>
	  
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      จำนวนครั้งการเข้าถึงบริการ Bangkok health map ด้วยระบบเทคโนโลยีสารสนเทศ<span class="style28">*</span><br>
          <br>
จำนวน
<input type="number" name="input131" id="num1" min="0" onKeyUp="NumChk()" width="25" value="<?=$row131[Detail]?>" required>
ครั้ง<br></td>
      </tr>
	  <tr>
	    <td bgcolor="#FFFFFF"><br>
	      แผนการพัฒนางาน (ถ้ามี)<br>
          <br>
          <textarea name="input132" style="width:100%"><?=$row132[Detail]?></textarea>
        <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" value="<?=$row1[Namesave]?>" required></td>
      </tr>
	  <tr>
        <td bgcolor="#FFFFFF">เบอร์โทรศัพท์<span class="style28">*
          <input type="text" name="inputtel" id="inputtel" width="350" value="<?=$row1[Tel]?>" required>
        </span></td>
      </tr>
	  <tr>
        <td bgcolor="#FFFFFF">ตำแหน่ง<span class="style28">*
          <input type="text" name="inputposition" id="inputposition" width="350" value="<?=$row1[Position]?>" 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