<?php 
 

include ('../ro_head.php'); ?>


<style type="text/css">
	h3{
		background-color: #c6deef;
		padding: 10px 0px 10px 20px;
		font-size: 18px;
	}
</style>
<!-- END PAGE LEVEL STYLES -->

<!-- BEGIN CONTAINER -->
<div class="page-container">
<?php include_once("../ro_sidebar.php"); ?>
    <!-- BEGIN CONTENT -->
	<div class="page-content-wrapper">
		<div class="page-content">
			
			
			<!-- BEGIN PAGE HEADER-->
			
			<!-- END PAGE HEADER-->
			<!-- BEGIN PAGE CONTENT-->
			<div class="row">
				<div class="col-md-12">
					<!-- BEGIN EXAMPLE TABLE PORTLET-->
					<div class="portlet box grey-cascade">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-globe"></i>Edit Delivery Location 
							</div>
							<!-- <div class="tools"> -->
								<!-- <a href="javascript:;" class="collapse">
								</a> -->
								<!-- <a href="#portlet-config" data-toggle="modal" class="config">
								</a> -->
								<!-- <a href="javascript:;" class="reload">
								</a> -->
								<!-- <a href="javascript:;" class="remove">
								</a> -->
							<!-- </div> -->
						</div>
						<div class="portlet-body">
							<div class="table-toolbar">
								<div class="row">

								<form name="addproduct" class="form-horizontal form-row-seperated" id="signupForm" enctype="multipart/form-data" action="delivery_location_crud.php" method="post">
									<div class="col-md-12">

									<?php

									
									$id = $_GET['id'];

									$sql = "SELECT * FROM `deli_location_table` WHERE `deliloc_id`=$id";

									$result = mysqli_query($con,$sql);

									$row = mysqli_fetch_array($result);
									 ?>
										
										<div class="form-group">
								
				                            <div class="form-group">



												<label class="col-md-3 control-label">
													Delivery Location Name: <span class="required">* </span>
												</label>
											
												<input type="hidden" name="id" value="<?php echo $row['deliloc_id']; ?>">


												<div class="col-md-3">
													<input type="text" class="form-control"  name="deli_name" value="<?php echo $row['deliloc_name'];?>" required>
												</div>



											</div>
										</div>

										<div class="form-group">
								
				                            <div class="form-group">

												<label class="col-md-3 control-label">
													Keyword: <span class="required">* </span>
												</label>			
												
												<div class="col-md-3">
													<input type="text" class="form-control" style='width:60px;' name="deli_kword" maxlength="3"  value="<?php echo $row['deliloc_kword'];?>" required="required">
												</div>

											</div>
										</div>

											

                       					 <div class="form-group">
								
				                            <div class="form-group">



												<label class="col-md-3 control-label">
													Status: <span class="required">* </span>
												</label>



												<div class="col-md-3">
													<!-- <input type="text" class="form-control" name="" required> -->
													<select name="status" class="form-control">

													<?php 

													if($row['status']==1){

														?>
														<option value="1">Active</option>
														<option value="0">Inactive</option>

														<?php

													}else{
														
														?>

														<option value="0">Inactive</option>
														<option value="1">Active</option>
														
													<?php
														}

													?>
														
													</select>
												</div>



											</div>


                       					 </div>


                       					<div class="form-group">
											<div class="form-group">

												<label class="col-sm-4 control-label" ></label>



								                	<input type='hidden' name='actionid' value='update'>

									                <div class="col-sm-8" style="padding-top: 20px;">
									                	<button class="btn green"><i class="fa fa-check"></i> Save </button>
									                </div>
									            </div>
								        </div>	

								        </form>	

									</div>
									
								</div>
							</div>
							
						</div>
					</div>
					<!-- END EXAMPLE TABLE PORTLET-->
				</div>
			</div>
				</div>
			</div>
			<!-- END PAGE CONTENT-->
		</div>
	</div>
	<!-- END CONTENT -->
	
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<?php include_once("../ro_footer.php"); ?>

<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<?php include_once("../ro_js.php"); ?>

<script>
jQuery(document).ready(function() {       
   Metronic.init(); // init metronic core components
Layout.init(); // init current layout
QuickSidebar.init(); // init quick sidebar
Demo.init(); // init demo features
//   TableManaged.init();
});
</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>