<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <? require("connect.php"); ?> <script type="text/javascript" src="jquery-1.11.1.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#add_item').click(function(){ $('#mytbl tbody tr ').last().clone().appendTo('#mytbl tbody'); }); }); function doRemoveItem(obj){ if($('#mytbl tbody tr').size() > 1){ if(confirm('คุณต้องการลบแถวนี้?')) $(obj).parent().parent().remove(); }else{ alert('ไม่อนุญาตให้ลบแถวที่เหลือนี้ได้'); } } </script> <table align="center" width="1150" border="0" cellspacing="0" cellpadding="0"> <tr> <td><? require('head.php') ?></td> </tr> <tr height="300"> <td bgcolor="#F8F8F8" height="300"align="center"> <form name="form1" method="post" action="budget_saveadddetail.php"> <?php $detailid = $_GET["adddetail"]; $yearid = " SELECT * FROM tbbudgetcategory, tbbudgetyear, tbbudgettype where tbbudgetcategory.BudgettypeID = tbbudgettype.BudgettypeID AND tbbudgetcategory.BudgetyearID = tbbudgetyear.BudgetyearID AND tbbudgetcategory.BudgetcategoryID like '$detailid'"; $result=mysql_query($yearid); while ($r=mysql_fetch_array($result)) { ?> <table width="956" height="134" border="1"> <tr> <td width="201">ปีงบประมาณ</td> <td colspan="4"> <?=$r["Budgetyear"]?></td> </tr> <tr> <td>หมวดหมู่</td> <td width="201"><?=$r["Budgettype"]?></td> <td colspan="2">จำนวนเงินในหมวด</td> <td width="221"><?=$r["Budgetcategoryamount"]?></td> </tr> <?php } ?> <tr> <td align="left">รายการ</td> <td align="left">จำนวนเงิน</td> <td colspan="2" align="left">ประเภทแหล่งเงิน</td> <td>หน่ยวงานที่รับผิดชอบ (ถ้ามี)</td> </tr> </table> <table width="956" border="1" id = "mytbl"> <tbody> <tr> <td width="202"><label for="textfield2"></label> <input type="text" name="textfield2" id="textfield2"></td> <td width="200"><label for="textfield2"></label> <input type="text" name="textfield3" id="textfield3"></td> <td colspan="2" align="left"><p> <label> <input type="radio" name="RadioGroup1" value="radio1" id="RadioGroup1_0"> งบแผ่นดิน</label> <br> <label> <input type="radio" name="RadioGroup1" value="radio2" id="RadioGroup1_1"> งบผลประโยชน์ </label><br> </p> </td> <td width="179"><label for="textfield"></label> <input type="text" name="textfield" id="textfield"></td> <td width="36"><button onClick="javascript:doRemoveItem(this);" style="width:22px;">-</button></td> </tr> </table> <table width="956" border="1"> <tr> <td align="left"> <button type="button" id="add_item" name="button"> <img src="picture/add.png" width="16" height="16" align="absmiddle" />เพิ่มรายการ </button></td> </tr> </table> <p> </p> <p> <input type="submit" name="button" id="button3" value="ตกลง" /> <input name="edit_id" type="hidden" id="edit_id" value="<?=$_REQUEST['adddetail']?>" /> <input type ="reset" name="button2" id="button4" value="ยกเลิก" /> </p> <p> </p> </form></td></tr></table> <p><? require("footer.php");?> </p> </html>
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <? require("connect.php"); ?> <script type="text/javascript" src="jquery-1.11.1.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#add_item').click(function(){ $('#mytbl tbody tr ').last().clone().appendTo('#mytbl tbody'); }); }); function doRemoveItem(obj){ if($('#mytbl tbody tr').size() > 1){ if(confirm('คุณต้องการลบแถวนี้?')) $(obj).parent().parent().remove(); }else{ alert('ไม่อนุญาตให้ลบแถวที่เหลือนี้ได้'); } } </script> <table align="center" width="1150" border="0" cellspacing="0" cellpadding="0"> <tr> <td><? require('head.php') ?></td> </tr> <tr height="300"> <td bgcolor="#F8F8F8" height="300"align="center"> <form name="form1" method="post" action="budget_saveadddetail.php"> <?php $detailid = $_GET["adddetail"]; $yearid = " SELECT * FROM tbbudgetcategory, tbbudgetyear, tbbudgettype where tbbudgetcategory.BudgettypeID = tbbudgettype.BudgettypeID AND tbbudgetcategory.BudgetyearID = tbbudgetyear.BudgetyearID AND tbbudgetcategory.BudgetcategoryID like '$detailid'"; $result=mysql_query($yearid); while ($r=mysql_fetch_array($result)) { ?> <table width="956" height="134" border="1"> <tr> <td width="201">ปีงบประมาณ</td> <td colspan="4"> <?=$r["Budgetyear"]?></td> </tr> <tr> <td>หมวดหมู่</td> <td width="201"><?=$r["Budgettype"]?></td> <td colspan="2">จำนวนเงินในหมวด</td> <td width="221"><?=$r["Budgetcategoryamount"]?></td> </tr> <?php } ?> <tr> <td align="left">รายการ</td> <td align="left">จำนวนเงิน</td> <td colspan="2" align="left">ประเภทแหล่งเงิน</td> <td>หน่ยวงานที่รับผิดชอบ (ถ้ามี)</td> </tr> </table> <table width="956" border="1" id = "mytbl"> <tbody> <tr> <td width="202"><label for="textfield2"></label> <input type="text" name="textfield1[]" id="textfield2"></td> <td width="200"><label for="textfield2"></label> <input type="text" name="textfield2[]" id="textfield3"></td> <td colspan="2" align="left"><p> <label> <input type="radio" name="RadioGroup1[]" value="radio1" id="1"> งบแผ่นดิน</label> <br> <label> <input type="radio" name="RadioGroup2[]" value="radio2" id="2"> งบผลประโยชน์ </label><br> </p> </td> <td width="179"><label for="textfield"></label> <input type="text" name="textfield" id="textfield"></td> <td width="36"><button onClick="javascript:doRemoveItem(this);" style="width:22px;">-</button></td> </tr> </table> <table width="956" border="1"> <tr> <td align="left"> <button type="button" id="add_item" name="button"> <img src="picture/add.png" width="16" height="16" align="absmiddle" />เพิ่มรายการ </button></td> </tr> </table> <p> </p> <p> <input type="submit" name="button" id="button3" value="ตกลง" /> <input name="edit_id" type="hidden" id="edit_id" value="<?=$_REQUEST['adddetail']?>" /> <input type ="reset" name="button2" id="button4" value="ยกเลิก" /> </p> <p> </p> </form></td></tr></table> <p><? require("footer.php");?> </p> </html>
<tbody> <tr> <td width="202"><label for="textfield2"></label> <input type="text" name="textfield2" id="textfield2"></td> <td width="200"><label for="textfield2"></label> <input type="text" name="textfield3" id="textfield3"></td> <td colspan="2" align="left"><p> <label> <input type="radio" name="RadioGroup1" value="radio1" id="RadioGroup1_0"> งบแผ่นดิน</label> <br> <label> <input type="radio" name="RadioGroup1" value="radio2" id="RadioGroup1_1"> งบผลประโยชน์ </label><br> </p> </td> <td width="179"><label for="textfield"></label> <input type="text" name="textfield" id="textfield"></td> <td width="36"><button onClick="javascript:doRemoveItem(this);" style="width:22px;">-</button></td> </tr> </tbody> </table>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง