ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/awb-list-create.php

<?php require_once('header.php'); ?>

	


<section class="content" style="background-color: white;" >
    <div class="row">
		<div class="col-md-12" style="text-align: center;">
			<h4><i class="fa fa-info-circle"></i> Awb Number Bulk Upload</h4>
		</div>
		
	</div>

	<div class="row">
		<div class="col-md-12">
				<div>
					<div class="box-body" id="f_id">
					    
						<div class="form-group">
							<label for="" class="col-sm-2 control-label">Client Name<span>*</span></label>
							<div class="col-sm-6">
							<select class="form-control select2" name="client_id" id="client_id">
                    	        <option value="">Over All </option>
                    	        <?php
                    			$statement = $pdo->prepare("SELECT * FROM `tbl_user` where role='Modicare' or role='Cargo'");
                    			$statement->execute();
                    			$result = $statement->fetchAll(PDO::FETCH_ASSOC);	
                    			foreach ($result as $row) {
                    				?>
                    				<option value="<?php echo $row['id']; ?>"><?php echo $row['full_name']; ?></option>
                    				<?php
                    			}
                    			?>
                    	    </select>
							</div>
						</div><br><br>
						
						<div class="form-group">
							<label for="" class="col-sm-2 control-label">Start Number <span class='required'>*</span></label>
							<div class="col-sm-6">
								<input type="number" value="0" autocomplete="off" id="start_awb" class="form-control" name="start_awb"> </div>
						</div><br><br>
							<div class="form-group">
							<label for="" class="col-sm-2 control-label">End Numbers <span class='required'>*</span></label>
							<div class="col-sm-6">
								<input type="number" value="0" autocomplete="off" id="end_awb" class="form-control" name="end_awb"> </div>
						</div>
						<br><br>
						
						
						<div class="form-group">
							<label for="" class="col-sm-2 control-label"></label>
							<div class="col-sm-6">
								<button type="submit" class="btn btn-success pull-left" id="upload_bulk_awb_numbers">Submit</button>
							</div>
						</div>
					</div>
					<div id='loaders'>
					   <center><img src="img/loading.gif" style='width:35%;'></center>
					</div>
					<div id="m_id">
					    
					</div>
				</div>
				
		</div>
	</div>

</section>

<script>

    $(document).ready(function() {
        $('#loaders').hide();
        $('#upload_bulk_awb_numbers').on('click', function(e) {
           
             var client_id=$('#client_id').val();
             var start_awb=$('#start_awb').val();
             var end_awb=$('#end_awb').val();
           if(client_id!='' && start_awb<end_awb){
                $('#f_id').hide();
                $('#loaders').show();
                $.ajax({
                  type:'POST',
                  url:'ajax-code-api/upload-awbnumbers.php',
                  data:{client_id:client_id,start_awb:start_awb,end_awb:end_awb},
                  success:function(response){
                     // console.log(response);
                     // alert(response);
                      $('#m_id').append(response);
                       $('#loaders').hide();
                      $('#m_id').show();
                  }
               });
           }else
           alert('Enter Correct Value...');
        });
    });
</script>

<?php require_once('footer.php'); ?>

Zerion Mini Shell 1.0