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

<!-- END THEME STYLES -->

<!-- BEGIN PAGE LEVEL STYLES -->
<link rel="stylesheet" type="text/css" href="../assets/css/select2.css"/>
<link rel="stylesheet" type="text/css" href="../assets/css/dataTables.bootstrap.css"/>
<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 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>Update Setting Values 
							</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" action="setting_crud.php" method="post">
									<div class="col-md-12">

								<?php								
			

									$sql = "SELECT * FROM `setting_table` order by s_id";

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

									while($row = mysqli_fetch_array($result)){

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

												<label class="col-md-3 control-label">
													<?php echo $row['setting_name']?> :
												</label>

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



											</div>
											</div>
											<?php } ?>
											
                       					<div class="form-group">
											<div class="form-group">

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


									                <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 src="../assets/js/table-managed.js" type="text/javascript"></script>

<!-- END PAGE LEVEL SCRIPTS -->

<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>