1 | <?php
|
---|
2 | $class = $this->router->class;
|
---|
3 | $method = $this->router->method;
|
---|
4 | $admin_info = $this->session->userdata('adminInfo');
|
---|
5 | $role_id = $admin_info['role_id'];
|
---|
6 | ?>
|
---|
7 | <div class="main-container-inner">
|
---|
8 | <a class="menu-toggler" id="menu-toggler" href="#">
|
---|
9 | <span class="menu-text"></span>
|
---|
10 | </a>
|
---|
11 |
|
---|
12 | <div class="sidebar sidebar-fixed" id="sidebar">
|
---|
13 | <script type="text/javascript">
|
---|
14 | try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
|
---|
15 | </script>
|
---|
16 |
|
---|
17 | <div class="sidebar-shortcuts" id="sidebar-shortcuts">
|
---|
18 | <!--div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large" style="line-height:normal">
|
---|
19 | <div data-percent="66%" class="progress progress-striped active" style="margin-bottom:0">
|
---|
20 | <div style="width:66%;" class="progress-bar"></div>
|
---|
21 | </div>
|
---|
22 | <span>66 GB / 100 GB</span>
|
---|
23 | </div-->
|
---|
24 |
|
---|
25 | <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
|
---|
26 | <span class="btn btn-success"></span>
|
---|
27 |
|
---|
28 | <span class="btn btn-info"></span>
|
---|
29 |
|
---|
30 | <span class="btn btn-warning"></span>
|
---|
31 |
|
---|
32 | <span class="btn btn-danger"></span>
|
---|
33 | </div>
|
---|
34 | </div><!-- #sidebar-shortcuts -->
|
---|
35 |
|
---|
36 | <ul class="nav nav-list">
|
---|
37 | <li class="<?php if(in_array($class,array("home"))) {echo "active";}?>">
|
---|
38 | <a href="<?php echo $base_url; ?>admin/home">
|
---|
39 | <i class="icon-dashboard"></i>
|
---|
40 | <span class="menu-text"> Bảng Äiá»u khiá»n </span>
|
---|
41 | </a>
|
---|
42 | </li>
|
---|
43 |
|
---|
44 | <li class="<?php if(in_array($class,array("collaborator", "admin_acc", "user"))) {echo "active open";}?>">
|
---|
45 | <a href="#" class="dropdown-toggle">
|
---|
46 | <i class="icon-group"></i>
|
---|
47 | <span class="menu-text"> Quản lÜ tà i khoản </span>
|
---|
48 |
|
---|
49 | <b class="arrow icon-angle-down"></b>
|
---|
50 | </a>
|
---|
51 |
|
---|
52 | <ul class="submenu">
|
---|
53 | <?php if($role_id == 1): ?>
|
---|
54 | <li class="<?php if(in_array($class,array("admin_acc"))) {echo "active";}?>">
|
---|
55 | <a href="<?php echo $base_url; ?>admin/quan_tri_vien">
|
---|
56 | <i class="icon-double-angle-right"></i>
|
---|
57 | Quản trỠviên
|
---|
58 | </a>
|
---|
59 | </li>
|
---|
60 | <?php endif; ?>
|
---|
61 |
|
---|
62 | <li class="<?php if(in_array($class,array("user"))) {echo "active";}?>">
|
---|
63 | <a href="<?php echo $base_url; ?>admin/nguoi_dung">
|
---|
64 | <i class="icon-double-angle-right"></i>
|
---|
65 | Ngưá»i dùng
|
---|
66 | <b class="arrow icon-angle-down"></b>
|
---|
67 | </a>
|
---|
68 |
|
---|
69 | <!--ul class="submenu">
|
---|
70 | <li class="<?php if(in_array($class,array("user"))) {echo "active";}?>"> <a href="<?php echo $base_url; ?>admin/nguoi_dung"> KÃch hoạt/ Tạm ngưng </a> </li>
|
---|
71 | <li class="<?php if(in_array($class,array("user"))) {echo "active";}?>"> <a href="<?php echo $base_url; ?>admin/nguoi_dung"> Thá»ng kê tà i khoản </a> </li>
|
---|
72 | </ul-->
|
---|
73 | </li>
|
---|
74 |
|
---|
75 | <li class="<?php if(in_array($class,array("collaborator"))) {echo "active";}?>">
|
---|
76 | <a href="<?php echo $base_url; ?>admin/cong_tac_vien">
|
---|
77 | <i class="icon-double-angle-right"></i>
|
---|
78 | Cá»ng tác viên
|
---|
79 | </a>
|
---|
80 | </li>
|
---|
81 |
|
---|
82 | </ul>
|
---|
83 | </li>
|
---|
84 |
|
---|
85 | <li class="<?php if(in_array($class,array("report", "smslog", "cardlog","reportAsistant","reportprovince","reportpackage"))) {echo "active open";}?>">
|
---|
86 | <a href="#" class="dropdown-toggle">
|
---|
87 | <i class="icon-bar-chart"></i>
|
---|
88 | <span class="menu-text"> Báo cáo </span>
|
---|
89 |
|
---|
90 | <b class="arrow icon-angle-down"></b>
|
---|
91 | </a>
|
---|
92 |
|
---|
93 | <ul class="submenu">
|
---|
94 | <li class="<?php if(in_array($class,array("report"))) {echo "active";}?>">
|
---|
95 | <a href="<?php echo $base_url;?>admin/doanh_thu_tong_hop">
|
---|
96 | <i class="icon-double-angle-right"></i>
|
---|
97 | Doanh thu tá»ng hợp
|
---|
98 | </a>
|
---|
99 | </li>
|
---|
100 |
|
---|
101 | <li class="<?php if(in_array($class,array("reportAsistant"))) {echo "active";}?>">
|
---|
102 | <a href="<?php echo $base_url;?>admin/thong_ke_cong_tac_vien">
|
---|
103 | <i class="icon-double-angle-right"></i>
|
---|
104 | Doanh thu cá»§a cá»ng tác viên
|
---|
105 | </a>
|
---|
106 | </li>
|
---|
107 |
|
---|
108 | <li class="<?php if(in_array($class,array("smslog"))) {echo "active";}?>">
|
---|
109 | <a href="<?php echo $base_url; ?>admin/sms_log">
|
---|
110 | <i class="icon-double-angle-right"></i>
|
---|
111 | SMS logs
|
---|
112 | </a>
|
---|
113 | </li>
|
---|
114 |
|
---|
115 | <li class="<?php if(in_array($class,array("cardlog"))) {echo "active";}?>">
|
---|
116 | <a href="<?php echo $base_url; ?>admin/card_log">
|
---|
117 | <i class="icon-double-angle-right"></i>
|
---|
118 | Card logs
|
---|
119 | </a>
|
---|
120 | </li>
|
---|
121 | <li class="<?php if(in_array($class,array("reportprovince"))) {echo "active";}?>">
|
---|
122 | <a href="<?php echo $base_url; ?>admin/reportprovince">
|
---|
123 | <i class="icon-double-angle-right"></i>
|
---|
124 | Báo cáo thuê bao theo tá»nh
|
---|
125 | </a>
|
---|
126 | </li>
|
---|
127 | <li class="<?php if(in_array($class,array("reportpackage"))) {echo "active";}?>">
|
---|
128 | <a href="<?php echo $base_url; ?>admin/reportpackage">
|
---|
129 | <i class="icon-double-angle-right"></i>
|
---|
130 | Báo cáo doanh thu theo tá»nh
|
---|
131 | </a>
|
---|
132 | </li>
|
---|
133 | </ul>
|
---|
134 | </li>
|
---|
135 | <?php if($role_id == 1): ?>
|
---|
136 | <!--li>
|
---|
137 | <a href="config.html" class="dropdown-toggle">
|
---|
138 | <i class="icon-cog"></i>
|
---|
139 | <span class="menu-text"> Thiết láºp </span>
|
---|
140 | </a>
|
---|
141 | </li-->
|
---|
142 | <li class="<?php if(in_array($class,array("smstemplate"))) {echo "active";}?>">
|
---|
143 | <a href="<?php echo $base_url;?>admin/mau_tin_nhan" class="dropdown-toggle">
|
---|
144 | <i class="icon-cog"></i>
|
---|
145 | <span class="menu-text"> Mẫu tin nhắn </span>
|
---|
146 | </a>
|
---|
147 | </li>
|
---|
148 | <?php endif; ?>
|
---|
149 |
|
---|
150 | </ul><!-- /.nav-list -->
|
---|
151 |
|
---|
152 | <div class="sidebar-collapse" id="sidebar-collapse">
|
---|
153 | <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
|
---|
154 | </div>
|
---|
155 |
|
---|
156 | <script type="text/javascript">
|
---|
157 | try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
|
---|
158 | </script>
|
---|
159 |
|
---|
160 | <ul class="logo-group list-inline">
|
---|
161 | <li><img src="<?php echo $base_url;?>assets/img/logo_Violet.png" width="64" class="img-responsive"></li>
|
---|
162 | <li><img src="<?php echo $base_url;?>assets/img/logo_viettel.png" width="64" class="img-responsive"></li>
|
---|
163 | </ul>
|
---|
164 | </div> |
---|