? 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/happyezystyle/
File Upload :
Current File : /home/admin/public_html/old/happyezystyle/Services.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="245"><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="241" height="49" 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>&nbsp;</td>
                </tr>
                <tr> 
                  <td bgcolor="#EAE4C7"><strong>
                    สินค้าขายดี 10 อันดับ</strong></td>
                </tr>
                <tr> 
                  <td> 
                    <?
$pages = $_GET['pages'];
$select_types="select * from products  order by id asc";
$query_selects=mysql_query($select_types);
$num_rowss=mysql_num_rows($query_selects);

if($num_rowss<1){
echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>";
}else{
		$selects="select * from products order by id asc";
		$q_rys = mysql_query($selects);
	 	$num_rowss=mysql_num_rows($q_rys);
  		$pagesizes=10;
		$rts=$num_rowss%$pagesizes;
		if($rts!=0)
			{
				$totalpages=floor($num_rowss/$pagesizes)+1;
			}
		else
			{
				$totalpages=floor($num_rows/$pagesizes);
				$toppic_ids=1;
			}
		if(empty($pages))
			{
				$pages=1;
			}
		mysql_free_result($q_rys);
		$gotos=($pages-1)*$pagesizes;
$sql_select_mems="Select * From products  order by stats desc limit $gotos,$pagesizes";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("ติดต่อฐานข้อมูลไม่ได้".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow = $rowss['productsname'];
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                    <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=ShowProducts.php?PrdID=$idxs>$productsNameShow</a> ($stats เครื่อง)"; ?></div></td>
                      </tr>
                      <tr> 
                        <td height="5"><img src="images/inline.jpg" width="184" height="3"></td>
                      </tr>
                    </table>
                    <?
}
}
?>                  </td>
                </tr>
                <tr> 
                  <td><div align="center"><a href="https://www.paysbuy.com/signup.aspx" target="_blank"><br>
                      </a></div></td>
                </tr>
                
            </table></td>
            <td width="488"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr> 
                  <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                      <tr> 
                        <td bgcolor="#FFFFFF"><strong>
                          ตรวจสอบสถานะปัญหา</strong></td>
                      </tr>
                      <tr> 
                        <td>&nbsp;</td>
                      </tr>
                      <tr> 
                        <td> <div align="center"> 
                            <script language="JavaScript">
function checkRef1()
{
      var spid = document.webFormRef1.spid.value;

  if( spid.length ==0)
           {
           alert("กรุณาใส่เลขที่ใบสั่งซื้อด้วยค่ะ");
           document.webFormRef1.spid.focus();           
           return false;
           }
         else
           return true;
}
</script>
                            <table width="342" border="0" align="center" cellpadding="1" cellspacing="1">
                              <form method="post" action="CheckServicesNow.php" name="webFormRef1" onSubmit="return checkRef1()">
                                <tr> 
                                  <td width="121"><div align="right">ใบสั่งซื้อเลขที่ 
                                      :</div></td>
                                  <td width="214"> 
                                    <input name="spid" type="text" class="inputxx" id="spid" size="20">                                    </td>
                                </tr>
                                <tr> 
                                  <td>&nbsp;</td>
                                  <td><input name="submit" type="submit" class="submitxx" value="ตรวจสอบ"></td>
                                </tr>
                              </form>
                            </table>
                          </div></td>
                      </tr>
                    </table></td>
                </tr>
                <tr>
                  <td><strong>ติดต่อเรา</strong></td>
                </tr>
                <tr> 
                  <td><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                      <form method="post" action="ServicesSave.php" enctype="multipart/form-data"  name="webFormprd" onSubmit="return checkprd()">
                        <tr bgcolor="#FFFFFF"> 
                          <td> <div align="right">ประเภทสินค้า</div></td>
                          <td> 
                            <?php
$sql2 = "select * From productstype";
$result2 = mysql_query($sql2);
$Num_Rows2 = mysql_num_rows($result2);
$result2 = mysql_query($sql2);
echo "<select name=productstypecode id=productstypecode class=input>";
echo "<option value=0>เลือกประเภทสินค้า";
While($row2= mysql_fetch_array($result2)){
$productstypecode  = $row2["productstypecode"];
$productstypename = $row2["productstypename"];

?>
                            <option value=<? echo "$productstypecode"; ?> ><? echo "$productstypecode"; ?>-<? echo "$productstypename"; ?> 
                            <? 
   } 
   echo "</option></select>";
   ?>
                            </td>
                        </tr>
                        <tr bgcolor="#FFFFFF"> 
                          <td width="110"> <div align="right">รหัสรายการปัญหา 
                              :</div></td>
                          <td width="367"> 
                            <?
						  $sql_numcode="select * from services";
						  $db_queryr=mysql_db_query($db,$sql_numcode);
						  $result_numcode=mysql_fetch_array($db_queryr);
						  $num_rows_code=mysql_num_rows($db_queryr);
						  $run_number = $num_rows_code+1;
						  echo "<b>SP$run_number</b><input type=hidden name=spid value='SP$run_number'>";
						  ?>                            </td>
                        </tr>
                        <tr bgcolor="#FFFFFF"> 
                          <td> <div align="right">หัวข้อ :</div></td>
                          <td><select name="topic" class="inputx" id="topic">
                            <option selected>เลือกหัวข้อปัญหา</option>
                            <option value="ปัญหาด้านบริการ">ปัญหาด้านบริการ</option>
                            <option value="ปัญหาด้านวิธีใช้">ปัญหาด้านวิธีใช้</option>
                            <option value="ปัญหาด้านตัวสินค้า">ปัญหาด้านตัวสินค้า</option>
                            <option value="ปัญหาอุปกรณ์เสริม">ปัญหาอุปกรณ์เสริม</option>
                            <option value="อื่น ๆ">อื่น ๆ</option>
                                                                              </select></td>
                        </tr>
                        <tr bgcolor="#FFFFFF"> 
                          <td valign="top"> <div align="right">รายละเอียด 
                              :</div></td>
                          <td> 
                            <textarea name="message" cols="50" rows="10" class="input" id="message"></textarea>                            </td>
                        </tr>
                        <tr bgcolor="#FFFFFF"> 
                          <td><div align="right"></div></td>
                          <td> 
                            <input name="submit2" type="submit" class="submit" value="ส่งข้อมูล!">                            </td>
                        </tr>
                      </form>
                  </table></td>
                </tr>
              </table></td>
            <td width="267"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr> 
                  <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                      <tr> 
                        <td><img src="images/hr1.jpg" width="197" height="23"></td>
                      </tr>
                      <tr> 
                        <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                            <tr> 
                              <td> <img src="images/arrow.gif" width="7" height="8"> 
                                <a href="ReviewProducts.php">สินค้าโปรโมชั่น</a> 
                                <img src="images/gif_new.gif" width="26" height="12">                                </td>
                            </tr>
                            <tr> 
                              <td><img src="images/arrow.gif" width="7" height="8"> 
                                ค้นหาสินค้าที่ต้องการ                                </td>
                            </tr>
                            <tr> 
                              <td> <script language="JavaScript">
function checksearch()
{
      var s1 = document.webFormSearch.txtsearch.value;

  if( s1.length ==0)
           {
           alert("กรุณาใส่คำที่ค้นหาด้วยค่ะ");
           document.webFormSearch.txtsearch.focus();           
           return false;
           }
         else
           return true;
}
</script> <table width="100%" border="0" cellspacing="1" cellpadding="1">
                                  <form method="post" action="Search.php" name="webFormSearch" onSubmit="return checksearch()">
                                    <tr> 
                                      <td width="87%"> <div align="right"> 
                                          <input name="txtsearch" type="text" class="inputxx" id="txtsearch" onClick="this.value='';" value="ค้นหาสินค้า" maxlength="15" />
                                        </div></td>
                                      <td width="13%"><input name="image" type=image src="images/icon_search.jpg" width="23" height="23" scr=images/icon_search.jpg></td>
                                    </tr>
                                    <tr> 
                                      <td><div align="right">  
                                          <input name="typesearch" type="radio" value="productscode" checked>
                                          รหัสสินค้า 
                                          <input type="radio" name="typesearch" value="productsname">
                                          ชื่อสินค้า </div></td>
                                      <td>&nbsp;</td>
                                    </tr>
                                  </form>
                                </table></td>
                            </tr>
                            <tr> 
                              <td><img src="images/arrow.gif" width="7" height="8"> 
                                <a href="ConfirmPayment.php">แจ้งการชำระเงินได้ที่นี่</a></td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr> 
                        <td><img src="images/hr2.jpg" width="197" height="23"></td>
                      </tr>
                      <tr> 
                        <td><img src="images/arrow4.gif" width="4" height="9"> 
                          ท่านสามารถตรวจสอบรายการสั่งซื้อได้ที่นี่</td>
                      </tr>
                      <tr> 
                        <td><script language="JavaScript">
function checkOrder()
{
      var o1 = document.webFormOrder.orderid.value;

  if( o1.length ==0)
           {
           alert("กรุณาใส่คำที่ค้นหาด้วยค่ะ");
           document.webFormOrder.orderid.focus();           
           return false;
           }
         else
           return true;
}
</script> <table width="100%" border="0" cellspacing="1" cellpadding="1">
                            <form method="post" action="CheckRefID.php" name="webFormOrder" onSubmit="return checkOrder()">
                              <tr> 
                                <td><div align="center"> 
                                    <input name="orderid" type="text" class="inputxx" id="orderid" onClick="this.value='';" value="เลขใบสั่งซื้อสินค้า" maxlength="15" />
                                  </div></td>
                              </tr>
                              <tr> 
                                <td><div align="center"> 
                                    <input name="image" type="image" src="images/checked.jpg">
                                  </div></td>
                              </tr>
                            </form>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td bgcolor="#EAE4C7"><strong>
                    สินค้า 10 อันดับล่าสุด</strong></td>
                </tr>
                <tr> 
                  <td> 
                    <?
$page1 = $_GET['page1'];
$select_type1="select * from products  order by id asc";
$query_select1=mysql_query($select_type1);
$num_rows1=mysql_num_rows($query_select1);

if($num_rows1<1){
echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>";
}else{
		$select1="select * from products  order by id asc";
		$q_ry1 = mysql_query($select1);
	 	$num_rows1=mysql_num_rows($q_ry1);
  		$pagesize1=10;
		$rt1=$num_rows1%$pagesize1;
		if($rt1!=0)
			{
				$totalpage1=floor($num_rows1/$pagesize1)+1;
			}
		else
			{
				$totalpage1=floor($num_rows1/$pagesize1);
				$toppic_id1=1;
			}
		if(empty($page1))
			{
				$page1=1;
			}
		mysql_free_result($q_ry1);
		$goto1=($page1-1)*$pagesize1;
$sql_select_mem1="Select * From products  order by id desc limit $goto1,$pagesize1";
		$fect1=mysql_query($sql_select_mem1);
		if(!$fect1)
		{
		("ติดต่อฐานข้อมูลไม่ได้".mysql_error());
		exit;
		}

	  $bgcount1=0;
	while($rows1=mysql_fetch_array($fect1))
	{
$idxx =$rows1['id'];
$products_name = $rows1['productsname'];
$bgcount1=$bgcount1+1;
$bgmod1=$bgcount1%2;
if($bgmod1==0){
	$bgcolor1="#E9E9E8";
}else{
	$bgcolo1r="#FFFFFF";
}
	?>
                    <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/opened.gif" width="17" height="17"> 
                            <? echo "<a href=ShowProducts.php?PrdID=$idxx>$products_name</a>"; ?></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>
          </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:~$