<?php
	include("my_functions.php");
	$pagetitle = "Complete job";
	require('includes/applicationtop.php');
	require('includes/applicationmenu.php');
	
	$err= "";

    $actual_link = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
		 
		
    $fromdate = false;
    $command = false;
	
	$startdatevalid = false;
	
	 
		 
        if(!empty($_POST["status"]) and !empty($_POST["focus"])   ){

  
            $status = $_POST["status"]; 
            $dispatch = $_POST["dispatch"];  
            
			
			 
			
			 
			 
		 
	} 
?>
			<!-- Content Wrapper. Contains page content -->
			<div class="content-wrapper">
				<!-- Content Header (Page header) -->
				<section class="content-header">
					<h6><?= $pagetitle; ?></h6>
					<ol class="breadcrumb">
					</ol>
				</section>

				<!-- Main content -->
				<section class="content">
					<!-- Default card -->
					<div class="card card-primary">
						<?php
							if($_SESSION["connectedusergroup"] == 1 || $_SESSION["connectedusergroup"] == 4)
							{
						?>
						<div class="card-body">
							<div id="servererrormessage">
							</div>
							
							<?php
								if($err!="")
								{
							?>
							<div class="alert alert-danger alert-dismissable">
								<i class="fa fa-ban"></i>
								<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button><br>
								<?php 
									echo $err; 
								?>
							</div>
							<?php
								}
							?>
							
							<div class="card card-info">
                                <div class="card-header">
                                    <h6 class="card-title"><?= $pagetitle ?></h6>
                                </div>
                                <div class="card-body">
                            
                               
							
							 
								<?php
									if($err=="" )
									{
								?>
								   

                                 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

                                 <div class="card-body">
                  
                            
                                 <div class="form-group">
                                    <label>Multiple</label>
                                    <select class="select2bs4 form-control" multiple="multiple">
                                    <?php
												$order= DB::query("SELECT * FROM order_status");
												foreach($order as $row)
												{
                                                   
                                                    ?>
                                                    <option  value="<?php echo $row['status_id']; ?>"><?php echo $row['order_status_name']; ?></option>
                                                    <?php
											 
                                            }
											?>
                                     
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label>Multiple</label>
                                    <select class="select2bs4 form-control" multiple="multiple">
                                    <?php
												$order= DB::query("SELECT * FROM order_status");
												foreach($order as $row)
												{
                                                   
                                                    ?>
                                                    <option  value="<?php echo $row['status_id']; ?>"><?php echo $row['order_status_name']; ?></option>
                                                    <?php
											 
                                            }
											?>
                                     
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label>Multiple</label>
                                    <select class="select2bs4 form-control" multiple="multiple">
                                    <?php
												$order= DB::query("SELECT * FROM order_status");
												foreach($order as $row)
												{
                                                   
                                                    ?>
                                                    <option  value="<?php echo $row['status_id']; ?>"><?php echo $row['order_status_name']; ?></option>
                                                    <?php
											 
                                            }
											?>
                                     
                                    </select>
                                </div>

                         
                             <div class="btn-list">
								<div class="text-right">
									<a href="dashboard.php" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> Cancel</a>
									
									<button type="submit" name="savedatabtn" id="savedatabtn" class="btn btn-success"><i class="glyphicon glyphicon-floppy-disk"></i> Save</button>
								</div>
							</div>

                                    </form>
								  
								   
                                     

                                </div>
                            </div>
              <!-- /.card-body -->
            </div>
									 
								
								   
								 
										 
								
								
								
								</div>
							</div>
						</div><!-- /.card-body -->
						<?php
							}
							}
							else
							{
						?>
						<div class="alert alert-danger alert-dismissable">
							<i class="fa fa-ban-circle"></i><br>
							Limited Access
						</div>
						<?php
							}
						?>
					</div><!-- /.card -->
				</section><!-- /.content -->
			</div><!-- /.content-wrapper -->
 
		</div><!-- ./wrapper -->
		
		<div class="modal" id="waitdialogmodal"  data-backdrop="static">
            <div class="modal-dialog modal-sm">
              <div class="modal-content">
                  <div class="modal-body">
					<div class="text-center">
						<img src="<?php echo $base_url . $ajax_loading_image; ?>" />
					</div>
				  </div>
              </div>
            </div>
        </div>

		 
	
	
	
	
 <?php include ('includes/general_footer.php')?>  
 
 <link href="https://adminlte.io/themes/v3/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css" rel="stylesheet">
 <link href="https://adminlte.io/themes/v3/plugins/select2/css/select2.min.css" rel="stylesheet"> 
 


 

	 
		<script src="plugins/bert/storepos.js" type="text/javascript"></script>
		<script src="plugins/bert/store.js" type="text/javascript"></script> 
        <script src="https://adminlte.io/themes/v3/plugins/select2/js/select2.full.min.js" type="text/javascript"></script> 

        

        

        

        <script>
  $(function () {
    //Initialize Select2 Elements
    $('.select2').select2()

    //Initialize Select2 Elements
    $('.select2bs4').select2({
      theme: 'bootstrap4'
    })

   
     
     

     

  
 
 
    $("input[data-bootstrap-switch]").each(function(){
      $(this).bootstrapSwitch('state', $(this).prop('checked'));
    })

  })
   
   
   
  // DropzoneJS Demo Code End
</script>

        
	</body>
</html>