106 lines
4.0 KiB
PHP
106 lines
4.0 KiB
PHP
|
<?php $this->load->view('admin/includes/header');
|
||
|
$user_id=$this->session->userdata('id');
|
||
|
$email=$this->session->userdata('email');
|
||
|
$mobile=$this->session->userdata('mobile');
|
||
|
$username=$this->session->userdata('name');?>
|
||
|
<div class="page-container">
|
||
|
<?php $this->load->view('admin/includes/sidebar');?>
|
||
|
<!-- start page content -->
|
||
|
<div class="page-content-wrapper">
|
||
|
<div class="page-content">
|
||
|
<div class="page-bar">
|
||
|
<div class="page-title-breadcrumb">
|
||
|
<div class=" pull-left">
|
||
|
<div class="page-title">Staff Profile</div>
|
||
|
</div>
|
||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>admin/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||
|
</li>
|
||
|
|
||
|
<li class="active"> Profile</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php $this->load->view('admin/includes/msg');?>
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<!-- BEGIN PROFILE SIDEBAR -->
|
||
|
<div class="profile-sidebar">
|
||
|
<div class="card card-topline-aqua">
|
||
|
<div class="card-body no-padding height-9">
|
||
|
|
||
|
<div class="profile-usertitle">
|
||
|
<div class="profile-usertitle-name"> <?=$username;?> </div>
|
||
|
<div class="profile-usertitle-job"> Admin </div>
|
||
|
</div>
|
||
|
<ul class="list-group list-group-unbordered">
|
||
|
<li class="list-group-item">
|
||
|
<b>Email</b> <a class="pull-right"><?=$email;?></a>
|
||
|
</li>
|
||
|
<li class="list-group-item">
|
||
|
<b>Mobile </b> <a class="pull-right"><?=$mobile;?></a>
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
<!-- END SIDEBAR USER TITLE -->
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<!-- END BEGIN PROFILE SIDEBAR -->
|
||
|
<!-- BEGIN PROFILE CONTENT -->
|
||
|
<div class="profile-content">
|
||
|
<div class=" ">
|
||
|
<div class="card card-topline-aqua">
|
||
|
<div class="white-box">
|
||
|
<div class="card card-box">
|
||
|
<div class="card-head">
|
||
|
<header>Edit Profile</header>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<div class="card-body " id="bar-parent">
|
||
|
<?php $table="staff"; $whereData=array('id'=>$user_id);
|
||
|
$showField = array('username','password');
|
||
|
$user_result=$this->commonsql_model->selectTable($table,$whereData,$showField);
|
||
|
if($user_result->num_rows()>0){
|
||
|
$result=$user_result->row();
|
||
|
|
||
|
$password=$result->password;
|
||
|
$log_user_name=$result->username;
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
<form action="<?=base_url();?>user/profile" method="post">
|
||
|
<div class="form-group">
|
||
|
<label for="simpleFormEmail">User Name</label>
|
||
|
<input type="text" name="username" value="<?=$log_user_name;?>" class="form-control" data-validation="required" id="simpleFormEmail" placeholder="User Name">
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="simpleFormPassword">Password</label>
|
||
|
<input type="password" class="form-control" name="new_password" id="simpleFormPassword" placeholder="Password">
|
||
|
<input type="hidden" class="form-control" value="<?=$password;?>" name="old_password" >
|
||
|
<input type="hidden" class="form-control" value="<?=$user_id;?>" name="unique_id" >
|
||
|
</div>
|
||
|
|
||
|
<input type="submit" name="update_profile" class="btn btn-primary" value="Submit">
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!--form end-->
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- END PROFILE CONTENT -->
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- end page content -->
|
||
|
|
||
|
</div>
|
||
|
<!-- end page container -->
|
||
|
<?php $this->load->view('admin/includes/footer');?>
|