<?php $ci = get_instance();?>
<!DOCTYPE html>
<html lang="en">
<head>
	<?php $this->load->view("includes/header");?>
</head>

<body>
	<?php $this->load->view("includes/menu");?>
	
	<section class="content">
		<?php $this->load->view("includes/nav");?>
		
		<div class="wraper container-fluid xs_container-fluid">
<!--			<div class="page-title"> -->
<!--				<h3 class="title">Panels</h3> -->
<!--			</div>-->
			
			<div class="row">
				<div class="col-md-offset-2 col-md-8">
					<?php $this->load->view("includes/success_msg");?>
					
					<div class="panel panel-default xs_panel" style="padding-left: 10px; padding-right: 10px;">
						<div class="panel-heading">
							<center>
								<h3 class="panel-title">
									<i class="fa fa-wrench fa-fw"></i>
									System Configuration
								</h3> 
							</center>
						</div>
						<div class="panel-body">
							<form onSubmit="return validation();" action="<?php echo base_url($this->router->fetch_class()."/update")?>" method="POST" accept-charset="utf-8" enctype="multipart/form-data">
<!--								<div class="form-group">-->
<!--									<label>No. of Tank File Data to be generated daily</label>-->
<!--									<input type="text" name="NO_OF_DAILY_TNKFILE_CREATED" onClick="input_assist(this, 1);" value="<?php //if(isset($setting)) echo (int)$ci->fm->str_esc($setting->NO_OF_DAILY_TNKFILE_CREATED, 2);?>" class="form-control" required="required" autocomplete="OFF">-->
<!--								</div>-->
								
								<?php if(isset($setting)):?>
									<?php 
										$string = "";
										if($setting->CREATE_USER_CODE != "" || $setting->DATE_CREATED != ""){
											if($string != "") $string .= "<br>";
											$string .= "Created";
											if($setting->CREATE_USER_CODE != "") $string .= " by ".$setting->CREATE_USER_CODE;
											if($setting->DATE_CREATED != "") $string .= " on ".date("d M Y h:i A", strtotime($setting->DATE_CREATED));
											$string .= ".";
										}
										
										if($setting->MODIFY_USER_CODE != "" || $setting->DATE_MODIFIED != ""){
											if($string != "") $string .= "<br>";
											$string .= "Last modified";
											if($setting->MODIFY_USER_CODE != "") $string .= " by ".$setting->MODIFY_USER_CODE;
											if($setting->DATE_MODIFIED != "") $string .= " on ".date("d M Y h:i A", strtotime($setting->DATE_MODIFIED));
											$string .= ".";
										}
									?>
									<?php if($string != ""):?>
										<div class="form-group">
											<label>User Info</label>
											<p class="form-control-static">
												<?php echo $string;?>
											</p>
										</div>
									<?php endif;?>
								<?php endif;?>
								
								<div class="form-group">
									<label></label>
									<button type="submit" class="btn btn-primary btn-xs-block btn_submit">
										<i class="fa fa-save"></i>
										Save
									</button>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<?php $this->load->view("includes/footer");?>
	</section>

	<script>
		$(document).ready(function(){
		});

		function validation(){
			disable_btn(".btn_submit");
		}
	</script>
</body>
</html>
