Hacked By AnonymousFox
<?
include("lib/config.php");
include("lib/connect.php");
include("lib/session.php");
$Id=$_GET["Id"];
$action=$_GET["action"];
$sql2="select * from hospital where Id='$Id'";
$query2=mysql_query($sql2);
$row2=mysql_fetch_array($query2);
$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);
}
?>
<!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="stylesheet" type="text/css" href="css/splash.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;
}
</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></head>
<body>
<? if($action=="addnew"){
$sql="insert into hospital values (NULL,'$inputname','$inputzone','$inputtype','0')";
$query=mysql_query($sql);
?>
<script langquage='javascript'>
window.location="addnew.php?action=complete";
</script>
<?
}
?>
<div class="pages_container">
<div align="center"><strong><img src="logo.jpg" height="100"><br>
ส่วนของผู้ดูแลระบบ</strong><br>
<span class="h5"> <strong>รายงานผลการดำเนินงานตามแผนกลยุทธ์การขับเคลื่อนเขตสุขภาพกรุงเทพมหานคร (Bangkok Health Zoning)</strong> </span></div>
<br />
<h4 align="right"><span class="page_title">ยินดีต้อนรับ !
<?=$System_Session_FullName?> เข้าสู่ระบบ
<input type="submit" name="button" id="button" class="inputlogin" value="ออกจากระบบ" onclick="window.location='system/logout.php'" /></span></h4>
<blockquote><a href="home.php">หน้าหลัก</a> / ระบบการจัดการข้อมูลผู้บันทึกข้อมูล / เพิ่มข้อมูลใหม่ </blockquote>
<input type="submit" name="button22" id="button22" class="inputlogin" value="กลับหน้าหลัก" onClick="window.location='home1.php'" />
<br />
<?php if($action=="complete"){?><blockquote><strong></strong>
<div align="center"><strong><font color="#006600">บันทึกข้อมูลเรียบร้อยแล้ว</font></strong></div>
<strong></strong></blockquote>
<?php } ?>
<form action="addnew.php?action=addnew" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td bgcolor="#FFFFFF"> <table width="100%" height="24" border="0" cellpadding="3" cellspacing="0" class="table_button_bottom2">
</table>
<table width="100%" border="1" cellpadding="1" cellspacing="1" style="border-collapse:collapse" bordercolor="#CCCCCC">
<tr align="center" bgcolor="#083d69">
<td width="209" bgcolor="#C6ECD9"><strong>ชื่อหน่วยงาน</strong></td>
<td width="946" height="30" bgcolor="#FFFFFF"><div align="left"><span class="text_bold">
</span>
<input name="inputname" type="text" size="100" value="<?=$row2[Name]?>">
</div></td>
</tr>
<tr>
<td height="46" valign="middle" bgcolor="#C6ECD9"><div align="center"><font class="TableHead"><strong>Zone</strong></font></div></td>
<td height="46" ><div align="left"><span class="text_bold">
</span>
<select name="inputzone" id="inputzone">
<option value="1" <? if($row2[Zone]==1){?> selected="selected"<? } ?>>1</option>
<option value="2" <? if($row2[Zone]==2){?> selected="selected"<? } ?>>2</option>
<option value="3" <? if($row2[Zone]==3){?> selected="selected"<? } ?>>3</option>
<option value="4" <? if($row2[Zone]==4){?> selected="selected"<? } ?>>4</option>
<option value="5" <? if($row2[Zone]==5){?> selected="selected"<? } ?>>5</option>
<option value="6" <? if($row2[Zone]==6){?> selected="selected"<? } ?>>6</option>
<option value="7" <? if($row2[Zone]==7){?> selected="selected"<? } ?>>7</option>
</select>
<br>
</div></td>
</tr>
<tr>
<td height="46" valign="middle" bgcolor="#C6ECD9"><div align="center"><strong>ประเภท</strong></div></td>
<td height="46" ><select name="inputtype" id="inputtype">
<option value="1" <? if($row2[Zone]==1){?> selected="selected"<? } ?>>โรงพยาบาล</option>
<option value="2" <? if($row2[Zone]==2){?> selected="selected"<? } ?>>ศูนย์บริการสาธารณสุข</option>
<option value="3" <? if($row2[Zone]==3){?> selected="selected"<? } ?>>สำนักงานเขต</option>
</select></td>
</tr>
<tr>
<td height="46" colspan="2" valign="middle"><div align="center"><span class="page_title">
<input type="submit" name="button2" id="button2" class="inputlogin" value="บันทึกข้อมูล" />
</span></div></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td></tr>
</table>
</td>
</tr>
</table>
</div><br />
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox