source: pro-violet-viettel/sourcecode/application/modules/admin/views/report/listview.php

Last change on this file was 883, checked in by namnd, 10 years ago
File size: 8.5 KB
Line 
1<div class="col-xs-12">
2                <!-- PAGE CONTENT BEGINS -->
3                <div style="padding-bottom:4px" class="table-header">
4                        Doanh thu
5                        <div class="pull-right" style="margin:5px;">
6                                        <a style="color:#fff" href="<?php echo base_url();?>admin/report/export">Xuất ra Excel</a>
7                </div>
8                </div>
9
10                <div class="table-responsive">
11                        <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
12                                <form autocomplete="off" onsubmit="return false;" id="collaborator" >
13                                        <div class="row">
14                                                <div class="col-sm-6">
15                                                        <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị
16                                                                        <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">                                     
17                                                                                <?php foreach ($itemsoptions as $option) { ?>
18                                                                                <option <?php if($option == $perpage) echo "selected"; ?> value="<?php echo $option;?>"><?php echo $option;?></option>
19                                                                                <?php } ?>
20                                                                        </select> bản ghi</label>
21
22                                                        </div>
23                                                </div>
24
25                                                <div class="col-sm-6">
26                                                        <!--<div class="dataTables_filter" id="sample-table-2_filter">
27                                                                <label>Tìm kiếm:
28                                                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label>
29                                                        </div>-->
30                                                        <div class="dataTables_filter" id="sample-table-2_filter"><label>Lọc theo:
31                                                                <select onchange="filter();" name="paid_type" size="1" style="width: 176px; height: 28px;">                                     
32                                                                        <?php foreach ($paid_types as $key => $type): ?>
33                                                                                <option <?php if ($key == $paid_type) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $type; ?></option>
34                                                                        <?php endforeach; ?>
35                                                                </select>
36                                                        </div>
37                                                        <div id="daterangepicker" class="selectbox pull-right">
38                                                                <i class="icon-calendar"></i>
39                                                                <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;">
40                                                                       
41                                                                </span>
42                                                        </div>
43                                                        </div>
44                                                </div>
45                                        </div>
46                                        <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order;?>" />
47                                        <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/>
48                                </form>
49                                <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info">
50                                        <thead>
51                                                <tr role="row">
52                                                       
53                                                        <th class="<?php if ($sorting_field == 'fullname') {echo $sorting_order;} else {echo "";}?>" id="full_name" 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>
54                                                        <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: 283px;" aria-label="Họ tên: activate to sort column ascending">Họ tên</th>
55                                                        <th class="<?php if ($sorting_field == 'amount') {echo $sorting_order;} else {echo "sorting";}?>" id="amount" 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ố tiền</th>
56                                                        <th class="<?php if ($sorting_field == 'paid_type') {echo $sorting_order;} else {echo "sorting";}?>" id="paid_type" 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">SMS/Card</th>
57                                                        <th class="<?php if ($sorting_field == 'paid_time') {echo $sorting_order;} else {echo "sorting";}?>" id="paid_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">Ngày</th>
58                                                         
59                                        </thead>
60
61
62                                        <tbody role="alert" aria-live="polite" aria-relevant="all">
63                                               
64                                                <?php
65                                                foreach ($paidlogs as $paidlog) {
66                                                        ?>
67                                                <tr class="odd">
68                                                       
69
70                                                        <td class=" ">
71                                                                <a onclick="getUserHistory(<?php echo $paidlog['us_id']; ?>, 1);" data-toggle="modal"><?php echo $paidlog['cellphone']?></a>
72                                                        </td>
73                                                        <td class=" "><?php echo $paidlog['username'];?></td>
74                                                       
75                                                        <td class="hidden-480 "><?php echo number_format($paidlog['amount'],0);?></td>
76                                                        <td class="hidden-480 "><?php if ($paidlog['paid_type']==1) {echo "SMS";} else { echo "Card";}?></td>
77                                                        <td class=" "><?php echo $paidlog['paid_time']?></td>
78
79                                                   
80
81                                                       
82                                                </tr>
83                                                <?php } ?>
84
85
86
87
88
89
90                                                <tr>
91                                                <td colspan=2>
92                                                Tổng tiền
93                                                </td>
94                                                <td colspan=3>
95                                                <?php echo $total_amount; ?>
96                                                </td>                   
97                                                </tr>
98                                        </tbody></table><div class="row"><div class="col-sm-6">
99                                                        <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>
100                                                               
101                                                </div>
102                                        <div class="col-sm-6">
103                                                <div class="dataTables_paginate paging_bootstrap">
104                                                        <ul class="pagination">
105                                                                <?php echo $paging; ?>
106                                                        </ul>
107                                                </div>
108                                        </div>
109                                </div>
110
111                        </div>
112                </div>
113
114               
115        </div>
116<!-- Modal User History -->
117<div class="modal fade" id="user-history" tabindex="-1" role="dialog"aria-hidden="true">
118    <div class="modal-dialog">
119        <div class="modal-content">
120            <div class="modal-header">
121                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
122                <h4 class="modal-title">Lịch sá»­</h4>
123            </div>
124            <div class="modal-body">
125                <ul class="nav nav-tabs padding-16">
126                    <li class="active" >
127                        <a id="regis-tab" href="#regis" data-toggle="tab">
128                            Giao dịch
129                        </a>
130                    </li>
131                    <li>
132                        <a id="trade-tab" href="#trade" data-toggle="tab">
133                            ThÃŽng tin
134                        </a>
135                    </li>
136                </ul>
137                <div class="tab-content history-tab-content">
138                    <div class="tab-pane in active" id="regis">
139                                                <div>
140                                                        <h5>Tài khoản SBG Online: <b><span class="blue"><span id="topup-money"><?php echo number_format($acc_balanced, 0); ?></span> VNĐ <span></b></h5>
141                                                </div>
142                        <div class="table-responsive">
143                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
144                                <thead>
145                                    <tr>
146                                        <th class="center">
147                                            Từ
148                                        </th>
149                                                                                <th class="center"> Số tiền (VNĐ) </th>
150                                        <th class="center"> Gói dịch vụ </th>
151                                        <th>
152                                            <i class="icon-time bigger-110 hidden-480"></i>
153                                            Thời gian
154                                        </th>
155                                    </tr>
156                                </thead>
157                                <tbody id="content-regis-histoty">
158                                </tbody>
159                            </table>
160                            <div>
161                                <div class="dataTables_paginate paging_bootstrap">
162                                    <ul class="pagination" id="regis-pagination">
163                                    </ul>
164                                </div>
165                            </div>
166                        </div><!-- /.table-responsive -->
167                    </div>
168                    <div class="tab-pane" id="trade">
169                        <div class="row">
170                           
171                                <div id="content-trade-histoty">
172                                </div>
173                       
174                            </div>
175                        </div><!-- /.table-responsive -->
176                    </div>
177                </div>
178            </div><!-- Modal Body -->
179        </div> <!-- Modal Content -->
180    </div>
181
182<script type="text/javascript">
183window.onload = function ()
184{
185        init_page();
186}
187
188
189</script>
Note: See TracBrowser for help on using the repository browser.