<?php
$base_url = base_url();
$this->load->view('layout/admin/header', array('base_url' => $base_url));
$this->load->view('layout/admin/sidebar', array('base_url' => $base_url));
?>
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="#">Trang chủ</a>
							</li>
						</ul><!-- .breadcrumb -->

						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Tìm kiếm ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="icon-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- #nav-search -->
					</div>

					<div class="page-content">
						<div class="page-header">
							<h1>
								Thông tin cá nhân
								<small>
									<i class="icon-double-angle-right"></i>
									Admin
								</small>
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<div class="user-profile row" id="user-profile-3">
									<div class="col-sm-offset-1 col-sm-10">

										<!--form id="profile" class="form-horizontal"-->
											<div class="tabbable">
												<ul class="nav nav-tabs padding-16">
													<li class="active">
														<a href="#edit-basic" data-toggle="tab">
															<i class="green icon-edit bigger-125"></i>
															Thông tin cá nhân
														</a>
													</li>

													<li>
														<a href="#edit-password" data-toggle="tab">
															<i class="blue icon-key bigger-125"></i>
															Đổi mật khẩu
														</a>
													</li>
												</ul>

												<div class="tab-content profile-edit-tab-content">
													<div class="tab-pane in active" id="edit-basic" class="form-horizontal">
														<div class="space-10"></div>
														<form id="frm1" role="form" class="form-horizontal">
														<h4 class="header blue bolder smaller">Thông tin chung</h4>
														
														<div class="form-group">
															<label for="form-field-1" class="col-sm-3 control-label no-padding-right"> Tài khoản </label>
															<div class="col-sm-9">
																<span class="input-icon">
																	<input type="text" name="login_name" placeholder="Tài khoản" value="<?php echo $login_name; ?>" disabled>
																	<i class="icon-user blue"></i>
																</span>
															</div>
															<label class="block clearfix has-error">
																<div class="help-block"> </div>
															</label>
														</div>
														
														
														<div class="form-group">
															<label for="form-field-2" class="col-sm-3 control-label no-padding-right"> Họ tên </label>
															<div class="col-sm-9">
																<span class="input-icon">
																	<input type="text" name="full_name" placeholder="Họ tên" value="<?php echo $full_name; ?>">
																	<i class="icon-user blue"></i>
																</span>
															</div>
															<label class="block clearfix has-error">
																<div class="help-block"> </div>
															</label>
														</div>
					
														<hr>

														<div class="space-4"></div>
														<h4 class="header blue bolder smaller">Thông tin liên hệ</h4>
														<div class="form-group">
															<label for="form-field-3" class="col-sm-3 control-label no-padding-right"> Email </label>
																<div class="col-sm-9">
																	<label class="block clearfix has-error">
																		<span class="input-icon">
																			<input type="text" name="email" placeholder="Email" value="<?php echo $email; ?>">
																			<i class="icon-envelope blue"></i>
																		</span>
																		<div class="help-block" id="email_err"> </div>
																	</label>
																</div>		
															</label>
														</div>
														
														<div class="form-group">
															<label for="form-field-4" class="col-sm-3 control-label no-padding-right"> Phone </label>
																<div class="col-sm-9">
																	<label class="block clearfix has-error">
																		<span class="input-icon">
																			<input type="text" name="phone" placeholder="Phone" value="<?php echo $phone; ?>">
																			<i class="icon-phone blue"></i>
																		</span>
																		<div class="help-block" id="phone_err"> </div>
																	</label>
																</div>
															</label>
														</div>
														
														<div class="clearfix form-actions">
															<div class="col-md-offset-3 col-md-9">
																<button type="button" onclick="return updateInfo();" class="btn btn-info">
																	<i class="icon-ok bigger-110"></i>
																	Cập nhật
																</button>
															</div>
														</div>
														</form>
													</div>

													<div class="tab-pane" id="edit-password">
														<div class="space-10"></div>
														<form id="frm2" class="form-horizontal" role="form">
														<div class="form-group">
															<label for="form-field-passwd" class="col-sm-3 control-label no-padding-right">Mật khẩu hiện tại</label>
															<div class="col-sm-9">
																<label class="block clearfix has-error">
																	<span class="input-icon">
																		<input type="password" name="passwd" id="form-field-pass1">
																		<i class="icon-lock blue"></i>
																	</span>
								
																	<div class="help-block" id="passwd_old_err"> </div>
																</label>
																
															</div>
														</div>
														
														<div class="form-group">
															<label for="form-field-pass1" class="col-sm-3 control-label no-padding-right">Mật khẩu mới</label>

															<div class="col-sm-9">
																<label class="block clearfix has-error">
																	<span class="input-icon">
																		<input type="password" name="passwd_new" id="form-field-pass1">
																		<i class="icon-lock blue"></i>
																	</span>
																	<div class="help-block" id="passwd_new_err"> </div>
																</label>
															</div>
														</div>

														<div class="space-4"></div>

														<div class="form-group">
															<label for="form-field-pass2" class="col-sm-3 control-label no-padding-right">Xác nhận mật khẩu mới</label>

															<div class="col-sm-9">
																<label class="block clearfix has-error">
																	<span class="input-icon">
																		<input type="password" name="confirm_passwd_new" id="form-field-pass2">
																	</span>
																	<div class="help-block" id="confirm_passwd_new_err"> </div>
																</label>
															</div>
														</div>
														<div class="clearfix form-actions">
															<div class="col-md-offset-3 col-md-9">
																<button type="button" onclick="return changePassword();"  class="btn btn-info">
																	<i class="icon-ok bigger-110"></i>
																	Thay đổi mật khẩu
																</button>
															</div>
														</div>
														
														</form>
													</div>
												</div>
											</div>

											
										<!--/form-->
									</div><!-- /span -->
								</div>

								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->
			</div><!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->
<?php
$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/admin.js')));
?>