ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/public_html/vijay-gases/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/public_html/vijay-gases/sales.php

<?php  include "header.php";?>


<?php $data_table_content = "var search_table =$('#search_table').val();
                                var installed_from_date =$('#installed_from_date').val();
                                var installed_to_date =$('#installed_to_date').val();
                                var cy_status = $('#cy_status').val();
                                var location_id = $('#location_id').val();
                                
                                console.log(location_id);
                             var table = $('#StData').DataTable({
                
                                    'ajax' : { 
                                        url: 'data-tables/sales-data-table.php', 
                                        data:{search:search_table,installed_from_date:installed_from_date,installed_to_date:installed_to_date,cy_status:cy_status,location_id:location_id}, 
                                        type: 'POST'},
                                        bFilter: true,
                                        bDestroy: true,
                                        searching: true,
                                    'buttons': [
                                    { extend: 'copyHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] } },
                                    { extend: 'excelHtml5', 'footer': false, exportOptions: { columns: [0, 1, 2, 3, 4, 5, 6, 7, 8 ] } },
                                    { extend: 'csvHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] } },
                                    { extend: 'pdfHtml5', orientation: 'landscape', pageSize: 'A4', 'footer': false,
                                    exportOptions: { columns: [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] } },
                                    { extend: 'colvis', text: 'Columns'},
                                    ]
                
                                });";?>

  
<div class="content-wrapper">
    	       
        <div class="col-lg-12 alerts">
            <div id="custom-alerts" style="display:none;">
                <div class="alert alert-dismissable">
                    <div class="custom-msg"></div>
                </div>
            </div>
            <?php if ($error)  { ?>
            <div class="alert alert-danger alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-ban"></i> Error</h4>
                <?= $error; ?>
            </div>
            <?php } if ($warning) { ?>
            <div class="alert alert-warning alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-warning"></i> Warning</h4>
                <?= $warning; ?>
            </div>
            <?php } if ($message) { ?>
            <div class="alert alert-success alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4>    <i class="icon fa fa-check"></i> Success</h4>
                <?= $site_name; ?>
            </div>
            <?php } ?>
        </div>
        <div class="clearfix"></div>

<script type="text/javascript">
    $(document).ready(function() {        
        emp_data();
        function emp_data(){
             <?=$data_table_content?>
        }

        $('#search_table').keyup(function() {  
           
            <?=$data_table_content?>
            document.getElementById("search_table").focus();
        });
        
         $('#installed_from_date,#installed_to_date').change(function() {
            emp_data();
        });
         $('#cy_status').change(function() {
            emp_data();
        });
        
         $('#location_id').change(function() {
            emp_data();
        });

    });
    function delete_users(id){
            var result = confirm("Confirm Want to Delete This User?");
            if (result) {
                    $.ajax({
                    type: 'POST',
                    url: 'api/delete.php',
                    data: {type:'user_delete',delete_id:id},                  
                    success: function(response) {
                        console.log(response); 
                        emp_datas();
                    }
                });
            }
         }
         function emp_datas(){
             <?=$data_table_content?>
        }
</script>


<section class="content">
    <?php if($_SESSION['vijay_gases']['id']=="1"){ ?>
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-primary">
                <div class="box-header">
                       <div class="row" style="">
                        <div class="col-md-10 col-sm-10 col-xs-8">
                            <div style="list-style: none; padding-inline-start: 0px; padding: 5px 0px 5px 0px;">
                                <?php include "header/sale_header.php"; ?>
                             </div>
                        </div>
                        <div class="col-md-2 col-sm-2 col-xs-4">
                            <?php //include "header/buttons-ui.php"; ?>
                        </div>
                        </div>
                </div>
                
<div class="box-body">                
                <div class="row">
		             <div class="col-md-3">
                           <label for="" class="control-label"> Installed From Date</label>
                           <input type="date" autocomplete="off" class="form-control" id="installed_from_date" name="installed_from_date" value=">">
                     </div>
		            <div class="col-md-2">
		                <label for="" class="control-label">Installed To Date</label>
		                 <input type="date" autocomplete="off" class="form-control" id="installed_to_date" name="installed_to_date" value="">
		            </div>
		               <div class="col-md-2">
		                        <label for="" class="control-label">Cylinder Option</label>
		                   <select autocomplete="off" name="cy_status" id="cy_status" class="form-control" >
		                       <option autocomplete="off" class="form-control"  value="" >All</option>
		                       <option autocomplete="off" class="form-control"  value="1" >Full Cyinder</option>
		                       <option autocomplete="off" class="form-control"  value="3" >Empty Cylinder</option>
		                       <!--<option autocomplete="off" class="form-control"   value="2"  >Delivered Cylinder</option>-->
		                   </select>
		               
		                </div>
		               <div class="col-md-2"> 
		                           <label for="" class="control-label">Company Name</label>
		                        <select class="form-control " name="location_id" id="location_id" required="">
                                    <option value="">Select The Company</option>
                                    <option value="1">VIJAY GAS</option>
                                    <option value="2">VIJAY GASES</option>
                                    <option value="3">UNITED SALES AGENCIES</option>
                                    <option value="4">VIJAY KUMAR GASES PVT LTD</option>  
                                </select>
                                </div>
                </div>
<div class="clearfix"></div>
<br>
            
                    <div class="table-responsive">
                        <table id="StData" class="table table-striped table-bordered table-condensed table-hover" style="margin-bottom:5px;">
                            <thead>
                                <tr>
                                    <td colspan="14" class="p0"><input type="text" class="form-control b0" name="search_table" id="search_table"  placeholder="Search Here" style="width:100%;background-color: darkblue;color: white;"></td>
                                </tr>
                                <tr class="active">
                                    <th style="width:100px;">Actions</th>
                                    <th>S.No</th>
                                    <th>Customer Name</th>
                                    <th>Invoice No</th>
                                    <th>Cylinder No</th>
                                    <th>Company Name</th>
                                    <th>Total Colleted Item</th>
                                    <th>Total Sale Item</th>
                                    <th>Total Amount</th>
                                    <th>Paid Amount</th>
                                    <th>Balance Amount</th>
                                    <th>Payment Status</th>
                                    <th>Sale&nbsp;Date</th>
                                    <th>Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td colspan="14" class="dataTables_empty"><center> Loading Pls Wait Data</center></td>
                                </tr>
                            </tbody>
                            
                        </table>
                    </div>
                    <div class="clearfix"></div>
                
            </div>
</div>


        </div>
        </div>
    <?php }else{ ?>
<center>Invlaid Accesss</center>

<?php } ?>
</section>

<?php include "footer.php";?>

Zerion Mini Shell 1.0