Index: pro-violet-viettel/sourcecode/application/modules/admin/controllers/admin_acc.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/controllers/admin_acc.php	(revision 375)
+++ pro-violet-viettel/sourcecode/application/modules/admin/controllers/admin_acc.php	(revision 375)
@@ -0,0 +1,191 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+
+class Admin_Acc extends MX_Controller
+{
+	public function __construct()
+	{
+		parent::__construct();
+		$this->load->helper('cookie');
+	}
+	
+	public function index()
+	{
+		$admin_info = $this->session->userdata('adminInfo');
+		if ($admin_info)
+		{
+			$data['content'] = $this->get_admins();
+			$this->load->view('admin_acc/index', $data);
+		}else
+		{
+			$this->load->view('login');
+		}
+	}
+	
+	public function get_admins()
+	{
+		$this->load->helper('pagging');
+		$this->load->model('admin_model');
+		$data['current_page'] = $this->uri->segment(4, 1);
+		$data['itemsoptions'] = array(10, 25, 50, 100);
+		$data['perpage'] = 10;
+		$data['keyword'] = "";
+		if ($this->input->post('items')) 
+		{
+			$data['perpage'] = $this->input->post('items');
+		}
+		if ($this->input->post('keyword')) {
+            $data['keyword'] = $this->input->post('keyword');
+        }
+		$data['start'] = ($data['current_page'] - 1) * $data['perpage'];
+		$data['total'] = $this->admin_model->get_total_admins($data);
+		$data['admins'] = $this->admin_model->get_list_admins($data);
+		$data['paging_url'] = base_url() . "admin/quan_tri_vien/trang/";
+		$data['num_links'] = 2;
+		$data['paging'] = pagging($data);
+		if ($this->input->is_ajax_request())
+		{
+			return $this->load->view('admin_acc/listview', $data);
+		}
+		return $this->load->view('admin_acc/listview', $data, true);
+	}
+	
+	public function add_admin()
+	{
+		$admin_info = $this->session->userdata('adminInfo');
+		if ($admin_info)
+		{
+			$this->load->helper('email');
+			$result['success'] = 0;
+			$result = array();
+			$input = $this->input->post();
+			$this->load->model('admin_model');
+			if (strlen($input['full_name'])==0)
+			{
+				$result['errors']['full_name_err']="TÃªn Admin khÃŽng ÄÆ°á»£c Äá» trá»ng";
+			}
+			if (strlen($input['login_name'])==0)
+			{
+				$result['errors']['login_name_err']="TÃªn ÄÄng nháº­p khÃŽng ÄÆ°á»£c Äá» trá»ng";
+			}
+			else
+			{
+				if ($this->admin_model->check_exist(array('field'=>'login_name','value'=>$input['login_name'])))
+				{
+					$result['errors']['login_name_err']="TÃªn ÄÄng nháº­p ÄÃ£ ÄÆ°á»£c sá»­ dá»¥ng";
+				}
+			}
+			if (strlen($input['phone'])==0)
+			{
+				$result['errors']['phone_err']="Sá» Äiá»n thoáº¡i khÃŽng ÄÆ°á»£c Äá» trá»ng";
+			}
+			else
+			{
+				if ($this->admin_model->check_exist(array('field'=>'phone','value'=>$input['phone'])))
+				{
+					$result['errors']['phone_err']="Sá» Äiá»n thoáº¡i ÄÃ£ ÄÆ°á»£c sá»­ dá»¥ng";
+				}
+			}
+			if (strlen($input['passwd'])==0)
+			{
+				$result['errors']['pwd1_err']="Máº­t kháº©u khÃŽng ÄÆ°á»£c Äá» trá»ng";
+			}
+			if ($input['passwd'] != $input['pwd2'])
+			{
+				$result['errors']['pwd2_err']="Máº­t kháº©u khÃŽng trÃ¹ng nhau";
+			}
+			if(strlen($input['email'])==0)
+			{
+				$result['errors']['email_err']="Email khÃŽng ÄÆ°á»£c Äá» trá»ng";
+			}else{
+				if(!valid_email($input['email']))
+				{
+					$result['errors']['email_err']="Email khÃŽng ÄÃºng Äá»nh dáº¡ng";
+				}
+			}
+			if (!isset($result['errors']))
+			{
+				unset($input['pwd2']);
+				$input['created_time']=date("Y-m-d H:i:s");
+				$input['updated_time']=date("Y-m-d H:i:s");
+				$this->admin_model->insert($input);
+				$result['success'] = 1;
+			}
+			echo json_encode($result);
+		}else{
+			$this->load->view('login');
+		}
+	}
+	
+	public function edit_admin()
+	{
+		$admin_info = $this->session->userdata('adminInfo');
+		if ($admin_info)
+		{
+			$input = $this->input->post();
+			$result = array();
+			$result['success'] = 0;
+			$admin_id = (int)$this->uri->segment(4, 0);
+			if ($admin_id==0){
+				$result['success'] = 0;
+			}else
+			{
+				$this->load->model('admin_model');
+				$input['updated_time']=date("Y-m-d H:i:s");
+				$this->admin_model->update($admin_id, $input);
+				$result['success'] = 1;
+			}
+			echo json_encode($result);
+		}else
+		{
+			$this->load->view('login');
+		}
+	}
+		
+	public function delete_admin()
+	{
+		$admin_info = $this->session->userdata('adminInfo');
+		if ($admin_info)
+		{
+			$result = array();
+			$result['success'] = 0;
+			$admin_id = (int)$this->uri->segment(4, 0);
+			if ($admin_id == 0){
+				$result['success'] = 0;
+			}else
+			{
+				$this->load->model('admin_model');
+				$this->admin_model->delete($admin_id);
+				$result['success'] = 1;
+			}
+			echo json_encode($result);
+		}else
+		{
+			$this->load->view('login');
+		}
+	}
+	
+	public function get_admin_by_id()
+	{
+		$admin_info = $this->session->userdata('adminInfo');
+		if ($admin_info)
+		{
+			$result = array();
+			$result['success'] = 0;
+			$admin_id = (int)$this->uri->segment(4, 0);
+			if ($admin_id == 0)
+			{
+				$result['success'] = 0;	
+			}else
+			{
+				$this->load->model('admin_model');
+				$data = $this->admin_model->search_by_id($admin_id);
+				$result['item'] = $data;
+				$result['success'] = 1;
+			}
+			echo json_encode($result);
+		}else
+		{
+			$this->load->view('login');
+		}
+	}
+}
Index: pro-violet-viettel/sourcecode/application/modules/admin/controllers/admin_account.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/controllers/admin_account.php	(revision 374)
+++ 	(revision )
@@ -1,110 +1,0 @@
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
-
-class Admin_Account extends MX_Controller
-{
-	public function __construct() 
-	{
-		parent::__construct();
-		$this->load->helper('cookie');
-	}
-	
-	public function index ()
-	{
-		$admin_info = $this->session->userdata('adminInfo');
-		if($admin_info){
-			$this->load->model('admin_model');
-			$data = $this->admin_model->get_list();
-			$this->load->view('admin_acc', array('data'=>$data));
-		}else
-		{
-			redirect("/admin/home");
-		}
-	}
-	
-	public function insert()
-	{
-		$admin_info = $this->session->userdata('adminInfo');
-		if($admin_info)
-		{
-			$login_name = $this->input->post('username');
-			$password = md5($this->input->post('password'));
-			$full_name = $this->input->post('fullname');
-			$email = $this->input->post('email');
-			$phone = $this->input->post('phone');
-			$created_time = date('Y-m-d H:i:s', time());
-			$updated_time = date('Y-m-d H:i:s', time());
-			$data = array('login_name'=>$login_name, 'full_name'=>$full_name, 'email'=>$email, 'phone'=>$phone, 'created_time'=>$created_time, 'updated_time'=>$updated_time);
-			$this->load->model('admin_model');
-			/*
-			$check = $this->admin_model->check_data($login_name);
-			if ($check)
-			{
-				$this->session->flashdata('insert_error');
-				echo "TÃªn ÄÄng nháº­p ÄÃ£ ÄÆ°á»£c sá»­ dá»¥ng !";
-				//redirect("/admin/home/admin_acc");
-			}else
-			{
-				$this->admin_model->insert($data);
-				redirect("/admin/admin_account");
-			}*/
-			$this->admin_model->insert($data);
-			redirect("/admin/admin_account");
-			
-		}else
-		{
-			redirect("/admin/home");
-		}
-	}
-	
-	public function update()
-	{
-		$admin_info = $this->session->userdata('adminInfo');
-		if($admin_info)
-		{
-			$admin_id = (int)$this->input->post('id');
-			$login_name = $this->input->post('username');
-			//$password = $this->input->post('password');
-			$full_name = $this->input->post('fullname');
-			$email = $this->input->post('email');
-			$phone = $this->input->post('phone');
-			$updated_time = date('Y-m-d H:i:s', time());
-			$data = array('login_name'=>$login_name, 'full_name'=>$full_name, 'email'=>$email, 'phone'=>$phone, 'updated_time'=>$updated_time);
-			$this->load->model('user_model');
-			$this->user_model->update($admin_id, $data);
-			redirect("/admin/admin_account");
-		}else
-		{
-			redirect("/admin/home");
-		}	
-	}
-	
-	public function delete()
-	{
-		$admin_info = $this->session->userdata('adminInfo');
-		if($admin_info)
-		{
-			$admin_id = (int)$this->input->post('id');
-			//echo $admin_id;
-			$this->load->model('admin_model');
-			$this->admin_model->delete($admin_id);
-			redirect("/admin/admin_account");
-		}else
-		{
-			redirect("/admin/home");
-		}	
-	}
-	
-	public function check_data()
-	{
-		$login_name = $this->input->post('username');
-		//var_dump($login_name);
-		$this->load->model('admin_model');
-		$check = $this->admin_model->check_data($login_name);
-		if ($check){
-			echo 1;
-		}else
-		{
-			echo 0;
-		}
-	}
-}
Index: pro-violet-viettel/sourcecode/application/modules/admin/controllers/user.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/controllers/user.php	(revision 375)
+++ pro-violet-viettel/sourcecode/application/modules/admin/controllers/user.php	(revision 375)
@@ -0,0 +1,52 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+
+class User extends MX_Controller
+{
+	public function __construct()
+	{
+		parent::__construct();
+		$this->load->helper('cookie');
+	}
+	
+	public function index()
+	{
+		$admin_info = $this->session->userdata('adminInfo');
+		if ($admin_info)
+		{
+			$data['content'] = $this->get_users();
+			$this->load->view('user/index', $data);
+		}else
+		{
+			$this->load->view('login');
+		}
+	}
+	
+	public function get_users()
+	{
+		$this->load->helper('pagging');
+		$this->load->model('user_model');
+		$data['current_page'] = $this->uri->segment(4, 1);
+		$data['itemsoptions'] = array(1, 25, 50, 100);
+		$data['perpage'] = 1;
+		$data['keyword'] = "";
+		if ($this->input->post('items')) 
+		{
+			$data['perpage'] = $this->input->post('items');
+		}
+		if ($this->input->post('keyword')) {
+            $data['keyword'] = $this->input->post('keyword');
+        }
+		$data['start'] = ($data['current_page'] - 1) * $data['perpage'];
+		$data['total'] = $this->user_model->get_total_users($data);
+		$data['users'] = $this->user_model->get_list_users($data);
+		$data['paging_url'] = base_url() . "admin/nguoi_dung/trang/";
+		$data['num_links'] = 2;
+		$data['paging'] = pagging($data);
+		if ($this->input->is_ajax_request())
+		{
+			return $this->load->view('user/listview', $data);
+		}
+		return $this->load->view('user/listview', $data, true);
+	}
+	
+}
Index: pro-violet-viettel/sourcecode/application/modules/admin/controllers/user_account.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/controllers/user_account.php	(revision 374)
+++ 	(revision )
@@ -1,91 +1,0 @@
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
-
-class User_Account extends MX_Controller
-{
-	public function __construct() 
-	{
-		parent::__construct();
-		$this->load->helper('cookie');
-	}
-	
-	public function index ()
-	{
-		$admin_info = $this->session->userdata('adminInfo');
-		if($admin_info){
-			$this->load->model('user_model');
-			$users = $this->user_model->get_list();
-			$this->load->view('user_acc', array('users'=>$users));
-		}else
-		{
-			redirect("/admin/home");
-		}
-	}
-	
-	public function insert()
-	{
-		$admin_info = $this->session->userdata('adminInfo');
-		if($admin_info)
-		{
-			$cellphone = $this->input->post('cellphone');
-			
-			$created_time = date('Y-m-d H:i:s', time());
-			$updated_time = date('Y-m-d H:i:s', time());
-			$data = array('cellphone'=>$cellphone, 'created_time'=>$created_time, 'updated_time'=>$updated_time);
-			$this->load->model('admin_model');
-			$this->admin_model->insert($data);
-			redirect("/admin/user_account");
-			
-		}else
-		{
-			redirect("/admin/home");
-		}
-	}
-	
-	public function update()
-	{
-		$admin_info = $this->session->userdata('adminInfo');
-		if($admin_info)
-		{
-			$user_id = (int)$this->input->post('id');
-			$cellphone = $this->input->post('cellphone');
-			$balance = $this->input->post('balance');
-			$updated_time = date('Y-m-d H:i:s', time());
-			$data = array('cellphone'=>$cellphone, 'acc_balanced'=>$balance, 'updated_time'=>$updated_time);
-			$this->load->model('user_model');
-			$this->user_model->update($user_id, $data);
-			redirect("/admin/user_account");
-		}else
-		{
-			redirect("/admin/home");
-		}	
-	}
-	
-	public function delete()
-	{
-		$admin_info = $this->session->userdata('adminInfo');
-		if($admin_info)
-		{
-			$user_id = (int)$this->input->post('id');
-			$this->load->model('user_model');
-			$this->user_model->delete($user_id);
-			redirect("/admin/user_account");
-		}else
-		{
-			redirect("/admin/home");
-		}	
-	}
-	
-	public function check_data()
-	{
-		$login_name = $this->input->post('username');
-		//var_dump($login_name);
-		$this->load->model('user_model');
-		$check = $this->admin_model->check_data($login_name);
-		if ($check){
-			echo 1;
-		}else
-		{
-			echo 0;
-		}
-	}
-}
Index: pro-violet-viettel/sourcecode/application/modules/admin/models/admin_model.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/models/admin_model.php	(revision 374)
+++ pro-violet-viettel/sourcecode/application/modules/admin/models/admin_model.php	(revision 375)
@@ -31,3 +31,24 @@
 		return $query->num_rows();
 	}
+	
+	function get_list_admins($data)
+	{
+		$sql="SELECT * FROM ".$this->table_name;
+		$data['keyword']='';
+		if ($data['keyword'])
+		{
+			$sql.=" WHERE (login_name LIKE '%".$data['keyword']."%' OR full_name LIKE '%".$data['keyword']."%') ";
+		}
+		return $this->db->query($sql." ORDER BY admin_id DESC LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array();
+	}
+
+	function get_total_admins($data)
+	{
+		$sql="SELECT COUNT(".$this->id_name.") AS total FROM ".$this->table_name;
+		if (isset($data['keyword']))
+		{
+			$sql.=" WHERE (login_name LIKE '%".$data['keyword']."%' OR full_name LIKE '%".$data['keyword']."%') ";
+		}
+		return $this->db->query($sql)->row_array()['total'];
+	}
 }
Index: pro-violet-viettel/sourcecode/application/modules/admin/models/user_model.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/models/user_model.php	(revision 374)
+++ pro-violet-viettel/sourcecode/application/modules/admin/models/user_model.php	(revision 375)
@@ -18,4 +18,24 @@
 		return $query->num_rows();
 	}
+	
+	function get_list_users($data)
+	{
+		$sql="SELECT * FROM ".$this->table_name;
+		$data['keyword']='';
+		if ($data['keyword'])
+		{
+			$sql.=" WHERE (cellphone LIKE '%".$data['keyword']."%' OR collaborator LIKE '%".$data['keyword']."%' OR acc_balanced LIKE '%".$data['keyword']."%') ";
+		}
+		return $this->db->query($sql." ORDER BY us_id DESC LIMIT ".$data['start'].", ".$data['perpage']." ")->result_array();
+	}
 
+	function get_total_users($data)
+	{
+		$sql="SELECT COUNT(".$this->id_name.") AS total FROM ".$this->table_name;
+		if (isset($data['keyword']))
+		{
+			$sql.=" WHERE (cellphone LIKE '%".$data['keyword']."%' OR collaborator LIKE '%".$data['keyword']."%' OR acc_balanced LIKE '%".$data['keyword']."%') ";
+		}
+		return $this->db->query($sql)->row_array()['total'];
+	}
 }
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/admin_acc/index.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/admin_acc/index.php	(revision 375)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/admin_acc/index.php	(revision 375)
@@ -0,0 +1,321 @@
+<?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));
+?>
+<script type="text/javascript">
+    function init_page()
+    {
+        $(".ajax_paging").click(function () {
+            $.ajax({
+                url: $(this).attr("href"),
+                type: "POST",
+                data: $("#admin").serialize(),
+                success: function (data, textStatus, jqXHR)
+                {
+                    $("#content").html(data);
+                    init_page();
+                },
+                error: function (jqXHR, textStatus, errorThrown)
+                {
+                    $(".ajaxloading").hide();
+                }
+            });
+            return false;
+        });
+	}
+	
+	function filter()
+	{
+		$.ajax({
+			url: 'http://viettel.violet.vn/admin/quan_tri_vien/trang/1',
+			type: "POST",
+			data: $("#admin").serialize(),
+			success: function (data, textStatus, jqXHR)
+			{
+				$("#content").html(data);
+				init_page();
+				//$("#keyword").focus();
+				//$("#keyword").setCursorToTextEnd();
+
+			},
+			error: function (jqXHR, textStatus, errorThrown)
+			{
+				$(".ajaxloading").hide();
+			}
+        });
+	}
+		
+</script>
+
+<div class="main-content" id="content">
+    <?php echo $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 -->
+
+<!-- Add Admin -->
+<div tabindex="-1" class="modal fade in" id="addAdmin">
+	<div class="modal-dialog">
+		<div class="modal-content">
+			<div class="modal-header no-padding">
+				<div class="table-header">
+					<button aria-hidden="true" data-dismiss="modal" class="close" type="button">
+						<span class="white">Ã</span>
+					</button>
+					Táº¡o quáº£n trá» viÃªn
+				</div>
+			</div>
+
+			<div class="modal-body">
+				<form id="add_frm" onsubmit="return false;" class="form-horizontal" role="form">
+						<div class="form-group">
+						<label for="form-field-3" class="col-sm-3 control-label no-padding-right"> Há» tÃªn </label>
+						<div class="col-sm-9">
+							<label class="block clearfix has-error">
+								<span class="input-icon">
+									<input type="text" name="full_name" placeholder="Há» tÃªn" id="form-field-3">
+									<i class="icon-user blue"></i>
+								</span>
+								<div class="help-block" id="full_name_err" > </div>
+							</label>
+						</div>
+						<div class="help-block"> </div>
+					</div>
+					
+					<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">
+							
+							<label class="block clearfix has-error">
+								<span class="input-icon">
+									<input type="text" name="login_name" placeholder="TÃ i khoáº£n" id="form-field-1">
+									<i class="icon-user blue"></i>
+								</span>
+								<div class="help-block" id="login_name_err" > </div>
+							</label>
+							
+						</div>
+					</div>
+
+					<div class="form-group">
+						<label for="form-field-2" class="col-sm-3 control-label no-padding-right"> Máº­t kháº©u </label>
+						<div class="col-sm-9">
+							<label class="block clearfix has-error">
+								<span class="input-icon">
+									<input type="password" name="passwd" placeholder="Máº­t kháº©u" id="form-field-2">
+									<i class="icon-lock blue"></i>
+								</span>
+								
+								<div class="help-block" id="pwd1_err"> </div>
+							</label>
+						</div>			
+					</div>
+					<div class="space-4"></div>
+					
+					<div class="form-group">
+						<label for="form-field-2" class="col-sm-3 control-label no-padding-right">XÃ¡c nháº­n máº­t kháº©u </label>
+						<div class="col-sm-9">
+							<label class="block clearfix has-error">
+								<span class="input-icon">
+									<input type="password" name="pwd2" placeholder="Nháº­p láº¡i máº­t kháº©u" id="form-field-2">
+									<i class="icon-lock blue"></i>
+								</span>
+								
+								<div class="help-block" id="pwd2_err"> </div>
+							</label>
+						</div>			
+					</div>
+					<div class="space-4"></div>	
+					
+					<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" id="form-field-3">
+									<i class="icon-envelope blue"></i>
+								</span>
+								<div class="help-block" id="email_err"> </div>
+							</label>
+						</div>
+						<div class="help-block"> </div>
+					</div>
+
+					<div class="space-4"></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" id="form-field-4">
+									<i class="icon-phone blue"></i>
+								</span>
+								<div class="help-block" id="phone_err"> </div>
+							</label>
+						</div>
+						<div class="help-block"> </div>
+					</div>
+					<div class="space-4"></div>
+					
+					<div class="clearfix form-actions">
+						<div class="col-md-offset-3 col-md-9">
+							<button class="btn btn-info" id="add" type="button">
+								<i class="icon-ok bigger-110"></i>
+								HoÃ n táº¥t
+							</button>
+
+							&nbsp; &nbsp; &nbsp;
+							<button type="reset" name="reset" class="btn">
+								<i class="icon-undo bigger-110"></i>
+								XÃ³a háº¿t
+							</button>
+						</div>
+					</div>
+
+					</div>
+				</form>
+			</div>
+		</div>
+	</div><!-- /.modal-content -->
+</div><!-- /.modal-dialog -->
+
+<!-- Edit Admin -->
+<div tabindex="-1" class="modal fade in" id="editAdmin">
+	<div class="modal-dialog">
+		<div class="modal-content">
+			<div class="modal-header no-padding">
+				<div class="table-header">
+					<button aria-hidden="true" data-dismiss="modal" class="close" type="button">
+						<span class="white">Ã</span>
+					</button>
+					Sá»­a quáº£n trá» viÃªn
+				</div>
+			</div>
+	
+			<div class="modal-body">
+				<form id="edit_frm" onsubmit="return false;" class="form-horizontal" role="form">
+					<input type="hidden" name="admin_id" id="form-field-0" value="">
+					
+					<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" id="form-field-2" value="">
+								<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-1" class="col-sm-3 control-label no-padding-right"> TÃ i khoáº£n </label>
+						<div class="col-sm-9">
+							<label class="block clearfix has-error">
+								<span class="input-icon">
+									<input type="text" name="login_name" placeholder="TÃ i khoáº£n" id="form-field-1" value="">
+									<i class="icon-user blue"></i>
+								</span>
+								<div class="help-block"> </div>
+							</label>
+						</div>
+					</div>
+
+					<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">
+							<span class="input-icon">
+								<input type="text" name="email" placeholder="Email" id="form-field-3" value="">
+								<i class="icon-envelope 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-4" class="col-sm-3 control-label no-padding-right"> Phone </label>
+						<div class="col-sm-9">
+							<span class="input-icon">
+								<input type="text" name="phone" placeholder="Phone" id="form-field-4" value="">
+								<i class="icon-phone blue"></i>
+							</span>
+						</div>
+						<label class="block clearfix has-error">
+							<div class="help-block"> </div>
+						</label>
+						
+					</div>
+
+					<div class="space-4"></div>
+					<div class="clearfix form-actions">
+						<div class="col-md-offset-3 col-md-9">
+							<button type="button" id="edit" class="btn btn-info">
+								<i class="icon-ok bigger-110"></i>
+								HoÃ n táº¥t
+							</button>
+
+							&nbsp; &nbsp; &nbsp;
+							<button type="reset" name="reset" class="btn">
+								<i class="icon-undo bigger-110"></i>
+								XÃ³a háº¿t
+							</button>
+						</div>
+					</div>
+				</form>
+			</div>
+		</div>
+	</div>
+</div>
+<!-- End Edit Admin -->
+
+<!-- Delete Admin -->
+<div tabindex="-1" class="modal fade in" id="deleteAdmin">
+	<div class="modal-dialog">
+		<div class="modal-content">
+			<div class="modal-header no-padding">
+				<div class="table-header">
+					<button aria-hidden="true" data-dismiss="modal" class="close" type="button">
+						<span class="white">Ã</span>
+					</button>
+					XÃ³a quáº£n trá» viÃªn
+				</div>
+			</div>
+			
+			<div class="modal-body">
+				<form id="delete_frm" onsubmit="return false;" class="form-horizontal" role="form">
+					<div class="form-group">
+						<center><h4> Cháº¯c cháº¯n muá»n xÃ³a tÃ i khoáº£n nÃ y? </h4></center>
+					</div>
+					<div class="clearfix form-actions">
+						<div class="col-md-offset-3 col-md-9">
+							<button type="button" id="delete" class="btn btn-info">
+								<i class="icon-ok bigger-110"></i>
+								XÃ³a
+							</button>
+
+							&nbsp; &nbsp; &nbsp;
+							<button type="reset" name="reset" class="btn" data-dismiss="modal">
+								<i class="icon-undo bigger-110"></i>
+								Há»§y
+							</button>
+						</div>
+					</div>
+				</form>
+			</div>
+		</div>
+	</div>
+</div>					
+<!-- End Delete User -->
+<?php
+$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/admin.js')));
+?>
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/admin_acc/listview.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/admin_acc/listview.php	(revision 375)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/admin_acc/listview.php	(revision 375)
@@ -0,0 +1,198 @@
+<div id="breadcrumbs" class="breadcrumbs">
+
+    <ul class="breadcrumb">
+        <li>
+            <i class="icon-home home-icon"></i>
+            <a href="#">Trang chá»§</a>
+        </li>
+
+        <li>
+            <a href="#">Quáº£n lÃœ tÃ i khoáº£n</a>
+        </li>
+        <li>
+            <a href="#">Quáº£n trá» viÃªn</a>
+        </li>
+        <li class="active">Danh sÃ¡ch</li>
+    </ul><!-- .breadcrumb -->
+
+    <div id="nav-search" class="nav-search">
+        <form class="form-search">
+            <span class="input-icon">
+                <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="TÃ¬m kiáº¿m ...">
+                <i class="icon-search nav-search-icon"></i>
+            </span>
+        </form>
+    </div><!-- #nav-search -->
+</div>
+<div class="page-content">
+    <div class="page-header">
+        <h1>
+            Quáº£n trá» viÃªn
+            <small>
+                <i class="icon-double-angle-right"></i>
+                Danh sÃ¡ch
+            </small>
+        </h1>
+    </div><!-- /.page-header -->
+
+    <div class="row">
+        <div class="col-xs-12">
+            <!-- PAGE CONTENT BEGINS -->
+            <div style="padding-bottom:4px" class="table-header">
+                Danh sÃ¡ch
+
+                <button href="#addAdmin" data-toggle="modal" class="btn btn-success pull-right">
+                    <i class="icon-plus"></i>
+                    ThÃªm quáº£n trá» viÃªn
+                </button>
+
+            </div>
+
+            <div class="table-responsive">
+                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
+                    <form onsubmit="return false;" id="admin" >
+                        <div class="row">
+                            <div class="col-sm-6">
+                                <div id="sample-table-2_length" class="dataTables_length"><label>Hiá»n thá» 
+                                        <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">                                      
+                                            <?php foreach ($itemsoptions as $option) { ?>
+                                            <option <?php if($option == $perpage) echo "selected"; ?> value="<?=$option?>"><?=$option?></option>
+                                            <?php } ?>
+                                        </select> báº£n ghi</label>
+
+                                </div>
+                            </div>
+
+                            <div class="col-sm-6">
+                                <div class="dataTables_filter" id="sample-table-2_filter">
+                                    <label>TÃ¬m kiáº¿m: 
+                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>
+                                </div>
+                            </div>
+                        </div>
+                    </form>
+                    <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
+                        <thead>
+                            <tr role="row">
+                                <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
+                                    <label>
+                                        <input type="checkbox" class="ace">
+                                        <span class="lbl"></span>
+                                    </label>
+                                </th>
+                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Sá» Äiá»n thoáº¡i: activate to sort column ascending">Sá» Äiá»n thoáº¡i</th>
+								<th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 183px;" aria-label="Há» tÃªn: activate to sort column ascending">Há» tÃªn</th>
+								<th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 183px;" aria-label="Há» tÃªn: activate to sort column ascending">TÃªn ÄÄng nháº­p</th>
+                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 209px;" aria-label="NgÃ y ÄÄng kÃœ: activate to sort column ascending">
+                                    <i class="icon-time bigger-110 hidden-480"></i>
+                                    NgÃ y ÄÄng kÃœ
+                                </th>
+                                <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 158px;" aria-label="Tráº¡ng thÃ¡i: activate to sort column ascending">Tráº¡ng thÃ¡i</th><th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label=""></th></tr>
+                        </thead>
+
+                        <tbody role="alert" aria-live="polite" aria-relevant="all">
+                            
+                            <?php
+                            foreach ($admins as $admin) {
+                                ?>
+                            <tr class="odd">
+                                <td class="center  sorting_1">
+                                    <label>
+                                        <input type="checkbox" class="ace">
+                                        <span class="lbl"></span>
+                                    </label>
+                                </td>
+
+                                <td class=" ">
+                                    <a href="#"><?php echo $admin['phone']; ?></a>
+                                </td>
+                                <td class="hidden-480 "><?php echo $admin['full_name']; ?></td>
+								<td class="hidden-480 "><?php echo $admin['login_name']; ?></td>
+                                <td class=" "><?php echo $admin['created_time']; ?></td>
+
+                                <td class="hidden-480 ">
+                                    <span class="label label-sm label-success">ÄÃ£ kÃ­ch hoáº¡t</span>
+                                </td>
+
+                                <td class=" ">
+                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
+                                        <a href="#" class="blue">
+                                            <i class="icon-zoom-in bigger-130"></i>
+                                        </a>
+
+                                        <a href="#editAdmin" data-toggle="modal" data-admin-id=<?php echo $admin['admin_id']; ?> class="green">
+                                            <i class="icon-pencil bigger-130"></i>
+                                        </a>
+
+                                        <a href="#deleteAdmin" data-toggle="modal" data-admin-id=<?php echo $admin['admin_id']; ?> class="red">
+                                            <i class="icon-trash bigger-130"></i>
+                                        </a>
+                                    </div>
+
+                                    <div class="visible-xs visible-sm hidden-md hidden-lg">
+                                        <div class="inline position-relative">
+                                            <button data-toggle="dropdown" class="btn btn-minier btn-yellow dropdown-toggle">
+                                                <i class="icon-caret-down icon-only bigger-120"></i>
+                                            </button>
+
+                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
+                                                <li>
+                                                    <a title="" data-rel="tooltip" class="tooltip-info" href="#" data-original-title="View">
+                                                        <span class="blue">
+                                                            <i class="icon-zoom-in bigger-120"></i>
+                                                        </span>
+                                                    </a>
+                                                </li>
+
+                                                <li>
+                                                    <a title="" data-rel="tooltip" class="tooltip-success" href="#" data-original-title="Edit">
+                                                        <span class="green">
+                                                            <i class="icon-edit bigger-120"></i>
+                                                        </span>
+                                                    </a>
+                                                </li>
+
+                                                <li>
+                                                    <a title="" data-rel="tooltip" class="tooltip-error" href="#" data-original-title="Delete">
+                                                        <span class="red">
+                                                            <i class="icon-trash bigger-120"></i>
+                                                        </span>
+                                                    </a>
+                                                </li>
+                                            </ul>
+                                        </div>
+                                    </div>
+                                </td>
+                            </tr>
+                            <?php } ?>
+
+                        </tbody></table><div class="row"><div class="col-sm-6">
+                                <div class="dataTables_info" id="sample-table-2_info">Hiá»n thá» <?php echo ($start+1)?> Äáº¿n <?php echo ($start+$perpage)?> cá»§a <?php echo $total?> báº£n ghi</div>
+                                    
+                            </div>
+                        <div class="col-sm-6">
+                            <div class="dataTables_paginate paging_bootstrap">
+                                <ul class="pagination">
+                                    <?php echo $paging; ?>
+                                </ul>
+                            </div>
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            
+        </div>
+
+        <!-- PAGE CONTENT ENDS -->
+    </div><!-- /.col -->
+</div>
+<script type="text/javascript">
+    window.onload = function ()
+    {
+        init_page();
+    }
+
+
+</script>
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php	(revision 374)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php	(revision 375)
@@ -175,5 +175,5 @@
 
                     <div class="space-4"></div>
-                    <div class="form-group errors" id="add_user">
+                    <div class="form-group errors" id="add_user"></div>
                         
                     </div>
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/index.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/index.php	(revision 374)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/index.php	(revision 375)
@@ -183,4 +183,4 @@
 		</div><!-- /.main-container -->
 <?php 
-$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('admin/collaborator.js',)));
+$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/collaborator.js',)));
 ?>
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/user/index.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/user/index.php	(revision 375)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/user/index.php	(revision 375)
@@ -0,0 +1,160 @@
+<?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));
+?>
+<script type="text/javascript">
+    function init_page()
+    {
+        $(".ajax_paging").click(function () {
+            $.ajax({
+                url: $(this).attr("href"),
+                type: "POST",
+                data: $("#user").serialize(),
+                success: function (data, textStatus, jqXHR)
+                {
+                    $("#content").html(data);
+                    init_page();
+                },
+                error: function (jqXHR, textStatus, errorThrown)
+                {
+                    $(".ajaxloading").hide();
+                }
+            });
+            return false;
+        });
+	}
+	
+	function filter()
+	{
+		$.ajax({
+			url: 'http://viettel.violet.vn/admin/nguoi_dung/trang/1',
+			type: "POST",
+			data: $("#user").serialize(),
+			success: function (data, textStatus, jqXHR)
+			{
+				$("#content").html(data);
+				init_page();
+				//$("#keyword").focus();
+				//$("#keyword").setCursorToTextEnd();
+
+			},
+			error: function (jqXHR, textStatus, errorThrown)
+			{
+				$(".ajaxloading").hide();
+			}
+        });
+	}
+		
+</script>
+
+<div class="main-content" id="content">
+    <?php echo $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 -->
+
+<div id="addUser" class="modal fade in" tabindex="-1">
+    <div class="modal-dialog">
+        <div class="modal-content">
+            <div class="modal-header no-padding">
+                <div class="table-header">
+                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
+                        <span class="white">Ã</span>
+                    </button>
+                    ThÃªm ngÆ°á»i dÃ¹ng
+                </div>
+            </div>
+
+            <div class="modal-body">
+                <form id="add_user" onsubmit="return false;" class="form-horizontal" role="form">
+                    <div class="form-group">
+                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Sá» Äiá»n thoáº¡i </label>
+
+                        <div class="col-sm-9">
+                            <span class="input-icon">
+                                <input name="full_name" type="text" id="form-field-1" placeholder="TÃªn cá»ng tÃ¡c viÃªn">
+                                <i class="icon-user blue"></i>
+                            </span>
+                        </div>
+                        <div class="help-block"> </div>
+                    </div>
+                    <div class="form-group">
+                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> TÃªn ÄÄng nháº­p </label>
+
+                        <div class="col-sm-9">
+                            <span class="input-icon">
+                                <input name="login_name" type="text" id="form-field-1" placeholder="TÃ i khoáº£n">
+                                <i class="icon-user blue"></i>
+                            </span>
+                        </div>
+                        <div class="help-block"> </div>
+                    </div>
+                    <div class="form-group">
+                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Sá» Äiá»n thoáº¡i</label>
+
+                        <div class="col-sm-9">
+                            <span class="input-icon">
+                                <input name="cellphone" type="text" id="form-field-1" placeholder="Sá» Äiá»n thoáº¡i">
+                                <i class="icon-user blue"></i>
+                            </span>
+                        </div>
+                        <div class="help-block"> </div>
+                    </div>
+                    <div class="space-4"></div>
+
+                    <div class="form-group">
+                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> Máº­t kháº©u </label>
+
+                        <div class="col-sm-9">
+                            <span class="input-icon">
+                                <input type="password" name="passwd" id="form-field-2" placeholder="Máº­t kháº©u">
+                                <i class="icon-lock blue"></i>
+                            </span>
+                        </div>
+                        <div class="help-block"> </div>
+                    </div>
+                    <div class="form-group">
+                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> Máº­t kháº©u </label>
+
+                        <div class="col-sm-9">
+                            <span class="input-icon">
+                                <input type="password" name="passwd2" id="form-field-2" placeholder="Nháº­p láº¡i máº­t kháº©u">
+                                <i class="icon-lock blue"></i>
+                            </span>
+                        </div>
+                        <div class="help-block"> </div>
+                    </div>
+
+                    <div class="space-4"></div>
+                    <div class="form-group errors" id="add_user">
+                        
+                    </div>
+                    <div class="clearfix form-actions">
+                        <div class="col-md-offset-3 col-md-9">
+                            <button class="btn btn-info" id="add_user" type="button">
+                                <i class="icon-ok bigger-110"></i>
+                                HoÃ n táº¥t
+                            </button>
+
+                            &nbsp; &nbsp; &nbsp;
+                            <button class="btn" type="reset">
+                                <i class="icon-undo bigger-110"></i>
+                                XÃ³a háº¿t
+                            </button>
+                        </div>
+                    </div>
+
+                </form></div>
+
+        </div>
+    </div><!-- /.modal-content -->
+</div><!-- /.modal-dialog -->
+
+<?php
+$this->load->view('layout/admin/footer', array('base_url' => $base_url));
+?>
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php	(revision 375)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php	(revision 375)
@@ -0,0 +1,202 @@
+<div id="breadcrumbs" class="breadcrumbs">
+
+    <ul class="breadcrumb">
+        <li>
+            <i class="icon-home home-icon"></i>
+            <a href="#">Trang chá»§</a>
+        </li>
+
+        <li>
+            <a href="#">Quáº£n lÃœ tÃ i khoáº£n</a>
+        </li>
+        <li>
+            <a href="#">NgÆ°á»i dÃ¹ng</a>
+        </li>
+        <li class="active">Danh sÃ¡ch</li>
+    </ul><!-- .breadcrumb -->
+
+    <div id="nav-search" class="nav-search">
+        <form class="form-search">
+            <span class="input-icon">
+                <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="TÃ¬m kiáº¿m ...">
+                <i class="icon-search nav-search-icon"></i>
+            </span>
+        </form>
+    </div><!-- #nav-search -->
+</div>
+<div class="page-content">
+    <div class="page-header">
+        <h1>
+            NgÆ°á»i dÃ¹ng
+            <small>
+                <i class="icon-double-angle-right"></i>
+                Danh sÃ¡ch
+            </small>
+        </h1>
+    </div><!-- /.page-header -->
+
+    <div class="row">
+        <div class="col-xs-12">
+            <!-- PAGE CONTENT BEGINS -->
+            <div style="padding-bottom:4px" class="table-header">
+                Danh sÃ¡ch
+
+                <button href="#addUser" data-toggle="modal" class="btn btn-success pull-right">
+                    <i class="icon-plus"></i>
+                    ThÃªm ngÆ°á»i dÃ¹ng
+                </button>
+
+            </div>
+
+            <div class="table-responsive">
+                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
+                    <form onsubmit="return false;" id="user" >
+                        <div class="row">
+                            <div class="col-sm-6">
+                                <div id="sample-table-2_length" class="dataTables_length"><label>Hiá»n thá» 
+                                        <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">                                      
+                                            <?php foreach ($itemsoptions as $option) { ?>
+                                            <option <?php if($option == $perpage) echo "selected"; ?> value="<?=$option?>"><?=$option?></option>
+                                            <?php } ?>
+                                        </select> báº£n ghi</label>
+
+                                </div>
+                            </div>
+
+                            <div class="col-sm-6">
+                                <div class="dataTables_filter" id="sample-table-2_filter">
+                                    <label>TÃ¬m kiáº¿m: 
+                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>
+                                </div>
+                            </div>
+                        </div>
+                    </form>
+                    <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
+                        <thead>
+                            <tr role="row">
+                                <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
+                                    <label>
+                                        <input type="checkbox" class="ace">
+                                        <span class="lbl"></span>
+                                    </label>
+                                </th>
+                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Sá» Äiá»n thoáº¡i: activate to sort column ascending">Sá» Äiá»n thoáº¡i</th>
+                                <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 122px;" aria-label="Tiá»n: activate to sort column ascending">Tiá»n</th>
+                                <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 209px;" aria-label="NgÃ y ÄÄng kÃœ: activate to sort column ascending">
+                                    <i class="icon-time bigger-110 hidden-480"></i>
+                                    NgÃ y ÄÄng kÃœ
+                                </th>
+                                <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 158px;" aria-label="Tráº¡ng thÃ¡i: activate to sort column ascending">Tráº¡ng thÃ¡i</th><th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label=""></th></tr>
+                        </thead>
+
+                        <tbody role="alert" aria-live="polite" aria-relevant="all">
+                            
+                            <?php
+                            foreach ($users as $user) {
+                                ?>
+                            <tr class="odd">
+                                <td class="center  sorting_1">
+                                    <label>
+                                        <input type="checkbox" class="ace">
+                                        <span class="lbl"></span>
+                                    </label>
+                                </td>
+
+                                <td class=" ">
+                                    <a href="#"><?php echo $user['cellphone']; ?></a>
+                                </td>
+                                <td class="hidden-480 "><?php echo $user['acc_balanced']; ?></td>
+                                <td class=" "><?php echo $user['created_time']; ?></td>
+
+                                <td class="hidden-480 ">
+                                    <span class="label label-sm label-success">ÄÃ£ kÃ­ch hoáº¡t</span>
+                                </td>
+
+                                <td class=" ">
+                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
+                                        <a href="#" class="blue">
+                                            <i class="icon-zoom-in bigger-130"></i>
+                                        </a>
+
+                                        <a href="#" class="green">
+                                            <i class="icon-pencil bigger-130"></i>
+                                        </a>
+
+                                        <a href="#" class="red">
+                                            <i class="icon-trash bigger-130"></i>
+                                        </a>
+                                    </div>
+
+                                    <div class="visible-xs visible-sm hidden-md hidden-lg">
+                                        <div class="inline position-relative">
+                                            <button data-toggle="dropdown" class="btn btn-minier btn-yellow dropdown-toggle">
+                                                <i class="icon-caret-down icon-only bigger-120"></i>
+                                            </button>
+
+                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
+                                                <li>
+                                                    <a title="" data-rel="tooltip" class="tooltip-info" href="#" data-original-title="View">
+                                                        <span class="blue">
+                                                            <i class="icon-zoom-in bigger-120"></i>
+                                                        </span>
+                                                    </a>
+                                                </li>
+
+                                                <li>
+                                                    <a title="" data-rel="tooltip" class="tooltip-success" href="#" data-original-title="Edit">
+                                                        <span class="green">
+                                                            <i class="icon-edit bigger-120"></i>
+                                                        </span>
+                                                    </a>
+                                                </li>
+
+                                                <li>
+                                                    <a title="" data-rel="tooltip" class="tooltip-error" href="#" data-original-title="Delete">
+                                                        <span class="red">
+                                                            <i class="icon-trash bigger-120"></i>
+                                                        </span>
+                                                    </a>
+                                                </li>
+                                            </ul>
+                                        </div>
+                                    </div>
+                                </td>
+                            </tr>
+                            <?php } ?>
+
+
+
+
+
+
+
+                        </tbody></table><div class="row"><div class="col-sm-6">
+                                <div class="dataTables_info" id="sample-table-2_info">Hiá»n thá» <?php echo ($start+1)?> Äáº¿n <?php echo ($start+$perpage)?> cá»§a <?php echo $total?> báº£n ghi</div>
+                                    
+                            </div>
+                        <div class="col-sm-6">
+                            <div class="dataTables_paginate paging_bootstrap">
+                                <ul class="pagination">
+                                    <?php echo $paging; ?>
+                                </ul>
+                            </div>
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            
+        </div>
+
+        <!-- PAGE CONTENT ENDS -->
+    </div><!-- /.col -->
+</div>
+<script type="text/javascript">
+    window.onload = function ()
+    {
+        init_page();
+    }
+
+
+</script>
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/user_acc.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/user_acc.php	(revision 374)
+++ 	(revision )
@@ -1,370 +1,0 @@
-<?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>
-
-							<li>
-								<a href="#">Quáº£n lÃœ tÃ i khoáº£n</a>
-							</li>
-							<li>
-								<a href="#">NgÆ°á»i dÃ¹ng</a>
-							</li>
-							<li class="active">Thá»ng kÃª tÃ i khoáº£n</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>
-								NgÆ°á»i dÃ¹ng
-								<small>
-									<i class="icon-double-angle-right"></i>
-									thá»ng kÃª tÃ i khoáº£n
-								</small>
-							</h1>
-						</div><!-- /.page-header -->
-						
-						<script src="<?php echo $base_url;?>assets/js/jquery-2.0.3.min.js"></script>
-						<script src="<?php echo $base_url;?>assets/js/jquery.dataTables.min.js"></script>
-						<script src="<?php echo $base_url;?>assets/js/jquery.dataTables.bootstrap.js"></script>
-						<script type="text/javascript">
-							
-							jQuery(function($) {
-								var oTable1 = $('#sample-table-2').dataTable( {
-								"aoColumns": [
-								  { "bSortable": false },
-								  null, null,null, null,
-								  { "bSortable": false }
-								] } );
-								
-								
-								$('table th input:checkbox').on('click' , function(){
-									var that = this;
-									$(this).closest('table').find('tr > td:first-child input:checkbox')
-									.each(function(){
-										this.checked = that.checked;
-										$(this).closest('tr').toggleClass('selected');
-									});
-										
-								});
-							
-							});
-						</script>
-
-						<div class="row">
-							<div class="col-xs-12">
-								<!-- PAGE CONTENT BEGINS -->
-								<div class="table-header" style="padding-bottom:4px">
-									Thá»ng kÃª tÃ i khoáº£n
-
-									<button class="btn btn-success pull-right" data-toggle="modal" href="#addUser">
-										<i class="icon-plus"></i>
-										ThÃªm thÃ nh viÃªn
-									</button>
-										
-								</div>
-
-								<div class="table-responsive">
-									<table id="sample-table-2" class="table table-striped table-bordered table-hover">
-										<thead>
-											<tr>
-												<th class="center">
-													<label>
-														<input type="checkbox" class="ace" />
-														<span class="lbl"></span>
-													</label>
-												</th>
-												<th>Sá» Äiá»n thoáº¡i</th>
-												<th class="hidden-480">Tiá»n</th>
-
-												<th>
-													<i class="icon-time bigger-110 hidden-480"></i>
-													NgÃ y ÄÄng kÃœ
-												</th>
-												<th class="hidden-480">Tráº¡ng thÃ¡i</th>
-
-												<th></th>
-											</tr>
-										</thead>
-
-										<tbody>
-											<?php foreach ($users as $key=>$user): ?>
-											<tr>
-												<td class="center">
-													<label>
-														<input type="checkbox" class="ace" />
-														<span class="lbl"></span>
-													</label>
-												</td>
-
-												<td>
-													<a href="#"><?php echo $user->cellphone; ?></a>
-												</td>
-												<td class="hidden-480"><?php echo $user->acc_balanced; ?></td>
-												<td><?php echo $user->created_time; ?></td>
-
-												<td class="hidden-480">
-													<span class="label label-sm label-success">KÃ­ch hoáº¡t</span>
-												</td>
-
-												<td>
-													<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
-														<a class="blue" href="#">
-															<i class="icon-zoom-in bigger-130"></i>
-														</a>
-											
-														<a class="green" data-us-index=<?php echo $key; ?> data-toggle="modal" href="#editUser" title="Edit">
-															<i class="icon-pencil bigger-130"></i>
-														</a>
-
-														<a class="red" data-us-id=<?php echo $user->us_id; ?> data-toggle="modal" href="#deleteUser" title="Delete">
-															<i class="icon-trash bigger-130"></i>
-														</a>
-													</div>
-
-													<div class="visible-xs visible-sm hidden-md hidden-lg">
-														<div class="inline position-relative">
-															<button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
-																<i class="icon-caret-down icon-only bigger-120"></i>
-															</button>
-
-															<ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
-																<li>
-																	<a href="#" class="tooltip-info" data-rel="tooltip" title="View">
-																		<span class="blue">
-																			<i class="icon-zoom-in bigger-120"></i>
-																		</span>
-																	</a>
-																</li>
-
-																<li>
-																	<a class="green" data-us-index=<?php echo $key; ?> data-toggle="modal" href="#editUser" title="Edit">
-																		<span class="green">
-																			<i class="icon-edit bigger-120"></i>
-																		</span>
-																	</a>
-																</li>
-
-																<li>
-																	<a class="red" data-admin-id=<?php echo $user->us_id; ?> data-toggle="modal" href="#deleteUser" title="Delete">
-																		<span class="red">
-																			<i class="icon-trash bigger-120"></i>
-																		</span>
-																	</a>
-																</li>
-															</ul>
-														</div>
-													</div>
-												</td>
-											</tr>
-											<?php endforeach; ?>
-										</tbody>
-									</table>
-								</div>
-								
-								<!-- Edit User -->
-								<div tabindex="-1" class="modal fade in" id="editUser">
-									<div class="modal-dialog">
-										<div class="modal-content">
-											<div class="modal-header no-padding">
-												<div class="table-header">
-													<button aria-hidden="true" data-dismiss="modal" class="close" type="button">
-														<span class="white">Ã</span>
-													</button>
-													Sá»­a ngÆ°á»i dÃ¹ng
-												</div>
-											</div>
-									
-											<div class="modal-body">
-												<form method="post" class="form-horizontal" id="validation-edit-form" action="<?php echo $base_url; ?>admin/user_account/update">
-													<input type="hidden" name="id" id="form-field-0" value="">
-													<div class="form-group">
-														<label for="form-field-1" class="col-sm-3 control-label no-padding-right"> Sá» Äiá»n thoáº¡i </label>
-														<div class="col-sm-9">
-															<label class="block clearfix has-error">
-																<span class="input-icon">
-																	<input type="text" name="phone" placeholder="Phone" id="form-field-1" value="">
-																	<i class="icon-user blue"></i>
-																</span>
-																<div class="help-block"> </div>
-															</label>
-														</div>
-													</div>
-
-													<div class="form-group">
-														<label for="form-field-2" class="col-sm-3 control-label no-padding-right"> Tiá»n </label>
-														<div class="col-sm-9">
-															<span class="input-icon">
-																<input type="text" name="balance" placeholder="" id="form-field-2" value="">
-																<i class="icon-user blue"></i>
-															</span>
-														</div>
-														<label class="block clearfix has-error">
-															<div class="help-block"> </div>
-														</label>
-														
-													</div>
-
-													<div class="space-4"></div>
-													<div class="clearfix form-actions">
-														<div class="col-md-offset-3 col-md-9">
-															<button type="submit" name="submit" class="btn btn-info">
-																<i class="icon-ok bigger-110"></i>
-																HoÃ n táº¥t
-															</button>
-
-															&nbsp; &nbsp; &nbsp;
-															<button type="reset" name="reset" class="btn">
-																<i class="icon-undo bigger-110"></i>
-																XÃ³a háº¿t
-															</button>
-														</div>
-													</div>
-												</form>
-											</div>
-										</div>
-									</div>
-								</div>
-								<!-- End Edit Admin -->
-								
-								<!-- Add User -->
-								<div tabindex="-1" class="modal fade in" id="addUser">
-									<div class="modal-dialog">
-										<div class="modal-content">
-											<div class="modal-header no-padding">
-												<div class="table-header">
-													<button aria-hidden="true" data-dismiss="modal" class="close" type="button">
-														<span class="white">Ã</span>
-													</button>
-													Táº¡o má»i thÃ nh viÃªn
-												</div>
-											</div>
-
-											<div class="modal-body">
-												<form method="post" class="form-horizontal" id="validation-form" action="<?php echo $base_url; ?>admin/user_account/insert">
-													<div class="form-group">
-														<label for="form-field-1" class="col-sm-3 control-label no-padding-right"> Sá» Äiá»n thoáº¡i </label>
-
-														<div class="col-sm-9">
-															<span class="input-icon">
-																<input type="number" name="cellphone" placeholder="phone" id="form-field-1">
-																<i class="icon-phone blue"></i>
-															</span>
-														</div>
-														<div class="help-block"> </div>
-													</div>
-
-													<div class="clearfix form-actions">
-														<div class="col-md-offset-3 col-md-9">
-															<button type="submit" name="submit" class="btn btn-info">
-																<i class="icon-ok bigger-110"></i>
-																HoÃ n táº¥t
-															</button>
-
-															&nbsp; &nbsp; &nbsp;
-															<button type="reset" class="btn">
-																<i class="icon-undo bigger-110"></i>
-																XÃ³a háº¿t
-															</button>
-														</div>
-													</div>
-
-													</div>
-												</form>
-											</div>
-										</div><!-- /.modal-content -->
-									</div><!-- /.modal-dialog -->
-								</div>
-								
-								<!-- Delete User -->
-								<div tabindex="-1" class="modal fade in" id="deleteUser">
-									<div class="modal-dialog">
-										<div class="modal-content">
-											<div class="modal-header no-padding">
-												<div class="table-header">
-													<button aria-hidden="true" data-dismiss="modal" class="close" type="button">
-														<span class="white">Ã</span>
-													</button>
-													XÃ³a ngÆ°á»i dÃ¹ng
-												</div>
-											</div>
-											
-											<div class="modal-body">
-												<form method="post" class="form-horizontal" id="validation-form" action="<?php echo $base_url; ?>admin/user_account/delete">
-													<input type="hidden" name="id" id="form-field-0" value="">
-													<div class="form-group">
-														<center><h4> Cháº¯c cháº¯n muá»n xÃ³a tÃ i khoáº£n nÃ y? </h4></center>
-													</div>
-													<div class="clearfix form-actions">
-														<div class="col-md-offset-3 col-md-9">
-															<button type="submit" name="submit" class="btn btn-info">
-																<i class="icon-ok bigger-110"></i>
-																XÃ³a
-															</button>
-
-															&nbsp; &nbsp; &nbsp;
-															<button type="reset" name="reset" class="btn" data-dismiss="modal">
-																<i class="icon-undo bigger-110"></i>
-																Há»§y
-															</button>
-														</div>
-													</div>
-												</form>
-											</div>
-										</div>
-									</div>
-								</div>					
-								<!-- End Delete User -->		
-								<script>
-									$('#deleteUser').on('show.bs.modal', function(e) {
-										var id = parseInt($(e.relatedTarget).data('us-id'));
-										$(e.currentTarget).find('input[name="id"]').val(id);
-									});
-									$('#editUser').on('show.bs.modal', function(e) {
-										//get data-id attribute of the clicked element
-										var index = parseInt($(e.relatedTarget).data('us-index'));
-										//populate the textbox
-										var ar = <?php echo json_encode($users) ?>;
-										
-										$(e.currentTarget).find('input[name="phone"]').val(ar[index].cellphone);
-										$(e.currentTarget).find('input[name="balance"]').val(ar[index].acc_balanced);
-										$(e.currentTarget).find('input[name="id"]').val(ar[index].us_id);
-									});	
-									
-								</script>
-								<!-- 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));
-?>
Index: pro-violet-viettel/sourcecode/application/modules/frontend/views/lecture_editor.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/frontend/views/lecture_editor.php	(revision 374)
+++ pro-violet-viettel/sourcecode/application/modules/frontend/views/lecture_editor.php	(revision 375)
@@ -10,8 +10,5 @@
 
 			<div class="main-container-inner">
-				
-<?php
-$this->load->view('layout/frontend/sidebar');
-?>
+
 				<div class="main-content">
 
