<?php include 'header.php';?>
<style>
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

 
</style>
<?php 
$delivery_challan_id=$_REQUEST['delivery_challan_id'];
$customer_id=$_REQUEST['customer_id'];

$qry3z = "select * from delivery_challan where  delivery_challan_id='$delivery_challan_id' and customer_id='$customer_id'";
$re3z= mysqli_query($conn,$qry3z);
while($row=mysqli_fetch_array($re3z))
		{  
		$delivery_challan_id = $row['delivery_challan_id'];
		
		
$delivery_challan_no=$row['delivery_challan_no'];
$delivery_challan_date=$row['delivery_challan_date'];
$customer_name=$row['customer_name'];
$receipt_no=$row['receipt_no'];
$acknowledgement_copy=$row['acknowledgement_copy'];
$ack_remark=$row['ack_remark'];
$delivered_date=$row['delivered_date'];
		}




date_default_timezone_set('Asia/Calcutta');
$today = date("d/m/y");
$today1 = date("d-m-Y");
$today2 = date("Y-m-d");
$received_time = date("Y-m-d H:i:s");

$currentyear = date("Y");
$currentmonth = date("m");

if($currentmonth>03) { 
$cuyear = date("Y");
$cuyear1 = date("y")+1;
} 
else { 
$cuyear = date("Y")-1;
$cuyear1 =  date("y");
} 
$f_year = "$cuyear"."-"."$cuyear1";

?>

  <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='view_all_delivery_challan.php'">Back </button>
             
              <div class="clearfix"></div>
            </div>
          </div>
        </div>
         <form name="chkForm" id="chkForm" action="delivered_update.php"  method="post">
		 <input type="hidden" name="customer_id" value="<?php echo $_REQUEST['customer_id']?>" />
		 
		 
		 		 <input type="hidden" name="delivery_challan_id" value="<?php echo $_REQUEST['delivery_challan_id']?>" />


		<main>
		<div class="row">
                        <div class="col-sm-12">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title"> Customers Challan <br /><span style="color:#FF0000"><strong><?php echo $_REQUEST['massage']?></strong></span></h3></div>
									
									
									
									
                                <div class="panel-body">
                                    <div class="row">
                                      
									  
													
												
													
                                                    <div class="col-sm-3 col-xs-12"><div class="form-group">
                                                        <label>Customer Name </label>
																												<input type="text" name="customer_name" value="<?php echo $customer_name;?>" class="form-control" readonly="readonly" />

                                                    </div>
													</div>
													
										              
                                                    <div class="col-sm-3 col-xs-12"><div class="form-group">
                                                        <label>Delivery Challan No</label>
														
														<input type="text" name="delivery_challan_no" value="<?php echo $delivery_challan_no;?>" class="form-control" readonly="readonly" />
</div></div>    

                                                    <div class="col-sm-3 col-xs-12"><div class="form-group">
                                                        <label>Delivered Date</label>
														
														<input type="date" name="delivered_date" value="<?php echo $delivered_date; ?>" class="form-control" required />
</div></div>                                                              



                             
 <div class="col-sm-3 col-xs-12"><div class="form-group">
<label><b>Acknowledgement_copy Copy</b></label>
<input type="hidden" class="form-control" name="acknowledgement_copy" value="<?php echo $acknowledgement_copy?>" />
<?php if($acknowledgement_copy!=''){?> <br />
<a href="cpo_copy/<?php echo $acknowledgement_copy?>" target="_blank"><b><?php echo $acknowledgement_copy?></b></a>
<?php }else{?>
<input type="file" class="form-control" name="PO_copy"><?php } ?>
</div></div>  
 <div class="col-sm-6 col-xs-12"><div class="form-group">
                                                        <label>Details/Remark</label>
<textarea name="ack_remark"	 class="form-control"><?php echo $ack_remark;?></textarea>													

</div></div>  

 <div class="col-sm-12 col-xs-12"><div class="form-group">
 <table id="" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
<tr>
<th>SR</th>
<th>COMPONANT</th>
<th>DESCRIPTION</th>
<th>MATERIAL CODE</th>
<th>USE KGS</th>
<th>QTY</th>
<th>UNIT</th>
<th>RECEIPT NO/ACKNOWLEDGEMENT</th>

</tr>
<?php  
$i=1;
$query2="select * from delivery_challan_more_product_02 where delivery_challan_id = '".$_REQUEST['delivery_challan_id']."' AND customer_id = '".$_REQUEST['customer_id']."' AND deleted !='YES' ORDER BY  delivery_challan_more_product_id ASC";
$result=mysqli_query($conn,$query2);
while($row=mysqli_fetch_array($result))

		{  
$product_id = $row['product_id'];
$componant = $row['componant'];
$description = $row['description'];

$delivery_challan_more_product_id  = $row['delivery_challan_more_product_id'];
if($description==''){


$bar_size = $row['bar_size'];
$material_name = $row['material_name'];
$description=$material_name."BAR".$bar_size;
}
$row_id=$row['row_id'];
$cust_po_more_product_id = $row['cust_po_more_product_id'];
$cust_more_row_id=$row['cust_more_row_id'];
$material_code = $row['material_code'];
$use_kg = $row['use_kg'];
$qty = $row['qty'];
$unit = $row['unit'];
$receipt_no=$row['receipt_no'];
	
		?><tr>
<td><?php echo $i?></td>
<td><?php echo $componant?></td>
<td><?php echo $description?></td>
<td><?php echo $material_code?></td>
<td><?php echo round($use_kg)?></td>
<td><?php echo $qty?></td>
<td><?php echo $unit?></td>
<td><input type="text" name="bmst_recipte_no<?php echo $delivery_challan_more_product_id;?>" value="<?php echo $receipt_no?>" class="form-control"  required /></td>
		
		</tr>
		
		<?php $i++; } ?>
                            </table>      </div></div>                          
<?php if($receipt_no=='') {?>
                                             <div class="col-sm-12 col-xs-12"><div class="form-group">
														
													<input name="Submit" type="submit" class="btn btn-primary " value="Save" onClick="validate()">
													
													
                                                        </div>
                                                    </div>
                                               <?php } ?>
                                            </div>
                                        </div>
                                        
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
        </main>
        </form>
		
		
		
        
      </div>
    </div>
<script  src="./script.js"></script>
 <script src="vendors/bower_components/jquery/dist/jquery.min.js"></script>
        <script src="vendors/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="vendors/bower_components/moment/min/moment-with-locales.min.js"></script>
        <script src="vendors/bower_components/mjolnic-bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js"></script>
        <script src="vendors/bower_components/switchery/dist/switchery.min.js"></script>
        <script src="vendors/bower_components/select2/dist/js/select2.full.min.js"></script>
        <script src="vendors/bower_components/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
        
        <!-- Bootstrap Tagsinput JavaScript -->
        <script src="vendors/bower_components/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js"></script>
        
        <!-- Bootstrap Touchspin JavaScript -->
        <script src="vendors/bower_components/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js"></script>
        
        <!-- Multiselect JavaScript -->
        <script src="vendors/bower_components/multiselect/js/jquery.multi-select.js"></script>
        
         
        <!-- Bootstrap Switch JavaScript -->
        <script src="vendors/bower_components/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script>
        
        <!-- Bootstrap Datetimepicker JavaScript -->
        <script type="text/javascript" src="vendors/bower_components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>

        
        <!-- Form Advance Init JavaScript -->
        <script src="dist/js/form-advance-data.js"></script>
        
        <!-- Slimscroll JavaScript -->
        <script src="dist/js/jquery.slimscroll.js"></script>
    
        <!-- Fancy Dropdown JS -->
        <script src="dist/js/dropdown-bootstrap-extended.js"></script>
        
        <!-- Owl JavaScript -->
        <script src="vendors/bower_components/owl.carousel/dist/owl.carousel.min.js"></script>
    
        <!-- Init JavaScript -->
        <script src="dist/js/init.js"></script>   <script src="assets/js/bootstrap.min.js"></script>
	<!-- Select2 JavaScript -->
		<script src="vendors/bower_components/select2/dist/js/select2.full.min.js"></script>
		
		<!-- Bootstrap Select JavaScript -->
		<script src="vendors/bower_components/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/modernizr.min.js"></script>
<script src="assets/js/detect.js"></script>
<script src="assets/js/fastclick.js"></script>
<script src="assets/js/jquery.slimscroll.js"></script>
<script src="assets/js/jquery.blockUI.js"></script>
<script src="assets/js/waves.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/jquery.nicescroll.js"></script>
<script src="assets/js/jquery.scrollTo.min.js"></script>
<script src="assets/js/app.js"></script>
</body>
<!-- Mirrored from themesdesign.in/xadmino/form-elements.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 03 Feb 2021 12:05:08 GMT -->
</html>