ok
Direktori : /home2/selectio/www/lilyexpresslive/software/admin/ |
Current File : /home2/selectio/www/lilyexpresslive/software/admin/cargo-entry-bulk-upload.php |
<?php require_once('header.php'); ?> <script type="text/javascript" language="javascript" > $(document).ready(function() { $("#client_id").select2(); $("#branch_id").select2(); } ); </script> <script type="text/javascript" language="javascript" > $(document).ready(function() { function branchDetails(){ // branch and Employee Details Set /*var branch = $("#branch").val();*/ $.ajax({ url: 'data-tables/custom-function.php', type: 'post', data: {type:'get_branch'}, success: function(response) { var datas = JSON.parse(response) $('#branch_id').empty(); var tot = datas.length; if(tot==0) { $('#branch_id') .append($("<option></option>") .attr("value", '') .text("Branch Not Available")); } else { $('#branch_id') .append($("<option></option>") .attr("value", '') .text("Select Branch")); } for (var index = 0; index < tot; index++) { $('#branch_id') .append($("<option></option>") .attr("value", datas[index]['id']) .text(datas[index]['branch_name'])); } } }); } function clientDetails(){ // branch and Employee Details Set var branch = $("#branch_id").val(); $.ajax({ url: 'data-tables/custom-function.php', type: 'post', data: {type:'get_client',branch_id:branch}, success: function(response) { var datas = JSON.parse(response) $('#client_id').empty(); var tot = datas.length; if(tot==0) { $('#client_id') .append($("<option></option>") .attr("value", '') .text("Client Not Available")); } for (var index = 0; index < tot; index++) { $('#client_id') .append($("<option></option>") .attr("value", datas[index]['id']) .text(datas[index]['client_name'])); } } }); } branchDetails(); $('#branch_id').on('change', function(){ clientDetails(); } ); } ); </script> <section class="content-header" style="background-color: white;"> <div class="row"> <div class="col-md-6" style="text-align: center;"> <h4><i class="fa fa-info-circle"></i> Caro Entry Bulk Upload</h4> </div> <div class="col-md-6" style="text-align: center;"> <a href="excel/create_cargo_entry.php" target="_blank" class="btn btn-warning btn-sm"> <i class="fa fa-download" aria-hidden="true"></i> Download Sample File Format </a>  <a href="cargo-pickup-entry-list.php" class="btn btn-danger btn-sm"><i class="fa fa-list" aria-hidden="true"></i> Back to Cargo Entry List</a> </div> </div> <br><br> <div class="row"> <div class="col-md-12"> <form class="form-horizontal" action="cargo-entry-bulk-upload-status.php" method="post" enctype="multipart/form-data"> <div > <div > <div class="form-group"> <label for="" class="col-sm-2 control-label">Select Branch<span>*</span></label> <div class="col-sm-6" style="padding-top:5px"> <select name="branch_id" id="branch_id" class="form-control" required> <option value="">Select Branch</option> </select> </div> </div> <div class="form-group"> <label for="" class="col-sm-2 control-label">Select Client Name<span>*</span></label> <div class="col-sm-6" style="padding-top:5px"> <select name="client_id" id="client_id" class="form-control" required> <option value="">Select Client</option> </select> </div> </div> <div class="form-group"> <label for="" class="col-sm-2 control-label">Bulk Upload Cargo Entry <span>*</span></label> <div class="col-sm-6" style="padding-top:5px"> <input type="file" class="form-control" name="file" accept=".csv" required>(Only CSV Format) </div> </div> <div class="form-group"> <label for="" class="col-sm-2 control-label"></label> <div class="col-sm-6"> <center> <button type="submit" class="btn btn-success btn-sm pull-left" name="Import"><i class="fa fa-upload" aria-hidden="true"></i> Upload Cargo Enrty</button></center> </div> </div> </div> </div> </form> </div> </div> </section> <?php require_once('footer.php'); ?>