| Server IP : 134.236.49.22 / Your IP : 216.73.216.114 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/Menu pusdu/ |
Upload File : |
<?php
$ebits = ini_get('error_reporting');
error_reporting($ebits ^ E_NOTICE);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<title>ระบบใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10</title>
<style type="text/css">
<!--
.style6 {color: #FF0000}
.style7 {color: #FF3333}
-->
</style>
</head>
<body>
<!-- --------------------------------------------- หน่วยงานที่ 1 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน สารสนเทศทางการแพทย์ศูนย์คอมพิวเตอร์และข้อมูล </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_com");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
<center>
__________________________________________________________________________________________________________
</center>
</p>
<!-- --------------------------------------------- จบหน่วยงานที่ 1 ----------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 2 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน เภสัชกรรม </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_pharma");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 2 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 3 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน ชันสูตร </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_lab");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 3 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 4 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน ยุทธศาสตร์ </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_yuth");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 4 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 5 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน บริหารทั่วไป </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_manage");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 5 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 6 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน ประกันสุขภาพ </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_insure");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 6 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 7 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน แพทย์แผนไทย </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_massage");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 7 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 8 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน ห้องผ่าตัด </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_or");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 8 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 9 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน pcu พลูตาหลวง </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_pcu");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 9 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 10 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน ศูนย์สุขภาพชุมชนตำบลสัตหีบ </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_km1");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 10 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 11 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">หน่วยงาน ห้องฉุกเฉิน </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_er");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 11 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 12 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">ห้องซักฟอกหน่วยจ่ายกลาง </span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_supply");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 12 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 13 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">โภชนาการ</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_canteen");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 13 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 14 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">ห้องคลอด</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_lr");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 14 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 15 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">ผู้ป่วยใน</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_ward");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 15 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 16----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">ผู้ป่วยนอก</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_opd");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 16 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 17 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">คลังยา</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_pharsto");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 17 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 18 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">ห้องคนขับรถ</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_driver");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 18 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 19 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">ทันตกรรม</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_dent");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 19 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 20 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">ห้องพักแพทย์</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_doctor");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 20 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 21 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">คลินิกพิเศษ</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_room4");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 21 --------------------------------------------------------------------------------------------->
<!-- --------------------------------------------- หน่วยงานที่ 22 ----------------------------------------------------------->
<div align="center">
<table width="728" border="0">
<tr>
<td width="722" height="83"><p align="center">
<br>
ใบเบิกพัสดุโรงพยาบาลสัตหีบ กม.10<br>
เดือน มกราคม 2557 <br>
<span class="style7">ห้อง X-ray</span></p>
<p align="left"><br>
<?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_xray");
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
mysql_query("Set names 'tis620'");
$strSQL = "UPDATE Month_1 SET ";
$strSQL .="Seq = '".$_POST["txtSeq$i"]."' ";
//$strSQL .=",Item = '".$_POST["txtItem$i"]."' ";
//$strSQL .=",Unit = '".$_POST["txtUnit$i"]."' ";
$strSQL .=",Req_num = '".$_POST["txtReq_num$i"]."' ";
$strSQL .=",Allow = '".$_POST["txtAllow$i"]."' ";
$strSQL .=",Pay = '".$_POST["txtPay$i"]."' ";
$strSQL .=",Oneprice = '".$_POST["txtOneprice$i"]."' ";
$strSQL .=",Totalprice = '".$_POST["txtTotalprice$i"]."' ";
$strSQL .="WHERE Seq = '".$_POST["hdnSeq$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$strSQL = "SELECT * FROM Month_1 WHERE Req_num > 0 ORDER BY Id_num ASC";
mysql_query("Set names 'tis620'");
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p></td>
</tr>
</table>
</div>
<form name="frmMain" method="post" action="pusducom157.php?Action=Save">
<table width="731" height="155" border="1" align="center">
<tr>
<th width="59" rowspan="2"> <div align="center">ลำดับที่</div></th>
<th width="301" rowspan="2"> <div align="center">รายการ </div></th>
<th width="76" rowspan="2"> <div align="center">หน่วยนับ </div></th>
<th width="108" rowspan="2"> <div align="center">จำนวนที่<br>
ต้องการเบิก </div></th>
<th height="48" colspan="4"> <div align="center" class="style6">ช่องนี้สำหรับ<br>
เจ้าหน้าที่ศูนย์คอม</div> </th>
</tr>
<tr>
<th height="26">อนุญาติให้<br>
เบิกได้</th>
<th>จ่ายจริง</th>
<th>ราคาต่อ<br>
หน่วย</th>
<th>ราคารวม</th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
$i = $i + 1;
?>
<tr>
<td><div align="center">
<input type="hidden" name="hdnSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
<input type="text" name="txtSeq<?=$i;?>" size="1" value="<?=$objResult["Seq"];?>">
</div></td>
<td><div align="left"><input type="text" name="txtItem<?=$i;?>" size="50" value="<?=$objResult["Item"];?>"></div></td>
<td><div align="center"><input type="text" name="txtUnit<?=$i;?>" size="3" value="<?=$objResult["Unit"];?>"></div></td>
<td><div align="center"><input type="text" name="txtReq_num<?=$i;?>" size="2" value="<?=$objResult["Req_num"];?>"></div></td>
<td width="84" align="center"><input type="text" name="txtAllow<?=$i;?>" size="5" value="<?=$objResult["Allow"];?>"></td>
<td><div align="center"><input type="text" name="txtPay<?=$i;?>" size="5" value="<?=$objResult["Pay"];?>"></div></td>
<td><div align="center"><input type="text" name="txtOneprice<?=$i;?>" size="5" value="<?=$objResult["Oneprice"];?>"></div></td>
<td><div align="center"><input type="text" name="txtTotalprice<?=$i;?>" size="5" value="<?=$objResult["Totalprice"];?>"></div></td>
</tr>
<?
}
?>
</table>
<left>
<br>
<span class="style6">* รายการทั้งหมดเป็นรายการพัสดุ หากต้องการเบิกคุรุภัณฑ์คอมพิวเตอร์ กรุณาเขียนใบเบิกแทน</span><br>
<span class="style6">* หากพัสดุที่หน่วยงานใดต้องการเบิกไม่มีในรายการ กรุณาแจ้งศูนย์คอมพิวเตอร์และข้อมูล</span><br><br>
</left>
<center>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="hdnLine" value="<?=$i;?>">
</center>
</form>
<p>
<?
mysql_close($objConnect);
?>
</p>
<center>
__________________________________________________________________________________________________________
</center>
<!----------------------------------------จบหน่วยงานที่ 22 --------------------------------------------------------------------------------------------->
</body>
</html>