<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>



<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo site_url(); ?>assets/admin_css/css/jquery.datetimepicker.css" />
<!-- <link href="css/for_mobile.css" rel="stylesheet" /> -->


<link href="<?php echo base_url(); ?>assets/admin_css/css/bootstrap.min.css" rel="stylesheet" />
<link href="font-awesome-4.4.0/css/font-awesome.min.css"
	rel="stylesheet" />
<link href="<?php echo base_url(); ?>assets/admin_css/css/jquery.dataTables.css" rel="stylesheet"/>
<link href="<?php echo base_url(); ?>assets/admin_css/css/jquery.dataTables.min.css" rel="stylesheet"/>
<link href="<?php echo base_url(); ?>assets/admin_css/css/buttons.dataTables.min.css" rel="stylesheet"/>
<script src="<?php echo base_url(); ?>assets/admin_js/js/jquery-1.9.1.js"></script>
<script type="text/javascript"
	src="<?php echo base_url(); ?>assets/admin_js/js/jquery.dataTables.min.js"></script>
<script type="text/javascript"
	src="<?php echo base_url(); ?>assets/admin_js/js/dataTables.buttons.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/admin_js/js/buttons.print.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/admin_js/js/buttons.colVis.min.js"></script>
<script src="<?php echo base_url(); ?>assets/admin_js/js/bootstrap.min.js"></script>
<script src="<?php echo base_url(); ?>assets/admin_js/js/product_sale.js" type="text/javascript"></script>



<script>
$(function() {
	$("#event_date").datepicker({
		changeMonth : true,
		changeYear : true
	});
});
</script>


</head>
<body>




	<h3 style="text-align: center;">Edit Admin</h3>


	<div id="abcd"></div>


	<div class="col-md-12">
		<div class="col-md-2 "></div>

		<div class="col-md-8" style="padding: 0px;">




			<div class="right_side">

                                    <?php foreach ($single_data as $dto): ?>



																			<form action="<?php echo site_url().'/LoginControllers/updateInfoById'; ?>"
																				method="post">

																				<div class="col-md-12" style="padding: 0px;">
																					<div class="col-md-2"></div>
																					<div class="col-md-3">
																						<label>User Name</label>
																					</div>
																					<div class="col-md-6">
																						<input type="text" name="user_name" id="user_name" class="form-control"
																							placeholder="Enter User Name " value="<?php echo $dto->user_name; ?>"></input>
																							<input
																							type="hidden" name="creator_id" id="creator_id"   value="<?php echo $dto->creator_id; ?>"
																							>

																					</div>
																				</div>

																				<div class="col-md-12" style="padding: 0px;">
																					<div class="col-md-2"></div>
																					<div class="col-md-3">
																						<label>Password</label>
																					</div>
																					<div class="col-md-6">
																						<input type="text" name="PASSWORD" id="PASSWORD" class="form-control"
																							placeholder="Enter Password " value="<?php echo $dto->PASSWORD; ?>"></input>

																					</div>
																				</div>



																				<div class="col-md-12" style="padding: 0px;">
																					<div class="col-md-2"></div>
																					<div class="col-md-3">
																						<label>Full Name</label>
																					</div>
																					<div class="col-md-6">
																						<input type="text" name="full_name" id="full_name" class="form-control"
																							placeholder="Enter Full Name " value="<?php echo $dto->full_name; ?>"></input>

																					</div>
																				</div>

																				<div class="col-md-12" style="padding: 0px;">
																					<div class="col-md-2"></div>
																					<div class="col-md-3">
																						<label>Mobile</label>
																					</div>
																					<div class="col-md-6">
																						<input type="text" name="mobile" id="mobile" class="form-control"
																							placeholder="Enter Mobile " value="<?php echo $dto->mobile; ?>"></input>

																					</div>
																				</div>

																				<div class="col-md-12" style="padding: 0px; display:none;">
																					<div class="col-md-1">
																						<label>Slider</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="slider"  value="yes" <?php if( $dto->slider =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>
																					<div class="col-md-1">
																						<label>News</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="news"  value="yes" <?php if( $dto->news =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>


																					<div class="col-md-1">
																						<label>Event</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="event"  value="yes" <?php if( $dto->event =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>

																					<div class="col-md-1">
																						<label>Staff</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="staff"  value="yes" <?php if( $dto->staff =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>

																					<div class="col-md-1">
																						<label>Gallery</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="gallery"  value="yes" <?php if( $dto->gallery =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>






																				</div>

																				<div class="col-md-12" style="padding: 0px;display:none;">

																					<div class="col-md-1">
																						<label>Subgallery</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="subgallery"  value="yes" <?php if( $dto->subgallery =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>

																					<div class="col-md-1">
																						<label>Career</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="career"  value="yes" <?php if( $dto->career =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>

																					<div class="col-md-1">
																						<label>Inquiry</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="inquiry"  value="yes" <?php if( $dto->inquiry =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>

																					<div class="col-md-1">
																						<label>User</label>
																					</div>
																					<div class="col-md-1">

									<input type="checkbox" name="user"  value="yes" <?php if( $dto->user =='yes'){ echo "Checked='checked'";} ?>

																						/>
																					</div>





																				</div>


																				<div class="col-md-12" style="padding: 0px;">
																					<div class="col-md-2"></div>
																					<div class="col-md-3">
																						<label>Status </label>
																					</div>
																					<div class="col-md-6">
																						<select name="STATUS" id="STATUS"
																							class="form-control">


																					 <option value="active" <?php if( $dto->STATUS =='active'){ echo 'selected';} ?>>active</option>
																						<option value="block" <?php if( $dto->STATUS =='block'){ echo 'selected';} ?>>block</option>
																						</select>



																					</div>
																				</div>


																				<div class="col-md-12" style="padding: 0px;">
																					<div class="col-md-5">&nbsp;</div>
																					<div class="col-md-7">
																						<input type="submit" name="submit" id="submit" value="Submit"
																							class="submit">
																					</div>

																				</div>

															</form>
  	<?php endforeach; ?>
			</div>
		</div>
	</div>




	<script type="text/javascript" src="<?php echo base_url(); ?>assets/admin_js/js/JQuerylib.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>assets/admin_js/js/JQueryValidate.js"></script>
	<script src="<?php echo base_url(); ?>assets/admin_js/js/jquery.datetimepicker.js"></script>
