- Timestamp:
- Feb 25, 2015 5:25:04 PM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules/admin/views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/views/report/listview.php
r690 r767 1 1 <div class="col-xs-12"> 2 <!-- PAGE CONTENT BEGINS --> 3 <div style="padding-bottom:4px" class="table-header"> 4 Doanh thu 5 </div> 2 6 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> 7 <div class="table-responsive"> 8 <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper"> 9 <form autocomplete="off" onsubmit="return false;" id="collaborator" > 10 <div class="row"> 11 <div class="col-sm-6"> 12 <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị 13 <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2"> 14 <?php foreach ($itemsoptions as $option) { ?> 15 <option <?php if($option == $perpage) echo "selected"; ?> value="<?php echo $option;?>"><?php echo $option;?></option> 16 <?php } ?> 17 </select> bản ghi</label> 9 18 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> 19 </div> 20 </div> 21 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 id="daterangepicker" class="selectbox pull-right"> 31 <i class="icon-calendar"></i> 32 <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;"> 33 34 </span> 35 </div> 36 </div> 37 </div> 38 </div> 39 <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order;?>" /> 40 <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/> 41 </form> 42 <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info"> 43 <thead> 44 <tr role="row"> 45 46 <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> 47 <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> 48 <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> 49 <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> 50 <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> 51 52 </thead> 22 <div class="col-sm-6"> 23 <!--<div class="dataTables_filter" id="sample-table-2_filter"> 24 <label>Tìm kiếm: 25 <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label> 26 </div>--> 27 <div class="dataTables_filter" id="sample-table-2_filter"><label>Lọc theo: 28 <select onchange="filter();" name="paid_type" size="1" style="width: 176px; height: 28px;"> 29 <?php foreach ($paid_types as $key => $type): ?> 30 <option <?php if ($key == $paid_type) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $type; ?></option> 31 <?php endforeach; ?> 32 </select> 33 </div> 34 <div id="daterangepicker" class="selectbox pull-right"> 35 <i class="icon-calendar"></i> 36 <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;"> 37 38 </span> 39 </div> 40 </div> 41 </div> 42 </div> 43 <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order;?>" /> 44 <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/> 45 </form> 46 <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info"> 47 <thead> 48 <tr role="row"> 49 50 <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> 51 <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> 52 <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> 53 <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> 54 <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> 55 56 </thead> 53 57 54 58 55 56 57 58 59 60 61 59 <tbody role="alert" aria-live="polite" aria-relevant="all"> 60 61 <?php 62 foreach ($paidlogs as $paidlog) { 63 ?> 64 <tr class="odd"> 65 62 66 63 64 65 66 67 68 69 70 67 <td class=" "> 68 <a href="#"><?php echo $paidlog['username'];?></a> 69 </td> 70 <td class=" "><?php echo $paidlog['cellphone']?></td> 71 72 <td class="hidden-480 "><?php echo number_format($paidlog['amount'],0);?></td> 73 <td class="hidden-480 "><?php if ($paidlog['paid_type']==1) {echo "SMS";} else { echo "Card";}?></td> 74 <td class=" "><?php echo $paidlog['paid_time']?></td> 71 75 72 76 73 77 74 75 76 78 79 </tr> 80 <?php } ?> 77 81 78 82 … … 82 86 83 87 84 85 86 87 88 89 90 91 92 93 94 95 88 </tbody></table><div class="row"><div class="col-sm-6"> 89 <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> 90 91 </div> 92 <div class="col-sm-6"> 93 <div class="dataTables_paginate paging_bootstrap"> 94 <ul class="pagination"> 95 <?php echo $paging; ?> 96 </ul> 97 </div> 98 </div> 99 </div> 96 100 97 98 101 </div> 102 </div> 99 103 100 101 104 105 </div> 102 106 103 107 104 108 <script type="text/javascript"> 105 106 107 108 109 window.onload = function () 110 { 111 init_page(); 112 } 109 113 110 114 -
pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php
r765 r767 106 106 echo "sorting"; 107 107 } 108 ?>" id="cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Tà i khoản: activate to sort column ascending"> Username</th>108 ?>" id="cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Tà i khoản: activate to sort column ascending">Sá» Äiá»n thoại</th> 109 109 <th class="<?php 110 110 if ($sorting_field == 'cellphone') { … … 113 113 echo "sorting"; 114 114 } 115 ?>" id="cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Sá» Äiá»n thoại: activate to sort column ascending">Sá» Äiá»n thoại</th> 115 ?>" id="cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Sá» Äiá»n thoại: activate to sort column ascending">Há» tên</th> 116 <th class="sorting_disabled" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Tình trạng</th> 116 117 <th class="<?php 117 118 if ($sorting_field == 'acc_balanced') { … … 121 122 } 122 123 ?>" id="acc_balanced" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Tiá»n: activate to sort column ascending">Tà i khoản (VNÄ)</th> 123 <th style="width: 140px;">Tá»nh/TP</th> 124 <th class="<?php 124 <th class="<?php 125 125 if ($sorting_field == 'created_time') { 126 126 echo $sorting_order; … … 142 142 Ngà y hết hạn 143 143 </th> 144 <th class="sorting_disabled" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Tình trạng</th> 144 <th style="width: 140px;">Tá»nh/TP</th> 145 145 146 </tr> 146 147 </thead> … … 148 149 <tbody role="alert" aria-live="polite" aria-relevant="all"> 149 150 150 <?php151 foreach ($users as $user) { 152 ?>151 <?php 152 foreach ($users as $user): 153 ?> 153 154 <tr class="odd"> 154 155 <td class="center sorting_1"> … … 163 164 </td> 164 165 <td class=" "> 165 <?php echo $user['cellphone']; ?> 166 <?php echo $user['fullname']; ?> 167 </td> 168 <td class=" "> 169 <?php if (strtotime($user['expire_date']) > time() && $user['p_id'] != 5 ): ?> 170 <span class="label label-sm label-success">Äã ÄÄng kÜ</span> 171 <?php elseif(strtotime($user['expire_date']) > time() && $user['p_id'] == 5): ?> 172 <span class="label label-sm label-info">Dùng thá»</span> 173 <?php elseif(strtotime($user['expire_date']) < time() && $user['p_id'] == 5): ?> 174 <span class="label label-sm label-warning">Dùng thá» hạn chế</span> 175 <?php else: ?> 176 <span class="label label-sm label-danger">Hết hạn</span> 177 <?php endif; ?> 166 178 </td> 167 179 <td class="hidden-480 "><?php echo number_format($user['acc_balanced'], 0); ?></td> 180 <td class=" "><?php echo $user['created_time']; ?></td> 181 <td class=" "><?php echo isset($user['expire_date']) && strtotime($user['expire_date']) > 0 ? date('d/m/Y', strtotime($user['expire_date'])) : ''; ?></td> 168 182 <td><?php echo $user['province']; ?></td> 169 <td class=" "><?php echo $user['created_time']; ?></td>170 <td class=" "><?php echo isset($user['expire_date']) && strtotime($user['expire_date']) > 0 ? date('d/m/Y', strtotime($user['expire_date'])) : ''; ?></td>171 172 <td class=" ">173 <?php if (strtotime($user['expire_date']) > time()) { ?>174 <span class="label label-sm label-success">Äã ÄÄng kÜ</span>175 <?php } else { ?>176 <span class="label label-sm label-warning">Dùng thá»</span>177 <?php } ?>178 </td>179 183 180 184 </tr> 181 <?php }?>185 <?php endforeach; ?> 182 186 183 187 </tbody></table>
Note: See TracChangeset
for help on using the changeset viewer.