403Webshell
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/showalladmin/ไม่ใช้/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/Menu pusdu/showalladmin/ไม่ใช้/showall6.php
<?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_6 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_6 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="..\com\pusducom657.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>
    <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_6 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_6 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="..\pharma\pusducom657.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>
   
    <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_6 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_6 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="..\lab\pusducom657.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>
   
    <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_6 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_6 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="..\strategy\pusducom657.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>
    
    <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_6 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_6 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="..\manage\pusducom657.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>
   
</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_6 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_6 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="..\insuranc\pusducom657.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>
  <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_6 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_6 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="..\massage\pusducom657.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>
    <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_6 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_6 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="..\OR\pusducom657.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>
  <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_6 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_6 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="..\plutaluang\pusducom657.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>
  <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_6 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_6 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="..\km1\pusducom657.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>

    <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_6 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_6 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="..\er\pusducom657.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>
  <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_6 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_6 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="..\supply\pusducom657.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>
  <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_6 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_6 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="..\canteen\pusducom657.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>
</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_6 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_6 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="..\lr\pusducom657.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>
   <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_6 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_6 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="..\ward\pusducom657.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>

   <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_6 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_6 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="..\opd\pusducom657.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>

   <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_6 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_6 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="..\pharmastore\pusducom657.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>
  <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_6 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_6 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="..\driver\pusducom657.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>

   <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_6 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_6 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="..\dental\pusducom657.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>
   <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_6 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_6 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="..\doctor\pusducom657.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>
  <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_6 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_6 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="..\room4\pusducom657.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>
  <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_6 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_6 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="..\xray\pusducom657.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>
  <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 --------------------------------------------------------------------------------------------->

<!-- --------------------------------------------- ˹èǧҹ·Õè 23 ----------------------------------------------------------->

<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">˹èǧҹ IC</span></p>
        <p align="left"><br>
  <?
$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
$objDB = mysql_select_db("pusducom_ic");

//*** 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="..\ic\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>
  <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>
<!----------------------------------------¨ºË¹èǧҹ·Õè 23 --------------------------------------------------------------------------------------------->
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit