1 | |
---|
2 | |
---|
3 | |
---|
4 | <div class="col-xs-12"> |
---|
5 | <!-- PAGE CONTENT BEGINS --> |
---|
6 | <div style="padding-bottom:4px" class="table-header"> |
---|
7 | Doanh thu |
---|
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;?>' aria-controls="sample-table-2"></label> |
---|
29 | </div> |
---|
30 | </div> |
---|
31 | </div> |
---|
32 | <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order;?>" /> |
---|
33 | <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/> |
---|
34 | </form> |
---|
35 | <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info"> |
---|
36 | <thead> |
---|
37 | <tr role="row"> |
---|
38 | |
---|
39 | <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">Há» tên</th> |
---|
40 | <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">Sá» Äiá»n thoại</th> |
---|
41 | <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> |
---|
42 | <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> |
---|
43 | <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> |
---|
44 | |
---|
45 | </thead> |
---|
46 | |
---|
47 | |
---|
48 | <tbody role="alert" aria-live="polite" aria-relevant="all"> |
---|
49 | |
---|
50 | <?php |
---|
51 | foreach ($paidlogs as $paidlog) { |
---|
52 | ?> |
---|
53 | <tr class="odd"> |
---|
54 | |
---|
55 | |
---|
56 | <td class=" "> |
---|
57 | <a href="#"><?php echo $paidlog['username'];?></a> |
---|
58 | </td> |
---|
59 | <td class=" "><?php echo $paidlog['cellphone']?></td> |
---|
60 | |
---|
61 | <td class="hidden-480 "><?php echo number_format($paidlog['amount'],0);?></td> |
---|
62 | <td class="hidden-480 "><?php if ($paidlog['paid_type']==1) {echo "SMS";} else { echo "Card";}?></td> |
---|
63 | <td class=" "><?php echo $paidlog['paid_time']?></td> |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | </tr> |
---|
69 | <?php } ?> |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | |
---|
74 | |
---|
75 | |
---|
76 | |
---|
77 | </tbody></table><div class="row"><div class="col-sm-6"> |
---|
78 | <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> |
---|
79 | |
---|
80 | </div> |
---|
81 | <div class="col-sm-6"> |
---|
82 | <div class="dataTables_paginate paging_bootstrap"> |
---|
83 | <ul class="pagination"> |
---|
84 | <?php echo $paging; ?> |
---|
85 | </ul> |
---|
86 | </div> |
---|
87 | </div> |
---|
88 | </div> |
---|
89 | |
---|
90 | </div> |
---|
91 | </div> |
---|
92 | |
---|
93 | |
---|
94 | </div> |
---|
95 | |
---|
96 | |
---|
97 | <script type="text/javascript"> |
---|
98 | window.onload = function () |
---|
99 | { |
---|
100 | init_page(); |
---|
101 | } |
---|
102 | |
---|
103 | |
---|
104 | </script> |
---|