suseendhiran
@ -42,7 +42,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" class="btn btn-primary">Log in</button>
|
||||
<a class="reset_pass" href="#">Lost your password?</a>
|
||||
<a class="reset_pass" href="<?php echo base_url()?>user/changepassword">Lost your password?</a>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@ -82,7 +82,7 @@
|
||||
<?php if(check_auth() && is_admin() || is_user()){echo user()->name;}else{echo user()->name; }?>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-usermenu pull-right" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="javascript:;"> Profile</a>
|
||||
<a class="dropdown-item" href=<?php echo base_url()?>user/profile/">> Profile</a>
|
||||
<a class="dropdown-item" href="javascript:;">
|
||||
<span class="badge bg-red pull-right">50%</span>
|
||||
<span>Settings</span>
|
||||
|
||||
@ -42,21 +42,23 @@ public function index()
|
||||
|
||||
public function userList()
|
||||
{
|
||||
$user_list = $this->user_model->get_user(user()->business_id);
|
||||
if (is_superadmin()) {
|
||||
$user_list = $this->user_model->get_admin();
|
||||
}
|
||||
else if(is_admin()) {
|
||||
$user_list = $this->user_model->get_user(user()->business_id , "user");
|
||||
}
|
||||
$this->layout->set('tableData', $user_list);
|
||||
$this->layout->buffer('main_content', 'User/user_list');
|
||||
$this->layout->render('default_layout');
|
||||
|
||||
}
|
||||
|
||||
public function addUser($id='empty')
|
||||
public function addUser()
|
||||
{
|
||||
if($id != 'empty')
|
||||
{
|
||||
$userData = $this->Asset_model->get_asset_by_md5_id($id,user()->business_id);
|
||||
$this->layout->set('assetData', $userData);
|
||||
}
|
||||
|
||||
$business = $this->user_model->business();
|
||||
$this->layout->set('data', user());
|
||||
$this->layout->set('business_dropdown', $business);
|
||||
$this->layout->buffer('main_content', 'User/add_user');
|
||||
$this->layout->render('default_layout');
|
||||
|
||||
@ -65,13 +67,13 @@ public function addUser($id='empty')
|
||||
public function createUser()
|
||||
{
|
||||
$data=$this->input->post();
|
||||
$data['business_id'] = user()->business_id;
|
||||
$data['created_by'] = user()->id;
|
||||
// $data['business_id'] = user()->business_id;
|
||||
// $data['created_by'] = user()->id;
|
||||
// $data['role'] = "user";
|
||||
unset($data['confirm_password']);
|
||||
$data['password'] = hash_password($this->input->post('password'));
|
||||
$table="users";
|
||||
$create_assets = $this->MY_Model->insert($data,$table);
|
||||
$create_user = $this->MY_Model->insert($data,$table);
|
||||
redirect('user/userList');
|
||||
|
||||
}
|
||||
@ -79,9 +81,8 @@ public function createUser()
|
||||
|
||||
public function editUser($id)
|
||||
{
|
||||
$table="asset";
|
||||
$assetData = $this->user_model->get_asset_by_md5_id($id,user()->business_id);
|
||||
$this->layout->set('editData', $assetData);
|
||||
$usertData = $this->user_model->get_user_by_md5_id($id,user()->business_id);
|
||||
$this->layout->set('editData', $usertData);
|
||||
$this->layout->buffer('main_content', 'User/edit_user');
|
||||
$this->layout->render('default_layout');
|
||||
|
||||
@ -95,15 +96,72 @@ public function editUsers()
|
||||
$action = $this->input->post();
|
||||
|
||||
$id = $this->input->post('id');
|
||||
$assetData = $this->MY_Model->edit_option($action, $id, $table);
|
||||
$userData = $this->MY_Model->edit_option($action, $id, $table);
|
||||
redirect('user/userList');
|
||||
|
||||
}
|
||||
|
||||
public function deleteAsset($id)
|
||||
public function deleteUser($id)
|
||||
{
|
||||
$Data = $this->user_model->delete_asset_by_md5_id($id,user()->business_id);
|
||||
$Data = $this->user_model->delete_user_by_md5_id($id,user()->business_id);
|
||||
redirect('user/userList');
|
||||
}
|
||||
|
||||
public function activateUser($id)
|
||||
{
|
||||
$Data = $this->user_model->activate_inactive_users($id,user()->business_id);
|
||||
redirect('user/userList');
|
||||
}
|
||||
|
||||
public function profile()
|
||||
{
|
||||
$user_list = $this->MY_Model->get_by_id( user()->id , 'users');
|
||||
$this->layout->set('userData', $user_list);
|
||||
$this->layout->buffer('main_content', 'User/profile');
|
||||
$this->layout->render('default_layout');
|
||||
}
|
||||
|
||||
public function editprofile($id)
|
||||
{
|
||||
$usertData = $this->user_model->get_user_by_md5_id($id,user()->business_id);
|
||||
$this->layout->set('editData', $usertData);
|
||||
$this->layout->buffer('main_content', 'User/edit_profile');
|
||||
$this->layout->render('default_layout');
|
||||
}
|
||||
|
||||
public function editprofiles()
|
||||
{
|
||||
$table="users";
|
||||
$action = $this->input->post();
|
||||
|
||||
$id = $this->input->post('id');
|
||||
//file upload confic
|
||||
$user_image['upload_path'] = APPPATH. '../assets/uploads/profile_picture';
|
||||
$user_image['allowed_types'] = 'jpg|png';
|
||||
$user_image['max_size'] = 80000;
|
||||
//upload
|
||||
$this->load->library('upload', $user_image);
|
||||
$this->upload->initialize($user_image);
|
||||
if ( ! $this->upload->do_upload('profile_image'))
|
||||
{
|
||||
$error = array('error' => $this->upload->display_errors());
|
||||
|
||||
unset($action['profile_image']);
|
||||
} else{
|
||||
$upload_user_image = $this->upload->data();
|
||||
$action['profile_image'] = $upload_user_image['file_name'];
|
||||
|
||||
}
|
||||
|
||||
$userData = $this->MY_Model->edit_option($action, $id, $table);
|
||||
redirect('user/profile');
|
||||
}
|
||||
|
||||
|
||||
public function changepassword()
|
||||
{
|
||||
echo "hai";
|
||||
// $this->load->view('change_password');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ public function get_user($business_id)
|
||||
$this->db->select('*');
|
||||
$this->db->from('users');
|
||||
$this->db->where('business_id', $business_id);
|
||||
// $this->db->where('role', 'admin');
|
||||
$this->db->where('role', 'user');
|
||||
// $this->db->where('role', 'user');
|
||||
// $this->db->where('is_active', 1);
|
||||
$query = $this->db->get();
|
||||
@ -14,7 +14,17 @@ public function get_user($business_id)
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function get_asset_by_md5_id($id,$business_id)
|
||||
public function get_admin()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('users');
|
||||
$this->db->where('role !=', 'sadmin');
|
||||
$query = $this->db->get();
|
||||
$query = $query->result();
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function get_user_by_md5_id($id,$business_id)
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('users');
|
||||
@ -25,7 +35,7 @@ public function get_asset_by_md5_id($id,$business_id)
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function delete_asset_by_md5_id($id,$business_id)
|
||||
public function delete_user_by_md5_id($id,$business_id)
|
||||
{
|
||||
$this->db->where('md5(id)', $id);
|
||||
$this->db->where('business_id', $business_id);
|
||||
@ -35,5 +45,24 @@ public function delete_asset_by_md5_id($id,$business_id)
|
||||
return;
|
||||
}
|
||||
|
||||
public function activate_inactive_users($id,$business_id)
|
||||
{
|
||||
$this->db->where('md5(id)', $id);
|
||||
$this->db->where('business_id', $business_id);
|
||||
$this->db->where('role', 'user');
|
||||
$this->db->set('is_active',1);
|
||||
$this->db->update('users');
|
||||
return;
|
||||
}
|
||||
|
||||
public function business()
|
||||
{
|
||||
$this->db->select('*');
|
||||
$this->db->from('business');
|
||||
$query = $this->db->get();
|
||||
$query = $query->result();
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -43,6 +43,59 @@
|
||||
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
||||
|
||||
<?php if (is_superadmin()) { ?>
|
||||
<div class="item form-group">
|
||||
<?php }
|
||||
if (is_admin()) { ?>
|
||||
<div class="item form-group" hidden>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (is_admin()) { ?>
|
||||
<input type="text" id="business_id" name="business_id" value="<?php echo $data->business_id ?>" class="form-control " hidden>
|
||||
<?php }
|
||||
else if(is_superadmin()) { ?>
|
||||
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Business </label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<select id="business_id" name="business_id" required="required" class="form-control" >
|
||||
<option value="">Select business</option>
|
||||
<?php foreach ($business_dropdown as $key => $value) { ?>
|
||||
<option value="<?php echo $value->uid; ?>"><?php echo $value->business_name; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if (is_admin()) { ?>
|
||||
<input type="text" id="role" name="role" value="user" class="form-control " hidden>
|
||||
<?php }
|
||||
else if(is_superadmin()) { ?>
|
||||
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Role </label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<select id="role" name="role" required="required" class="form-control" >
|
||||
<option value="">Select role</option>
|
||||
<option value="admin">Admin</option>
|
||||
<option value="user">user</option>
|
||||
</select>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<label class="control-label col-md-1 col-sm-1 " for="first-name" hidden> Created By </label>
|
||||
<div class="col-md-2 col-sm-2 ">
|
||||
<input type="text" id="created_by" name="created_by" value="<?php echo $data->created_by ?>" class="form-control " hidden>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <br /> <h6></h6> <div class="x_title"> </div> <br /> -->
|
||||
<!-- --------------------------- -->
|
||||
<div class="item form-group">
|
||||
|
||||
@ -68,21 +121,16 @@
|
||||
<label class="control-label col-md-1 col-sm-1 " for="last-name">Permit </label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<select id="action_permit" name="action_permit" required="required" class="form-control" >
|
||||
<option value="">Select permit</option>
|
||||
<option value="all">All</option>
|
||||
<option value="view">View</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- <label class="control-label col-md-1 col-sm-1 " for="last-name" hidden>Role </label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<select id="role" name="role" required="required" class="form-control" hidden>
|
||||
<option value="admin">Admin</option>
|
||||
<option value="user">User</option>
|
||||
</select>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
<!-- --------------------------- -->
|
||||
<br /> <h6></h6> <div class="x_title"> </div> <br />
|
||||
|
||||
<div class="item form-group">
|
||||
|
||||
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Username </label>
|
||||
@ -102,8 +150,8 @@
|
||||
<span id='message'></span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- --------------------------- -->
|
||||
|
||||
|
||||
<script>
|
||||
@ -132,6 +180,22 @@
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
|
||||
// sadmin create admin onchange function select permit as all default
|
||||
$('#role').on('change', function() {
|
||||
if(this.value == "admin")
|
||||
{
|
||||
$('#action_permit').html('<option value="all">All</option>');
|
||||
$('#action_permit').attr("style", "pointer-events: none;");
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#action_permit').attr("style", "pointer-events: default;");
|
||||
$('#action_permit').html(`<option value="">Select permit</option>
|
||||
<option value="all">All</option>
|
||||
<option value="view">View</option>`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
1
application/modules/User/views/change_password.php
Normal file
@ -0,0 +1 @@
|
||||
<h1>working</h1>
|
||||
94
application/modules/User/views/edit_profile.php
Normal file
@ -0,0 +1,94 @@
|
||||
|
||||
<!-- Body page content -->
|
||||
|
||||
|
||||
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
|
||||
<div class="title_left">
|
||||
<h3>Edit User</h3>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 ">
|
||||
<div class="x_panel">
|
||||
<!-- <div class="x_title"> -->
|
||||
|
||||
<!-- <ul class="nav navbar-right panel_toolbox">
|
||||
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
|
||||
</li>
|
||||
</ul> -->
|
||||
<!-- <h6>General Information</h6> -->
|
||||
<!-- <div class="clearfix"></div> -->
|
||||
<!-- </div> -->
|
||||
<div class="x_content">
|
||||
<br />
|
||||
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>User/editprofiles" enctype="multipart/form-data">
|
||||
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
||||
<input type="hidden" name="id" value="<?php echo $editData->id; ?>">
|
||||
<!-- --------------------------- -->
|
||||
<div class="item form-group">
|
||||
|
||||
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Name </label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<input type="text" id="name" name="name" value="<?php echo $editData->name; ?>" required="required" class="form-control ">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- --------------------------- -->
|
||||
<div class="item form-group">
|
||||
|
||||
<label class="control-label col-md-1 col-sm-1 " for="last-name"> Email </label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<input type="text" id="email" name="email" value="<?php echo $editData->email; ?>" required="required" class="form-control ">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- --------------------------- -->
|
||||
<div class="item form-group">
|
||||
|
||||
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Mobile </label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<input type="text" id="mobile" name="mobile" value="<?php echo $editData->mobile; ?>" required="required" class="form-control ">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- --------------------------- -->
|
||||
<div class="item form-group">
|
||||
|
||||
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Profile </label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<input id="formFile" name="profile_image" class="typeFile" type="file" >
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- --------------------------- -->
|
||||
|
||||
|
||||
<div class="ln_solid"></div>
|
||||
<div class="item form-group">
|
||||
<div class="col-md-6 col-sm-6 offset-md-10">
|
||||
<button class="btn btn-primary" onclick="history.back()">Cancel</button>
|
||||
<button type="submit" class="btn btn-success">Update</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
142
application/modules/User/views/profile.php
Normal file
@ -0,0 +1,142 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<!-- Meta, title, CSS, favicons, etc. -->
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- Font Awesome -->
|
||||
<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
|
||||
<!-- NProgress -->
|
||||
<link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
|
||||
<!-- bootstrap-daterangepicker -->
|
||||
<link href="../vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom Theme Style -->
|
||||
<link href="../build/css/custom.min.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body class="nav-md">
|
||||
<div class="container body">
|
||||
<div class="main_container">
|
||||
|
||||
|
||||
<!-- page content -->
|
||||
<div class="" role="main">
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
<h3>User Profile</h3>
|
||||
</div>
|
||||
|
||||
<div class="title_right">
|
||||
<!-- <div class="col-md-5 col-sm-5 form-group pull-right top_search">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search for...">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-secondary" type="button">Go!</button>
|
||||
</span>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 ">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>User Report
|
||||
<!-- <small>Activity report</small> -->
|
||||
</h2>
|
||||
<ul class="nav navbar-right panel_toolbox">
|
||||
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a class="dropdown-item" href="#">Settings 1</a>
|
||||
<a class="dropdown-item" href="#">Settings 2</a>
|
||||
</div>
|
||||
</li>
|
||||
<li><a class="close-link"><i class="fa fa-close"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="col-md-3 col-sm-3 profile_left">
|
||||
<div class="profile_img">
|
||||
<div id="crop-avatar">
|
||||
<!-- Current avatar -->
|
||||
<?php
|
||||
if ($userData->profile_image == NULL) {
|
||||
?>
|
||||
<img style="width: 100%; display: block;" src="<?php echo base_url(); ?>assets/uploads/profile_picture/profile.jpg ?>" alt="Avatar" title="Change the avatar">
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<img style="width: 100%; display: block;" src="<?php echo base_url(); ?>assets/uploads/profile_picture/<?php echo $userData->profile_image ?> ?>" alt="Avatar" title="Change the avatar">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<h3><?php echo user()->name ?></h3>
|
||||
|
||||
<ul class="list-unstyled user_data">
|
||||
<li><i class="fa fa-envelope user-profile-icon"></i> <?php echo user()->email ?>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<i class="fa fa-phone user-profile-icon"></i> <?php echo user()->mobile ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a class="btn btn-success" href="<?php echo base_url()?>user/editprofile/<?php echo md5(user()->id);?>"><i class="fa fa-edit m-right-xs"></i>Edit Profile</a>
|
||||
<br />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /page content -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- jQuery -->
|
||||
<script src="../vendors/jquery/dist/jquery.min.js"></script>
|
||||
<!-- Bootstrap -->
|
||||
<script src="../vendors/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- FastClick -->
|
||||
<script src="../vendors/fastclick/lib/fastclick.js"></script>
|
||||
<!-- NProgress -->
|
||||
<script src="../vendors/nprogress/nprogress.js"></script>
|
||||
<!-- morris.js -->
|
||||
<script src="../vendors/raphael/raphael.min.js"></script>
|
||||
<script src="../vendors/morris.js/morris.min.js"></script>
|
||||
<!-- bootstrap-progressbar -->
|
||||
<script src="../vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
|
||||
<!-- bootstrap-daterangepicker -->
|
||||
<script src="../vendors/moment/min/moment.min.js"></script>
|
||||
<script src="../vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
|
||||
|
||||
<!-- Custom Theme Scripts -->
|
||||
<script src="../build/js/custom.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,4 +1,22 @@
|
||||
<style>
|
||||
.btn.active {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.btn span:nth-of-type(1) {
|
||||
display: none;
|
||||
}
|
||||
.btn span:last-child {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.btn.active span:nth-of-type(1) {
|
||||
display: block;
|
||||
}
|
||||
.btn.active span:last-child {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<div class="col-md-12 col-sm-12 ">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
@ -19,6 +37,7 @@
|
||||
<th class="column-title">Email </th>
|
||||
<th class="column-title">Mobile </th>
|
||||
<th class="column-title" >Role </th>
|
||||
<th class="column-title" >Permit </th>
|
||||
<th class="column-title" >Action </th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -29,17 +48,20 @@
|
||||
<td class=" "><?php echo $value->email; ?> </td>
|
||||
<td class=" "><?php echo $value->mobile; ?></td>
|
||||
<td class=" "><?php echo $value->role; ?></td>
|
||||
<td class=" "><?php echo $value->action_permit; ?></td>
|
||||
<td style=" text-align: center; font-size: 16px;">
|
||||
<?php if ($value->is_active == 1) { ?>
|
||||
<a href="<?php echo base_url()?>user/editUser/<?php echo md5($value->id);?>" ><i class="fa fa-pencil"></i></a>
|
||||
|
||||
<a href="<?php echo base_url()?>user/deleteAsset/<?php echo md5($value->id);?>" ><i class="fa fa-trash"></i></a>
|
||||
<a href="<?php echo base_url()?>user/deleteUser/<?php echo md5($value->id);?>" >
|
||||
<i class="darkgreen fa fa-check-circle" style="font-size:20px;" title="inactive"></i></a>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($value->is_active == 0) { ?>
|
||||
<a href="<?php echo base_url()?>user/activateUser/<?php echo md5($value->id);?>" >
|
||||
<i class="green fa fa-check-circle" style="font-size:20px;" title="active"></i></a>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($value->is_active == 0) { ?>
|
||||
<a href ><i class="fa fa-ban"></i></a>
|
||||
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
BIN
assets/uploads/profile_picture/Screenshot_(237).png
Normal file
|
After Width: | Height: | Size: 211 KiB |
BIN
assets/uploads/profile_picture/Screenshot_(237)1.png
Normal file
|
After Width: | Height: | Size: 211 KiB |
BIN
assets/uploads/profile_picture/profile.jpg
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
assets/uploads/profile_picture/profile1.jpg
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
assets/uploads/profile_picture/profile2.jpg
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
assets/uploads/profile_picture/profile3.jpg
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
assets/uploads/profile_picture/profile4.jpg
Normal file
|
After Width: | Height: | Size: 7.4 KiB |