<?php
	include('common/header.php');
?>	
	<div class="">
		<div class="col-xm-12">
			<div class="widget-box light-border">
				<!-- <div class="widget-header header-color-grey">
					<h4 class="smaller">
						Refill Sale Data
					</h4>
				</div> -->
				<div class="widget-body">
					<div class="widget-main">
						<div class="row">
							<div class="col-sm-12">
								<form class="form-horizontal" role="form" method="post" name="module_form" id="module_form" onsubmit="return validateForm()" action="<?php echo base_url();?>index.php/<?php echo DISPENSER_SALES_DATA;?>return_dispenser_list">
								<div class="">
									<!-- PAGE CONTENT BEGINS -->

									<!-- <div class="form-group" id="client_code">
									<div id="messages" style="color: green;text-align: center;"><h5><?php echo $this->session->flashdata('message'); ?></h5></div> 

                              		<label for="client_code" class="col-sm-5 control-label required">Tracking Number:<font style="color:red">*</font></label>

                              	   <div class="col-sm-3">

                                 	 <input type="text" name="tracking_number" value="" id="tracking_number" placeholder="Tracking Number" class="form-control" maxlength="50">
                             
                                 	<span id="tracking_number1" class="text-danger font-weight-bold"></span>            
                                   </div>
                               </div> -->
                               <div class="form-group" id="client_code">
									<div id="messages" style="color: green;text-align: center;"><h5><?php echo $this->session->flashdata('message'); ?></h5></div> 

                              		<label for="client_code" class="col-sm-5 control-label required">Customer Name:<font style="color:red">*</font></label>

                              	   <div class="col-sm-3">

                                 	 <!-- <?php
									$customer_array_data=$customer_array;
									$js1 = 'class="select2 select2-multiple form-control" name="customer_id" id="customer_id" multiple="multiple" data-placeholder="Choose"';
									echo form_dropdown('customer_id', $customer_array_data, $customer_id, $js1);
									?> -->  
									<select class="select2 select2-multiple form-control" name="customer_id" multiple="multiple" id="customer_id" style="width: 250px;">
										<option value="default">Select Customer</option>
								    </select>         
                                   </div>
                               </div>
																								
									
 

								</div>
								
							</div>
						</div>
					</div>	
				</div>
			</div>
		</div>
		<!-- /.col -->
	</div>
	<div class="clearfix form-actions">
		<div class="col-md-offset-5 col-md-5">
			<button class="btn btn-info" type="submit">
				 Search Dispenser
			</button>
		</div>
	</div>
	</form>	
	<div class="space-4"></div>
		<!-- /.page-row -->
        <!-- /.page-content --> 
    </div>
    <!-- /.main-content --> 
	</div>
    <!-- /#ace-settings-container --> 
	</div>
	<!-- /.main-container-inner --> 
<?php
	include('common/footer.php');
?>
<!-- <script type="text/javascript">
$(document).ready(function() {
    $('form:first *:input[type!=hidden]:first').focus();

    $(".select2").select2();  
    $(".select2").prop("multiple", "multiple");

 //    $('#customer').change(function(){
 //    $.ajax({
 //    url:"<?php echo base_url();?>index.php/gc/refill_sale_data/fetch_customer",
 //    method:"POST",
 //    success:function(data)
 //    {

 //      $('#customer').html(data);

 //    }
 //   });

  
 // });
});
</script> -->
<script type="text/javascript">

    function validateForm(){

      var tracking_number = document.getElementById('tracking_number').value;                                 
      if(tracking_number == ""){
        document.getElementById('tracking_number1').innerHTML =" ** Please Select the Tracking Number";
        return false;
      }

    }
</script>
<script>
function hide()
{
	document.getElementById("admin_type_code").style.display="none";
}
function show()
{
	document.getElementById("admin_type_code").style.display="";
}
</script>
<script type="text/javascript">
$(document).ready(function() {
    $('form:first *:input[type!=hidden]:first').focus();

    $(".select2").select2();  
			$(".select2").prop("multiple", "");

			$.ajax({
    			url:"<?php echo base_url();?>index.php/gc/dispenser_sale_data/customer",
   				method:"POST",
    			// data:{
     		// 	       company_branch_id:company_branch_id
    			// 	 },
    			success:function(data)
    					{
     					 $('#customer_id').html(data);
    					}
   			});

});

</script>	
<script type="text/javascript">
 $('#date-timepicker1').datetimepicker({
                 format: 'DD-MM-YYYY h:mm:ss A',//use this option to display seconds
                 icons: {
                    time: 'fa fa-clock-o',
                    date: 'fa fa-calendar',
                    up: 'fa fa-chevron-up',
                    down: 'fa fa-chevron-down',
                    previous: 'fa fa-chevron-left',
                    next: 'fa fa-chevron-right',
                    today: 'fa fa-arrows ',
                    clear: 'fa fa-trash',
                    close: 'fa fa-times'
                 }
                }).next().on(ace.click_event, function(){
                    $(this).prev().focus();
});
</script>