ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/vijay-gases/modal/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/vijay-gases/modal/customer-view.php

<?php
include "../config/config.php";
$ids = $_GET['id'];
    $statement = $pdo->prepare("SELECT e.*,tbl_location.name FROM `tbl_customer` e LEFT JOIN tbl_location ON e.location_id=tbl_location.id  where e.cust_type=1 and e.id=".$ids);
    $statement->execute();
    $datas = $statement->fetchAll(PDO::FETCH_ASSOC);
    $totalData = $statement->rowCount();

if($totalData==1){
    
?>   
<style>
/*.modal-open .modal {
    overflow-x: hidden;
    overflow-y: hidden;
}*/
</style>
<div class="modal-dialog modal-lg" role="document" id="add_modal" style="overflow-x: hidden; overflow-y: hidden;">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title mt-0" id="myLargeModalLabel"><b>Customer Details</b></h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-top: -25px;"><i class="fa fa-times"></i></button>
            </div>
            <div id="content-div">
            
                <div class="modal-body" style="padding: 20px 40px 20px 40px;">
                    
                       <div class="row">
                           <div class="col-md-6">
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Customer Name</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['customer_name']?></div>
                               </div><br>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Company Name</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['cus_company_name']?></div>
                               </div><br>
                               <?php if($datas[0]['gst_no']!=''){ ?>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>GST NO</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['gst_no']?></div>
                               </div><br>
                               <?php } ?>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Customer Company Name</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['name']?></div>
                               </div><br>
                               <?php if($datas[0]['deposit_amount']!='0'){ ?>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Deposit Amount</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['deposit_amount']?></div>
                               </div><br><?php } if($datas[0]['cus_date']!=''){?>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Date</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=date('d-m-Y', strtotime($datas[0]['cus_date']))?></div>
                               </div><br>
                               <?php }  ?>
                           </div>
                           <div class="col-md-6">
                              
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Mobile No</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['mobile_number']?></div>
                               </div><br>
                               <?php if($datas[0]['mobile_number2']!=''){ ?>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Mobile No 2</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['mobile_number2']?></div>
                               </div><br>
                               <?php } if($datas[0]['mobile_number3']!=''){ ?>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Mobile No 3</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['mobile_number3']?></div>
                               </div><br><?php } if($datas[0]['mobile_number4']!=''){ ?>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Mobile No 4</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['mobile_number4']?></div>
                               </div><br><?php }if($datas[0]['mobile_number5']!=''){ ?>
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Mobile No 5</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['mobile_number5']?></div>
                               </div>
                               <?php } ?>
                           </div>
                       </div><br>
                       <div class="row">
                           <div class="col-md-12">
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Address</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['address']?></div>
                               </div><br>
                               
                           </div>
                       </div><br>
                       <div class="row">
                           <div class="col-md-12">
                               <div class="row">
                                   <div class="col-md-4">
                                       <b>Delivery Address</b>
                                   </div>
                                   <div class="col-md-1"><b>:</b></div>
                                   <div class="col-md-7"><?=$datas[0]['del_address']?></div>
                               </div><br>
                               
                           </div>
                       </div>
<?php } ?>
                       
                </div>
            
          
            </div>
        </div>
</div>


<style>

@media screen and (max-width: 600px) {
  .sale_view_table {
    margin-left: -14% !important;
  }
}

.sale_view_table {
  border-collapse: collapse;
  width: 100%;
  padding-right:4%;
  
}

tr:nth-child(even){background-color: #f2f2f2}
.sale_view_head_data{
        background-color: #b34923;
        color: white;
        text-align: center;
        padding-top: 5px;
        padding-bottom: 5px;
        
}
td{
    padding:10px;
}
tr:hover{
    background-color:#cccc69;
}

</style>
<?php $pdo = null; ?>

Zerion Mini Shell 1.0