<?php include 'connection.php';
session_start();
if (!isset($_SESSION['is_logged_in'])) {
    header("Location:login.php");
    die();
    }
date_default_timezone_set('Asia/Calcutta');
$today = date("d-m-Y");
$time = date("h:i A"); 
$currentmonth = date("m");

?>

<? include('sahavas_dropdown_function.php');?>
<?php 

$query = "select * from users where username = '". $_SESSION["LOGIN_NAME"]."' AND password = '".$_SESSION["EMPLOYEE_PASSWORD"]."'";
//echo $query;
		                 $result = mysql_query($query,$conn);
						 while($row=mysql_fetch_array($result))
	                                              	{
													  $staff_name = $row['full_name'];
													  $full_name = $row['full_name'];
													  $avatar = $row['avatar'];
													  $department_name = $row['department_name'];
													  $staff_id  = $row['id'];
													  $username = $row['username'];
													  $our_company = $row['our_company'];
													  $designation = $row['designation'];
													  $sales_group = $row['sales_group'];
													  $head = $row['head'];
													  $region = $row['region'];
													  $district = $row['district'];
													  $email = $row['email'];
													  $mobile_no = $row['mobile_no'];
													  $staff_id_self  = $row['id'];
													  //echo $Branch;
													  }	
													   ?>	
													   
					
					  								   
	<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
function fillsale(Value)
{
$('#customer_id').val(Value);
$('#displaysale').hide();
}

$(document).ready(function(){
$("#customer_id").keyup(function() {
var name = $('#customer_id').val();
if(name=="")
{
$("#displaysale").html("");
}
else
{
$.ajax({
type: "POST",
url: "ajax_plan.php",
data: "customer_id="+ name ,
success: function(html){
$("#displaysale").html(html).show();
}
});
}
});
});</script>												   
													   
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>shigmoda.com</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <!-- daterange picker -->
  <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css">
  <!-- bootstrap datepicker -->
  <link rel="stylesheet" href="plugins/datepicker/datepicker3.css">
  <!-- iCheck for checkboxes and radio inputs -->
  <link rel="stylesheet" href="plugins/iCheck/all.css">
  <!-- Bootstrap Color Picker -->
  <link rel="stylesheet" href="plugins/colorpicker/bootstrap-colorpicker.min.css">
  <!-- Bootstrap time Picker -->
  <link rel="stylesheet" href="plugins/timepicker/bootstrap-timepicker.min.css">
  <!-- Select2 -->
  <link rel="stylesheet" href="plugins/select2/select2.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
<script src="jquery.min.js"></script>
   <script src="jquery-ui.js"></script>


<link rel="stylesheet" href="jquery-ui.css">

</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<? depat_check($department_name,$designation);?>
<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
     <section class="content-header">
      <h1>
    Change Transporter  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<? back_toindex($department_name,$designation);?>
        
      </h1>
    
    </section>

    <!-- Main content -->
	
	
	<section class="content">
      <div class="row">
	              <form name="chkForm" id="chkForm"  action="trans_change_step2.php" method="post">
				  <input name="trans_inv_no" type="hidden" value="<?php echo $_REQUEST['trans_inv_no'];?>"/>
 				  <input name="customer_id" type="hidden" value="<?php echo $_REQUEST['customer_id'];?>"/>
				  <input name="Job_No" type="hidden" value="<?php echo $_REQUEST['Job_No'];?>"/>
				  <input name="trans_auto_noold" type="hidden" value="<?php echo $_REQUEST['trans_auto_noold'];?>"/>
				   <input name="short_formold" type="hidden" value="<?php echo $_REQUEST['short_formold'];?>"/>
        <!-- /.col -->
        <div class="col-md-6" >
          <div class="box" >
            <div class="box-header with-border" style="background:#3C8DBC; color:#FFFFFF;">
              <h3 class="box-title">Change Transporter <span style="float:right;"></span></h3>
            </div>
            <!-- /.box-header -->
           
              <div class="box-body">
			  
			  
			   <div class="form-group">
												<label for="scity">&nbsp;Transport &nbsp;</label>
                
                 <select class="form-control" name="transport_name"/>
									<option value="">Select Transport </option>
									 <? $query2s = "select * from transport_master where short_form !='".$_REQUEST['short_formold']."' order by transport_name ";
		                 				$result2s = mysql_query($query2s,$conn);	
										while($row = mysql_fetch_array($result2s)){
													 $transport_name = $row['transport_name'];
													 $transport_id = $row['transport_id'];
												?>
												<option value="<? echo $transport_id?>"><? echo $transport_name?></option>
												<? } ?></select>
              </div>
			   
                </div>
              <!-- /.box-body -->

              <div class="box-footer">
			  
			  
                <button type="submit" class="btn btn-primary">NEXT</button>
              </div>
            
            <!-- /.box-body -->
            
          </div>
          <!-- /.box -->

          
          <!-- /.box -->
        </div>
        <!-- /.col -->
     </form> </div>
      <!-- /.row -->
      
    </section>
	
	
	
	
	
	
	
	
	
	
	
	
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
   <? include'footer.php'; ?>

</body>
</html>
