source: pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php @ 414

Last change on this file since 414 was 414, checked in by namnd, 11 years ago
File size: 9.0 KB
Line 
1<div id="breadcrumbs" class="breadcrumbs">
2
3    <ul class="breadcrumb">
4        <li>
5            <i class="icon-home home-icon"></i>
6            <a href="#">Trang chá»§</a>
7        </li>
8
9        <li>
10            <a href="#">Quản lÜ tài khoản</a>
11        </li>
12        <li>
13            <a href="#">Người dùng</a>
14        </li>
15        <li class="active">Danh sách</li>
16    </ul><!-- .breadcrumb -->
17
18    <div id="nav-search" class="nav-search">
19        <form class="form-search">
20            <span class="input-icon">
21                <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="Tìm kiếm ...">
22                <i class="icon-search nav-search-icon"></i>
23            </span>
24        </form>
25    </div><!-- #nav-search -->
26</div>
27<div class="page-content">
28    <div class="page-header">
29        <h1>
30            Người dùng
31            <small>
32                <i class="icon-double-angle-right"></i>
33                Danh sách
34            </small>
35        </h1>
36    </div><!-- /.page-header -->
37
38    <div class="row">
39        <div class="col-xs-12">
40            <!-- PAGE CONTENT BEGINS -->
41            <div style="padding-bottom:4px" class="table-header">
42                Danh sách
43                <button href="#addUser" data-toggle="modal" class="btn btn-success pull-right">
44                    <i class="icon-plus"></i>
45                    Thêm người dùng
46                </button>
47
48            </div>
49
50            <div class="table-responsive">
51                <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
52                    <form onsubmit="return false;" id="user" >
53                        <div class="row">
54                            <div class="col-sm-6">
55                                <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị
56                                        <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">
57                                            <?php foreach ($itemsoptions as $option) { ?>
58                                            <option <?php if($option == $perpage) echo "selected"; ?> value="<?=$option?>"><?=$option?></option>
59                                            <?php } ?>
60                                        </select> bản ghi</label>
61
62                                </div>
63                            </div>
64                                                               
65                            <div class="col-sm-6">
66                                <div class="dataTables_filter" id="sample-table-2_filter">
67                                    <label>Tìm kiếm:
68                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>
69                                </div>
70                                                                <div class="dataTables_status" style="float: right;" id="sample-table-2_status"><label>Lọc:
71                                                                        <select onchange="filter();" name="status" size="1" style="width: 139px; height: 28px;" aria-controls="sample-table-2" class="">                                     
72                                                                                <?php foreach ($statusoptions as $key=>$option):?>
73                                                                                <option <?php if ($key == $status) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $option; ?></option>
74                                                                                <?php endforeach; ?>
75                                                                        </select>
76                                                                </div>
77                            </div>
78
79                        </div>
80                                                       
81                                                <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order;?>" />
82                                                <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/>
83                    </form>
84                    <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
85                        <thead>
86                            <tr role="row">
87                                <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
88                                    <label>
89                                        <input type="checkbox" class="ace">
90                                        <span class="lbl"></span>
91                                    </label>
92                                </th>
93                                                                <th class="<?php if ($sorting_field == 'cellphone') {echo $sorting_order;} else {echo "sorting";}?>" id="cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Tài khoản: activate to sort column ascending">Tài khoản</th>
94                                <th class="<?php if ($sorting_field == 'cellphone') {echo $sorting_order;} else {echo "sorting";}?>" id="cellphone" 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>
95                                <th class="<?php if ($sorting_field == 'acc_balanced') {echo $sorting_order;} else {echo "sorting";}?>" id="acc_balanced" 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>
96                                <th class="<?php if ($sorting_field == 'created_time') {echo $sorting_order;} else {echo "sorting";}?>" id="created_time" 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">
97                                    <i class="icon-time bigger-110 hidden-480"></i>
98                                    Ngày đăng kÜ
99                                </th>
100                                                                <th class="<?php if ($sorting_field == 'expire_date') {echo $sorting_order;} else {echo "sorting";}?>" id="expire_date" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 209px;" aria-label="Ngày hết hạn: activate to sort column ascending">
101                                    <i class="icon-time bigger-110 hidden-480"></i>
102                                    Ngày hết hạn
103                                </th>
104                                                                <th class="sorting_disabled" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;">Tình trạng</th>
105                            </tr>
106                        </thead>
107
108                        <tbody role="alert" aria-live="polite" aria-relevant="all">
109                           
110                            <?php
111                            foreach ($users as $user) {
112                                ?>
113                            <tr class="odd">
114                                <td class="center  sorting_1">
115                                    <label>
116                                        <input type="checkbox" class="ace">
117                                        <span class="lbl"></span>
118                                    </label>
119                                </td>
120                                                                <td class=" ">
121                                    <a href="#"><?php echo $user['username']; ?></a>
122                                </td>
123                                <td class=" ">
124                                    <?php echo $user['cellphone']; ?>
125                                </td>
126                                <td class="hidden-480 "><?php echo $user['acc_balanced']. " VNĐ"; ?></td>
127                                <td class=" "><?php echo $user['created_time']; ?></td>
128                                                                <td class=" "><?php echo $user['expire_date']; ?></td>
129                                                                <td class=" ">
130                                                                <?php  if(strtotime($user['expire_date'])>time()){ ?>
131                                                                        <span class="label label-sm label-success">Đã kích hoạt</span>
132                                                                <?php }else{ ?>
133                                                                        <span class="label label-sm label-warning">Tạm ngưng</span>
134                                                                <?php } ?>
135                                                                </td>
136
137                            </tr>
138                            <?php } ?>
139
140                        </tbody></table><div class="row"><div class="col-sm-6">
141                                <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>
142                                   
143                            </div>
144                        <div class="col-sm-6">
145                            <div class="dataTables_paginate paging_bootstrap">
146                                <ul class="pagination">
147                                    <?php echo $paging; ?>
148                                </ul>
149                            </div>
150                        </div>
151                    </div>
152
153                </div>
154            </div>
155
156           
157        </div>
158
159        <!-- PAGE CONTENT ENDS -->
160    </div><!-- /.col -->
161</div>
162<script type="text/javascript">
163    window.onload = function ()
164    {
165        init_page();
166    }
167
168
169</script>
Note: See TracBrowser for help on using the repository browser.