<?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");
$today1 = date("d/m");
$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'];
													  $back_office_region=$row['back_office_region'];
													   	$back_office_login=$row['back_office_login'];

													  //echo $Branch;
													  }	
													   ?>	
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>THREESTAR - CRM</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">
 <link rel="stylesheet" href="public/css/default.css" type="text/css">
 <script src="jquery.min.js"></script>
<script src="jquery-ui.js"></script>

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

<link rel="stylesheet" href="jquery-ui.css">
  <style>
  table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  table-layout: fixed;
}
table caption {
  font-size: 1.2em;
  margin: .5em 0 .75em;
}
table tr {
  
  border: 1px solid #ddd;
  padding: .35em;
}
table th,
table td {
  padding: .625em;
  
}
table th {
  font-size: .9em;
  letter-spacing: .0em;
  text-transform: uppercase;
}
@media screen and (max-width: 600px) {
  table {
    border: 0;
  }
  table caption {
    font-size: 1.8em;
  }
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .9em;
    
  }
  table td:before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  table td:last-child {
    border-bottom: 0;
  }
}

</style>	
											   
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#name").keyup(function() {
var name = $('#name').val();
if(name=="")
{
$("#disp").html("");
}
else
{
$.ajax({
type: "POST",
url: "user_check.php",
data: "name="+ name ,
success: function(html){
$("#disp").html(html);
}
});
return false;
}
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#name1").keyup(function() {
var name1 = $('#name1').val();
if(name1=="")
{
$("#disp1").html("");
}
else
{
$.ajax({
type: "POST",
url: "user_check1.php",
data: "name="+ name1 ,
success: function(html){
$("#disp1").html(html);
}
});
return false;
}
});
});
</script>		
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<? depat_check($department_name,$designation);?>
<script type="text/javascript" src="jquery.min.js"></script>
   <script src="jquery-ui.js"></script>
   <link rel="stylesheet" href="jquery-ui.css">
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Challan Master &nbsp;&nbsp;&nbsp;&nbsp; <? back_toindex($department_name,$designation);?>
       
      </h1>
      <ol class="breadcrumb">
        <li><a href="index.php"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Dashboard</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
      <!-- Info boxes -->
      <div class="row">
        
		<form action="insert_challan_master.php" method="post">



<div>
		



			
			<div class="col-sm-12">
				<div class="filter-view">
					<div>
						<table class="table table-bordered">
							<tbody>
							<!-- <div style="float:right; margin-bottom:5px;">
							<input type="submit" name="Submit" value="Save" class="btn bg-btn-save"/>
					  </div> -->
							<div class="col-xs-12" style="background:#3C8DBC;">
							<h5 style="color:#FFFFFF"><span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;Challan Details&nbsp; </h5>
					  </div>
								<tr>
						        <td><div class="form-group">
								        <label for="consignor">Consignor</label>
<input class="form-control" name="consignor" type="text" id="consignor"  required><div id="disp1">
								    </div>	
						        		</td>
								  <td><div class="form-group">
								        <label for="dispname">consignee</label>
<input class="form-control" name="consignee" type="text" id="consignee"  required><div id="disp1">
								    </div>	
						        		</td>
						      
						  
								
								 <td><div class="form-group">
								        <label for="dispname">Consignee GST No</label>
<input class="form-control" name="consignee_gst_no" type="text" id="consignee_gst_no"  required><div id="disp1">
								    </div>	
						        		</td>
						        		 <td><div class="form-group">
								        <label for="dispname">From</label>
<input class="form-control" name="from_consignor" type="text" id="from_consignor"  required><div id="disp1">
								    </div>	
						        		</td>
								<td>
											<div class="form-group">
												<label for="panno">To:&nbsp;</label>
												<input class="form-control" name="to_consignor" id="to_consignor" type="text">
											</div>
										</td>


						      </tr>
						      
						     <tr>
							



						     	<td>
									
						        	<div class="form-group">
								        <label for="vehicle_no">Vehicle No</label>
									     <input class="form-control" name="vehicle_no" id="vehicle_no" type="text">
								    </div>						        </td>
						     
						     	<td>
									
						        	<div class="form-group">
								        <label for="articles_no">Articles No</label>
									     <input class="form-control" name="articles_no" id="articles_no" type="text">
								    </div>						        </td>



                                           <td>
						        	<div class="form-group">
								        <label for="weight">Weight</label>
											  <select class="form-control" name="weight" id="weight" required>
									        <option selected="selected"></option>
											<option value="Actual"> Actual</option>
											<option value="Charged">Charged </option>
											
											
									      </select>
								    </div>								</td>


                                    <td>
									
						        	<div class="form-group">
								        <label for="freight">Freight</label>
									     <input class="form-control" name="freight" id="freight" type="text">
								    </div>						        </td>


                            <td>
									
						        	<div class="form-group">
								        <label for="freight">Transportations Service</label>
									     <input class="form-control" name="transportations_service" id="transportations_service" type="text">
								    </div>						        </td>


						        
						   
											
						     </tr>




						     <tr>
							


                                         <td rowspan="2">
						        			<div class="form-group">
												<label for="description"><span class="glyphicon glyphicon-map-marker"></span>&nbsp;Description:&nbsp;</label>
												<textarea class="form-control" rows="4" style="resize:vertical;" name="description" id="description" maxlength="250" required></textarea>
											</div>
						        		</td>

						     
						     	<td>
									
						        	<div class="form-group">
								        <label for="articles_no">Loaded Export / Import / Local</label>
									     <input class="form-control" name="loaded_export_import" id="loaded_export_import" type="text">
								    </div>						        </td>



                                      	<div class="form-group">
								        <label for="articles_no">Loaded Export / Import / Local</label>
									     <input class="form-control" name="loaded_export_import" id="loaded_export_import" type="text">
								    </div>						        </td>



                                    <td>
									
						        	<div class="form-group">
								        <label for="freight">Container No</label>
									     <input class="form-control" name="container_no" id="container_no" type="text">
								    </div>						        </td>


                            <td>
									
						        	<div class="form-group">
								        <label for="freight">Seal No</label>
									     <input class="form-control" name="seal_no" id="seal_no" type="text">
								    </div>						        </td>

                                     <td>
									
						        	<div class="form-group">
								        <label for="freight">Destinations</label>
									     <input class="form-control" name="destinations" id="destinations" type="text">
								    </div>						        </td>
						        
						   
											
						     </tr>
						     <tr>
						        		<td>
						        			<div class="form-group">
								        <label for="freight">Shipping_agent</label>
									     <input class="form-control" name="shipping_agent" id="shipping_agent" type="text">
								    </div>						        </td>
						        
						        	
										
						        		<td>
						        			<div class="form-group">
								        <label for="freight">Booking No</label>
									     <input class="form-control" name="booking_no" id="booking_no" type="text">
								    </div>						        </td>
						        
						        	
						        		<td>
						        			<div class="form-group">
								        <label for="freight">In Time</label>
									     <input class="form-control" name="in_time" id="in_time" type="text">
								    </div>						        </td>
						        
						       		
						        		<td>
						        			<div class="form-group">
								        <label for="freight">Out  Time</label>
									     <input class="form-control" name="out_time" id="out_time" type="text">
								    </div>						        </td>
						        
											
						        		
						        	</tr>


						        	<tr>
						        		<td>
						        			<div class="form-group">
								        <label for="freight">Receiver Signature With Seal</label>
									     <input class="form-control" name="receiver_signature_with_seal" id="receiver_signature_with_seal" type="text">
								    </div>						        </td>
						        
						        	
										
						        		
						        		
						        
						        	
						        			<td>
						        			<div class="form-group">
								        <label for="freight">Delivery at</label>
									     <input class="form-control" name="delivery_at" id="delivery_at" type="text">
								    </div>						        </td>
						       		
						        	
						        <td></td>
											
						        	 <td></td>	
						        	</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		
		 <!--  Address Information  -->
		 
		<div>














		</div>
		
		

		<div class="row" style="float:right; margin-bottom:5px;">
			<div class="col-sm-12">
				<div >
					<div class="col-sm-12" style="float:right; margin-bottom:5px;">
						
	          			<input type="submit" name="Submit" value="Save" class="btn bg-btn-save"/>
	          			
          				
					
						 
					</div>
				</div>
			</div>
		</div>
		
		</form>
		</div>
		
		</section>
		</div>
		
		<!--  Email List  -->
				 
		
	
  
    <!-- /.content -->
  <!-- /.content-wrapper -->
<script type="text/javascript" src="js/date-time-picker.js"></script>

    <? include'footer.php'; ?>

