?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/RefCheck.php |
<? include("header.php");?> <table width="900" border="0" align="center" cellpadding="0" cellspacing="0"> <!-- fwtable fwsrc="Untitled" fwbase="home.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --> <tr> <td width="437"><img src="images/spacer.gif" width="423" height="1" border="0" alt=""></td> <td width="17"><img src="images/spacer.gif" width="16" height="1" border="0" alt=""></td> <td width="232"><img src="images/spacer.gif" width="225" height="1" border="0" alt=""></td> <td width="325"><img src="images/spacer.gif" width="315" height="1" border="0" alt=""></td> <td width="21"><img src="images/spacer.gif" width="21" height="1" border="0" alt=""></td> <td width="10"><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td colspan="5" bgcolor="#FFFFFF"><div align="center"> <table width="981" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="228"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="center"> <? echo "$showmember"; ?></div></td> </tr> <tr> <td><img src="images/index_09.jpg" width="224" height="41" alt=""></td> </tr> <tr> <td> <? $page = $_GET['page']; $select_type="select * from productstype order by id asc"; $query_select=mysql_query($select_type); $num_rows=mysql_num_rows($query_select); if($num_rows<1){ echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>"; }else{ $select="select * from productstype order by id asc"; $q_ry = mysql_query($select); $num_rows=mysql_num_rows($q_ry); $pagesize=20; $rt=$num_rows%$pagesize; if($rt!=0) { $totalpage=floor($num_rows/$pagesize)+1; } else { $totalpage=floor($num_rows/$pagesize); $toppic_id=1; } if(empty($page)) { $page=1; } mysql_free_result($q_ry); $goto=($page-1)*$pagesize; $sql_select_mem="Select * From productstype order by id asc limit $goto,$pagesize"; $fect=mysql_query($sql_select_mem); if(!$fect) { ("ติดต่อฐานข้อมูลไม่ได้".mysql_error()); exit; } $bgcount=0; while($rows=mysql_fetch_array($fect)) { $idx =$rows['id']; $productstypecode =$rows['productstypecode']; $productstypename = $rows['productstypename']; $bgcount=$bgcount+1; $bgmod=$bgcount%2; if($bgmod==0){ $bgcolor="#E9E9E8"; }else{ $bgcolor="#FFFFFF"; } $s_num="select * from products where productstypecode = '$productstypecode'"; $query_select_num=mysql_query($s_num); $snum=mysql_num_rows($query_select_num); ?> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td height="23"> <div align="left"></div> <div align="left"></div> <div align="center"> </div> <div align="left"><img src="images/bullet/bt04.gif" width="14" height="14"><? echo "<a href=ProductList.php?PRD=$productstypecode>$productstypename</a> ($snum)"; ?></div></td> </tr> <tr> <td height="5"><img src="images/inline.jpg" width="184" height="3"></td> </tr> </table> <? } } ?> </td> </tr> <tr> <td> </td> </tr> </table></td> <td width="753"> <table width="94%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><strong><u>แจ้งการชำระเงิน</u></strong></td> </tr> <tr> <td><br> ท่านสามารถดูวิธีการชำระเงินของเว็บไซต์ได้ตามวิธีด้านล่าง และยังสามารถแจ้งได้ว่าท่านได้ชำระเงินกับเราแล้ว โดยกรอกข้อมูลตามวิธีที่ท่านได้ชำระเข้ามา รวมถึงช่วงเวลา หากท่านมีไฟล์สลิปการโอนเงินก็สามารถแนบมาพื่อยืนยันได้</td> </tr> <tr> <td> </td> </tr> <tr> <td><strong>โอนเงินผ่านธนาคาร (Bank Transfer)</strong></td> </tr> <tr> <td><strong><u>ชำระเข้าบัญชี</u></strong></td> </tr> <tr> <td> </td> </tr> <tr> <td bgcolor="#ECE7D6"><table width="747" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="108" bgcolor="#FFCCFF"><span class="style1">ธนาคาร</span></td> <td width="180" bgcolor="#FFCCFF"><span class="style1">ชื่อบัญชี</span></td> <td width="151" bgcolor="#FFCCFF"><span class="style1">ประเภทบัญชี</span></td> <td width="133" bgcolor="#FFCCFF"><span class="style1">สาขา</span></td> <td width="159" bgcolor="#FFCCFF"><span class="style1">เลขที่บัญชี</span></td> </tr> </table></td> </tr> <tr> <td> <? $page = $_GET['page']; $select_type="select * from bank order by id asc"; $query_select=mysql_query($select_type); $num_rows=mysql_num_rows($query_select); if($num_rows<1){ echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>"; }else{ $select="select * from bank order by id asc"; $q_ry = mysql_query($select); $num_rows=mysql_num_rows($q_ry); $pagesize=20; $rt=$num_rows%$pagesize; if($rt!=0) { $totalpage=floor($num_rows/$pagesize)+1; } else { $totalpage=floor($num_rows/$pagesize); $toppic_id=1; } if(empty($page)) { $page=1; } mysql_free_result($q_ry); $goto=($page-1)*$pagesize; $sql_select_mem="Select * From bank order by id asc limit $goto,$pagesize"; $fect=mysql_query($sql_select_mem); if(!$fect) { ("ติดต่อฐานข้อมูลไม่ได้".mysql_error()); exit; } $bgcount=0; while($rows=mysql_fetch_array($fect)) { $idx =$rows['id']; $accname =$rows['accname']; $bankname = $rows['bankname']; $accno = $rows['accno']; $branch = $rows['branch']; $acctype = $rows['acctype']; $bgcount=$bgcount+1; $bgmod=$bgcount%2; if($bgmod==0){ $bgcolor="#E9E9E8"; }else{ $bgcolor="#FFFFFF"; } ?> <table width="749" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="116"><? echo "$bankname"; ?></td> <td width="171"><? echo "$accname"; ?></td> <td width="156"><? echo "$acctype"; ?></td> <td width="130"><? echo "$branch"; ?></td> <td width="160"><? echo "$accno"; ?></td> </tr> </table> <? } } ?> </td> </tr> <tr> <td> </td> </tr> <tr> <td><table width="93%" border="0" cellspacing="1" cellpadding="1"> <tr> <td bgcolor="#DAD9BC"><strong>รายการตรวจสอบ</strong></td> </tr> <tr> <td> <? $sqla="select * from tb_order where refid='$_POST[refid]'"; $db_query=mysql_db_query($db,$sqla); $resulta=mysql_fetch_array($db_query); $pPrice=$resulta[pPrice]; $pNum=$resulta[pNum]; $id_cus=$resulta[id_cus]; $date=$resulta[date]; $pId=$resulta[pId]; $paystatus=$resulta[paystatus]; $sqlm="select * from member where usermem='$id_cus'"; $db_query=mysql_db_query($db,$sqlm); $resultm=mysql_fetch_array($db_query); $name=$resultm[name]; $address=$resultm[address]; $province=$resultm[province]; $zipcode=$resultm[zipcode]; $phone=$resultm[phone]; $email=$resultm[email]; ?> <table width="639" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="126" valign="top"> <div align="right">ใบสั่งซื้อเลขที่ :</div></td> <td width="506"><b><? echo "$_POST[refid]"; ?></b></td> </tr> <tr> <td valign="top"> <div align="right">ลูกค้า :</div></td> <td><? echo "$name<br>ที่อยู่ : $address $province $zipcode<br>โทรศัพท์ : $phone Email : $email"; ?></td> </tr> </table></td> </tr> <tr> <td><table width="96%" border="0" cellspacing="0" cellpadding="0"> <tr class="jobscss"> <td bgcolor="#FFFFFF">วันที่สั่งซื้อ : <? echo "$date"; ?></td> </tr> <tr class="jobscss"> <td bgcolor="#FFFFFF"> <table width="640" border="0" cellspacing="1" cellpadding="1"> <tr bgcolor="#993300"> <td width="285" bgcolor="#FFCCFF"><div align="center" class="style1">ชื่อสินค้า</div></td> <td width="97" bgcolor="#FFCCFF"><div align="center" class="style1">ราคา</div></td> <td width="120" bgcolor="#FFCCFF"><div align="center" class="style1">จำนวน</div></td> <td width="125" bgcolor="#FFCCFF"><div align="center" class="style1">รวม</div></td> </tr> </table> <? $page = $_GET['page']; $select_type="select * from tb_order where refid = '$_POST[refid]' order by id asc"; $query_select=mysql_query($select_type); $num_rows=mysql_num_rows($query_select); if($num_rows<1){ echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>"; }else{ $select="select * from tb_order where refid = '$_POST[refid]' order by id asc"; $q_ry = mysql_query($select); $num_rows=mysql_num_rows($q_ry); $pagesize=20; $rt=$num_rows%$pagesize; if($rt!=0) { $totalpage=floor($num_rows/$pagesize)+1; } else { $totalpage=floor($num_rows/$pagesize); $toppic_id=1; } if(empty($page)) { $page=1; } mysql_free_result($q_ry); $goto=($page-1)*$pagesize; $sql_select_mem="Select * From tb_order where refid = '$_POST[refid]' order by id asc limit $goto,$pagesize"; $fect=mysql_query($sql_select_mem); if(!$fect) { ("ติดต่อฐานข้อมูลไม่ได้".mysql_error()); exit; } $bgcount=0; while($rows=mysql_fetch_array($fect)) { $idxx =$rows['id']; $pPrice=$rows[pPrice]; $pNum=$rows[pNum]; $id_cus=$rows[id_cus]; $date=$rows[date]; $pId=$rows[pId]; $paystatus=$rows[paystatus]; $sqlp="select * from products where productscode='$pId'"; $db_query=mysql_db_query($db,$sqlp); $resultp=mysql_fetch_array($db_query); $productsname=$resultp[productsname]; $productsprice=$resultp[productsprice]; $bgcount=$bgcount+1; $bgmod=$bgcount%2; if($bgmod==0){ $bgcolor="#E9E9E8"; }else{ $bgcolor="#FFFFFF"; } ?> <table width="640" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="285"><? echo "$productsname"; ?></td> <td width="97"><div align="center"><? echo "$productsprice"; ?></div></td> <td width="120"><div align="center"><? echo "$pNum"; ?></div></td> <td width="125"><div align="center"> <? $sum1 = $productsprice*$pNum; echo "$sum1"; ?> </div></td> </tr> </table> <? $sum2 = $sum2+$sum1; } } ?> </td> </tr> <tr class="jobscss"> <td height="19"><table width="640" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="508"><div align="right"><strong>รวมเงินที่ชำระ :</strong> </div></td> <td width="125"><div align="center"><? echo "<b>$sum2</b>"; ?></div></td> </tr> </table></td> </tr> <tr class="jobscss"> <td><strong><span class="maekhawtom">หน้าที่ :</span></strong> <span class="maekhawtom"> <? for($i=1;$i<$page;$i++) { echo"[<a href='$PHP_SELF?page=$i'>$i</a>]"; } echo"[<b>$page</b>]"; for($i=$page+1;$i<=$totalpage;$i++) { echo"[<a href='$PHP_SELF?page=$i'>$i</a>]"; } ?> </span><span class="maekhawtom"> </span></td> </tr> <tr> <td><div align="center"><br> </div></td> </tr> </table></td> </tr> <tr> <td bgcolor="#DAD9BC"><strong>ชำระเงิน </strong></td> </tr> <tr> <td><table width="640" border="0" cellspacing="1" cellpadding="1"> <form method="post" action="PayNow.php"> <tr> <td width="115" height="20"> <div align="right">วันที่ชำระ :</div></td> <td width="518"> <input name="datepay" type="text" class="inputxx" value=<? echo "$e_date"; ?> size="30"> <em>ext : 12/10/2553</em></td> </tr> <tr> <td><div align="right">เวลาที่ชำระ :</div></td> <td> <input name="timepay" type="text" class="inputxx" id="timepay" value=<? echo "$etime"; ?> size="30"> น. <em>ext : 15:25:10</em></td> </tr> <tr> <td><div align="right">จำนวนเงิน :</div></td> <td> <input name="price" type="text" class="inputxx" id="price" value=<? echo "$sum2"; ?> size="30"> บาท <input name="refid" type="hidden" id="refid22" value=<? echo "$_POST[refid]"; ?>> <input type="hidden" name="usermem" value=<? echo "$id_cus"; ?>> </td> </tr> <tr> <td> </td> <td> <input name="submit2" type="submit" class="submitxx" value="ยืนยันการชำระเงิน"> </td> </tr> </form> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> </div></td> <td><img src="images/spacer.gif" width="1" height="25" border="0" alt=""></td> </tr> </table><? include("footer.php");?> </body> </html>