Index: pro-violet-viettel/sourcecode/application/modules/admin/controllers/collaborator.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/controllers/collaborator.php	(revision 345)
+++ pro-violet-viettel/sourcecode/application/modules/admin/controllers/collaborator.php	(revision 345)
@@ -0,0 +1,107 @@
+<?php
+
+if (!defined('BASEPATH'))
+    exit('No direct script access allowed');
+
+class Collaborator extends MX_Controller {
+
+    public function __construct() {
+        parent::__construct();
+        $this->load->helper('cookie');
+    }
+
+    public function index() {
+        $data=array();
+        $this->load->driver("pp");
+        $admin_info = $this->session->userdata('adminInfo');
+        if ($admin_info) {
+            $data['content'] = $this->getCollaborators();
+            $this->parser->parse('collaborator/index',$data);
+        } else {
+            $this->load->view('login');
+        }
+    }
+    public function getCollaborators($filters=array())
+    {
+        $this->load->driver("pp");
+        $data['current_page'] = $this->uri->segment(4,1);
+        $data['itemsoptions']=array(10,25,50,100);
+        $data['perpage'] = 10;    
+        if ($this->input->post('items'))
+        {
+        $data['perpage'] = $this->input->post('items');    
+        }
+        
+        $data['keyword']='';
+        $sql=" FROM Entities\Tblcollaborator c";
+        if ($this->input->post('keyword'))
+        {
+        $sql.=" WHERE c.full_name LIKE '%".$this->input->post('keyword')."%'"; 
+        $data['keyword']=$this->input->post('keyword');
+        }
+        
+        $query = $this->doctrine->em->createQuery('SELECT COUNT(c.id) '.$sql);
+        $data['total'] = $query->getSingleScalarResult();
+        
+        $query = $this->doctrine->em->createQuery('SELECT c '.$sql);
+        $query->setFirstResult(($data['current_page']-1)*$data['perpage']);
+        $query->setMaxResults($data['perpage']);
+        $data['collaborators'] = $query->getArrayResult();
+        
+        
+        $this->load->library('pagination');
+        $url = "http://$_SERVER[HTTP_HOST]/admin/cong_tac_vien/trang/";
+        $config['base_url'] = $url;
+        $config['total_rows'] = $data['total'];
+        $config['use_page_numbers'] = TRUE;
+        $config['per_page'] = $data['perpage'];
+        $config['num_tag_open'] = "<li>";
+        $config['num_tag_close'] = "</li>";
+        $config['cur_tag_open'] = "<li class='active'><a>";
+        $config['cur_tag_close'] = '</a></li>';
+        $config['last_link'] = 'Â»';
+        $config['first_link'] = 'Â«';
+        $config['first_tag_open'] = "<li title='Trang Äáº§u tiÃªn'>";
+        $config['first_tag_close'] = '</li>';
+        $config['last_tag_open'] = "<li title='Trang cuá»i cÃ¹ng'>";
+        $config['last_tag_close'] = '</li>';
+        $config['next_link'] = '>';
+        $config['next_tag_open'] = "<li title='Trang káº¿ tiáº¿p'>";
+        $config['next_tag_close'] = '</li>';
+        $config['prev_link'] = '<';
+        $config['prev_tag_open'] = "<li title='Trang trÆ°á»c'>";
+        $config['prev_tag_close'] = '</li>';
+        $config['num_links'] = 2;
+        $config['current_page'] = $data['current_page'];
+        $config['ajax_class'] = 'ajax_paging';
+        $this->pagination->initialize($config);
+        $data['paging'] = $this->pagination->create_links();
+
+        if ($this->input->is_ajax_request()) {
+        return $this->pp->parse('modules/admin/views/collaborator/listview', $data);   
+        }
+        return $this->pp->parse('modules/admin/views/collaborator/listview', $data,true);   
+    }
+    public function test() {
+        for ($i = 1; $i <= 500; $i++) {
+            $collaborator = new Entities\Tblcollaborator();
+            $collaborator->setActivated(rand(0, 1));
+            $collaborator->setAuthor(1);
+            $collaborator->setCellphone('0' . (1695061706+$i));
+            $collaborator->setCreatedTime(date("Y-m-d H:i:s"));
+            $collaborator->setFullName("Full Name ".$i);
+            $collaborator->setLoginName("loginname".$i);
+            $collaborator->setPasswd(md5("12345678"));
+            $collaborator->setUpdatedTime(date("Y-m-d H:i:s"));
+            try {
+                $this->doctrine->em->persist($collaborator);
+                $this->doctrine->em->flush();
+                $result['success'] = 1;
+            } catch (Exception $e) {
+
+                echo $e;
+            }
+        }
+    }
+
+}
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php	(revision 345)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php	(revision 345)
@@ -0,0 +1,75 @@
+<?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: $("#collaborator").serialize(),
+                success: function (data, textStatus, jqXHR)
+                {
+                    // $result = jQuery.parseJSON(data);
+                    $("#content").html(data);
+                    init_page();
+
+                },
+                error: function (jqXHR, textStatus, errorThrown)
+                {
+                    $(".ajaxloading").hide();
+                }
+            });
+            return false;
+        })
+        $('#keyword').keyup(function (event) {
+            if (event.keyCode == '13') {              
+                filter();
+            }
+            return false;
+        });
+    }
+    
+    
+    function filter()
+    {
+        $.ajax({
+            url: 'http://viettel.violet.vn/admin/cong_tac_vien/trang/1',
+            type: "POST",
+            data: $("#collaborator").serialize(),
+            success: function (data, textStatus, jqXHR)
+            {
+                // $result = jQuery.parseJSON(data);
+                $("#content").html(data);
+                init_page();
+                $("#keyword").focus();
+                $("#keyword").setCursorToTextEnd();
+
+            },
+            error: function (jqXHR, textStatus, errorThrown)
+            {
+                $(".ajaxloading").hide();
+            }
+        });
+    }
+
+
+</script>
+<div class="main-content" id="content">
+    {content}
+</div><!-- /.main-content -->
+</div><!-- /.main-container-inner -->
+
+<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
+    <i class="icon-double-angle-up icon-only bigger-110"></i>
+</a>
+</div><!-- /.main-container -->
+<?php
+
+$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/collaborator.js')));
+?>
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/listview.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/listview.php	(revision 345)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/listview.php	(revision 345)
@@ -0,0 +1,265 @@
+<div id="breadcrumbs" class="breadcrumbs">
+    <script type="text/javascript">
+        try{literal}{{/literal}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">Cá»ng tÃ¡c viÃªn</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>
+            Cá»ng tÃ¡c viÃªn
+            <small>
+                <i class="icon-double-angle-right"></i>
+                thá»ng kÃª tÃ i khoáº£n
+            </small>
+        </h1>
+    </div><!-- /.page-header -->
+
+    <div class="row">
+        <div class="col-xs-12">
+            <!-- PAGE CONTENT BEGINS -->
+            <div style="padding-bottom:4px" class="table-header">
+                Thá»ng kÃª tÃ i khoáº£n
+
+                <button href="#addUser" data-toggle="modal" class="btn btn-success pull-right">
+                    <i class="icon-plus"></i>
+                    ThÃªm cá»ng tÃ¡c viÃªn
+                </button>
+
+            </div>
+
+            <div class="table-responsive">
+                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
+                    <form onsubmit="return false;" id="collaborator" >
+                    <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">                                      
+                                        {foreach from=$itemsoptions item=option}
+                                        <option {if ({$option}=={$perpage})} selected{/if} value="{$option}">{$option}</option>
+                                        {/foreach}
+                                    </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='{$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="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">
+                            {foreach from=$collaborators item=collaborator}
+                            <tr class="odd">
+                                <td class="center  sorting_1">
+                                    <label>
+                                        <input type="checkbox" class="ace">
+                                        <span class="lbl"></span>
+                                    </label>
+                                </td>
+
+                                <td class=" ">
+                                    <a href="#">{$collaborator.cellphone}</a>
+                                </td>
+                                <td class=" ">{$collaborator.full_name}</td>
+                                <td class="hidden-480 ">3,330 VND</td>
+                                <td class=" ">{$collaborator.created_time}</td>
+
+                                <td class="hidden-480 ">
+                                    {if ({$collaborator.activated})==1}
+                                    <span class="label label-sm label-success">KÃ­ch hoáº¡t</span>
+                                    {/if}
+                                    {if ({$collaborator.activated})==0}
+                                    <span class="label label-sm label-default">ChÆ°a kÃ­ch hoáº¡t</span>
+                                    {/if}
+                                </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>
+                            {/foreach}
+
+
+                            
+                        
+                        
+                        
+                        
+                        </tbody></table><div class="row"><div class="col-sm-6"><div class="dataTables_info" id="sample-table-2_info">Hiá»n thá» 1 Äáº¿n 2 cá»§a 2 báº£n ghi</div></div>
+                            <div class="col-sm-6">
+                                <div class="dataTables_paginate paging_bootstrap">
+                                    <ul class="pagination">
+                                        {$paging}
+                                    </ul>
+                                </div>
+                            </div>
+                        </div>
+                    
+                </div>
+            </div>
+
+            <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 cá»ng tÃ¡c viÃªn
+                            </div>
+                        </div>
+
+                        <div class="modal-body">
+                            <form class="form-horizontal" role="form">
+                                <div class="form-group">
+                                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> TÃ i khoáº£n </label>
+
+                                    <div class="col-sm-9">
+                                        <span class="input-icon">
+                                            <input 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="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" 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="space-4"></div>
+
+                                <div class="clearfix form-actions">
+                                    <div class="col-md-offset-3 col-md-9">
+                                        <button class="btn btn-info" 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 -->
+        </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/index.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/index.php	(revision 344)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/index.php	(revision 345)
@@ -183,4 +183,4 @@
 		</div><!-- /.main-container -->
 <?php 
-$this->load->view('layout/admin/footer', array('base_url' => $base_url));
+$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('admin/collaborator.js',)));
 ?>
Index: pro-violet-viettel/sourcecode/application/modules/admin/views/test.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/admin/views/test.php	(revision 345)
+++ pro-violet-viettel/sourcecode/application/modules/admin/views/test.php	(revision 345)
@@ -0,0 +1,1 @@
+456
