<?php include 'header1f.php';?>
  <div class="content-page">
    <div class="content">
      <div class="container">
	  <div class="row">
          <div class="col-sm-12">
            <div class="page-header-title">
            <button type="button" class="btn btn-dark waves-effect waves-light" onclick="location.href='qtn_status.php'">BACK </button>
              <div class="clearfix"></div>
            </div>
          </div>
        </div>
	  
	  <form name="chkForm" id="chkForm" action="insert_vendor_transport.php"  method="post" >
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title">Add Transport </h3></div>
                                <div class="panel-body">
                                    <div class="row">
                                                    <div class="col-sm-12 col-xs-12"><div class="form-group">
                                                        <label>Transport Name</label>
                                                           <input name="transport_name" type="text" class="form-control" required="required"> 
                                                    </div>
													</div>
													
												
													
													
                                                    
                                                    <div class="col-sm-12 col-xs-12">
                                           
                                            <div class="m-t-20">
                                                    <div class="form-group">
                                                        <div>
                                                          <input type="submit" class="btn btn-primary " value="ADD" name="ADD">
						
															
                                                           
                                                        </div>
                                                    </div>
                                               
                                            </div>
                                        </div>
                                        
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
					
					
					</form>
        
        <div class="row">
          <div class="col-md-12">
            <div class="panel panel-primary">
              <div class="panel-heading">
                <h3 class="panel-title">View all Transport </h3>
              </div>
              <div class="panel-body">
                <table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
                  <thead>
                    <tr>
					    <th>SR No.</th>
									   <th>Transport Name</th>
									   <th>Action</th>
						          </tr>    
                  </thead>
                  <tbody>
                    <?php
					$i=1;
$query1 = "select * from transport_vendor";
$result1 = mysql_query($query1,$conn);		
while($row=mysql_fetch_array($result1))
{
$transport_name = $row['transport_name'];
$trans_id = $row['trans_id'];// autogerated 

?>	

	
		 <tr>
	<td><?php echo $i; ?></td>
	<td><? echo $transport_name?> </td>
	<td><a href="insert_vendor_transport.php?trans_id=<?php echo $trans_id?>&&del=YES"  class="btn btn-danger waves-effect waves-light">Delete</a></td>
</tr>		
					<?php $i++; }?>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
   	<?php include 'footer1a.php';?>
