<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>ThaiCreate.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> </head> <body> <table width="100%" border="1"> <tr> <td colspan="2"><div align="center"> <!-- Header --> <?php include("header.php"); ?> </div></td> </tr> <tr> <td width="24%"><div align="center"> <!-- Menu --> <?php include("menu.php"); ?> </div></td> <td width="76%"> <!-- Container --> <?php switch ($_GET["page"]) { case "home": echo "Home"; include("page_home.php"); break; case "service": echo "Home -> Member"; include("page_service.php"); break; case "product": echo "Home -> Product"; include("page_product.php"); break; case "aboutus": echo "Home -> About Us"; include("page_aboutus.php"); break; case "contactus": echo "Home -> Contact Us"; include("page_contactus.php"); break; } ?> </td> </tr> <tr> <td colspan="2"><div align="center"> <!-- Footer --> <?php include("footer.php"); ?> </div></td> </tr> </table> </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Card_Member</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <script language="JavaScript"> function chkConfirm() { if(confirm('ยืนยันการแก้ไข ?')==true) { return true; } else { return false; } } </script> </head> <body onload="document.getElementById('txtTest').focus()"> <form name="frmSearch" method="get" action="<?php echo $_SERVER['PHP_SELF'];?>"> <br><table width="500" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <th>เลขที่สมาชิก : <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_GET["txtKeyword"];?>" size="0" maxlength="8"> <input type="submit" value="ค้นหา"></th> </tr> </table> </form> <?php $dsn = "Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=c:\\agcobcad\\database;Exclusive=NO;collate=Machine;NULL=NO;DELETED=YES;BACKGROUNDFETCH=NO;"; $objConnect = odbc_connect($dsn,"","") or die("can not connect"); $keyword=$_GET["txtKeyword"]; //*** Update Condition ***// if($_GET["Action"] == "Save"){ for($i=1; $i<=$_POST["hdnLine"]; $i++) { $strSQL = "UPDATE t_print_book SET "; $strSQL .="isstatus = '".$_POST["sex$i"]."' "; $strSQL .="WHERE memberid = '".$_POST["hdnCustomerID$i"]."' and trandate = '".$_POST["CountryCode$i"]."' "; $objExec = odbc_exec($objConnect, $strSQL); } } if(empty($keyword)) exit; $strSQL = "SELECT * FROM t_print_book WHERE memberid LIKE '%{$keyword}%' and contractid=' ' "; $objExec = odbc_exec($objConnect, $strSQL) or die ("Error Execute [".$strSQL."]"); ?> <br><form name="frmMain" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?Action=Save"> <table width="500" border="1" align="center"> <tr> <th width="100"> <span class="style2">ลำดับ</span> </th> <th width="100"> <span class="style3">เลขสมาชิก</span> </th> <th width="100"> วันเดือนปี </th> <th width="50"> สถานะ </th> <th width="150"> N ใช้ O ไม่ </th> </tr> <? $i =0; while($objResult = odbc_fetch_array($objExec)){ $i = $i + 1; ?> <tr> <td align="center"><input type="hidden" name="hdnCustomerID<?=++$i;?>" size="5" value="<?=$objResult["memberid"];?>"> <?=$objResult["lineid"];?></td> <td align="center"><?=$objResult["memberid"];?></td> <td align="center"><input type="text" name="CountryCode<?=$i;?>" size="8" style="border:0px; text-align:center;"value="<?php echo $objResult["trandate"];?>"readonly="true"></td> <td align="center"><input type="text" name="txtUsed<?=$i;?>" size="4" style="border:0px; text-align:center;" value="<?php echo $objResult["isstatus"];?>" /> <td align="center"><input type="radio" name="sex<?=$i;?>" value="O"checked="checked" />O <input type="radio" name="sex<?=$i;?>" value="N">N <? } ?> </table align="center"> <table width="500" border="0" align="center"> <tr> <td><div align="center"> <br><input type="submit" name="submit" value="Submit"> <input type="reset" name="Reset" value="Reset"> <input type="hidden" name="hdnLine" value="<?=$i;?>"> </div></td> </tr> </table> </form> <?php odbc_close($objConnect); ?> </body> </html>
<form name="frmSearch" method="get" action="?page=service">
page_service.php
<td align="right"><a href="index.php?page=service">Member</a> : </td>
<form name="frmSearch" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>?page=service"> <form name="frmSearch" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>?page๘service"> <form name="frmSearch" method="get" action="?page=service">
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง