Ignore:
Timestamp:
Apr 7, 2015 1:52:40 PM (10 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php

    r818 r883  
    4545                    Thêm người dùng
    4646                </button-->
     47                                <div class="pull-right" style="margin:5px;">
     48                   
     49                                        <a style="color:#fff" href="<?php echo base_url();?>admin/user/export/<?php echo $current_page; ?>/<?php echo $perpage; ?>/<?php echo ($keyword)?$keyword:'default'; ?>/<?php echo $status; ?>/<?php echo ($province)?$povince:'default'; ?>/<?php echo ($district)?$district:'default';?>/<?php echo ($daterange)?$daterange:'default'; ?>/<?php echo $sorting_order; ?>/<?php echo $sorting_field;?>">Xuất ra Excel</a>
     50                                       
     51                </div>
    4752
    4853            </div>
     
    7681                                </div>
    7782                                                                <div style="clear: both;"></div>
    78                                                                 <div class="dataTables_status" style="float: right;" id="sample-table-2_status"><label>Lọc theo Tỉnh/TP:
    79                                                                         <select onchange="filter();" name="province-code" size="1" style="width: 176px; height: 28px;">
     83                                                                <div class="dataTables_province" style="float: right;" id="sample-table-2_status"><label>Lọc theo Tỉnh/TP:
     84                                                                        <select onchange="filter();" name="province" class="form-field-province" size="1" style="width: 176px; height: 28px;">
    8085                                                                                <option value=''></option>
     86                                               
    8187                                                                                <?php foreach ($provinces as $key => $pro): ?>
    82                                                                                         <option <?php if ($key == $province_code) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $pro; ?></option>
     88                                                                                        <option <?php if ($key == $province) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $pro; ?></option>
    8389                                                                                <?php endforeach; ?>
     90                                                                        </select>
     91                                </div>
     92                                                               
     93                                                                <div class="dataTables_district" style="float: right;" id="sample-table-2_status"><label>Lọc theo Quận/Huyện:
     94                                                                        <select onchange="filter();" name="district" id="form-field-district" class="form-field-district" size="1" style="width: 176px; height: 28px;">
     95                                                                                <?php if ($districts):?>
     96                                                                                        <option value=''></option>
     97                                                                                        <?php foreach ($districts as $key => $dist): ?>
     98                                                                                                <option <?php if ($dist['district_id'] == $district) echo "selected"; ?> value="<?php echo $dist['district_id']; ?>"><?php echo $dist['district_name']; ?></option>
     99                                                                                        <?php endforeach; ?>
     100                                                                                        <?php endif;?>
    84101                                                                        </select>
    85102                                </div>
     
    92109                            </div>
    93110                        </div>
    94 
     111                                                <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order; ?>" />
     112                                                <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field; ?>"/>
    95113                </div>
    96114
    97                 <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order; ?>" />
    98                 <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field; ?>"/>
    99115                </form>
    100116                <!-- Table Content -->
     
    104120                        <thead>
    105121                            <tr role="row">
    106                                 <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
     122                                <!--<th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
    107123                                    <label>
    108124                                        <input type="checkbox" class="ace">
    109125                                        <span class="lbl"></span>
    110126                                    </label>
    111                                 </th>
     127                                </th>-->
    112128                                <th class="<?php
    113129                                if ($sorting_field == 'cellphone') {
     
    117133                                }
    118134                                ?>" 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>
    119                                 <th class="<?php
    120                                 if ($sorting_field == 'cellphone') {
    121                                     echo $sorting_order;
    122                                 } else {
    123                                     echo "sorting";
    124                                 }
    125                                 ?>" 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>
     135                                <th style="width: 156px;">Họ tên</th>
    126136                                                               
    127137                                <th class="<?php
     
    152162                                    Ngày hết hạn
    153163                                </th>
    154                                 <th style="width: 140px;">Tỉnh/TP</th>
     164                                <th style="width: 130px;">Tỉnh/TP</th>
     165                                                                 <th style="width: 150px;">Quận/Huyện</th>
    155166                                <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>
    156167                            </tr>
     
    163174                                                        ?>
    164175                                <tr class="odd">
     176                                                                <!--
    165177                                    <td class="center  sorting_1">
    166178                                        <label>
     
    168180                                            <span class="lbl"></span>
    169181                                        </label>
    170                                     </td>
     182                                    </td>-->
    171183                                    <td class=" ">
    172184                                        <a onclick="getUserHistory(<?php echo $user['us_id']; ?>, 1);" data-toggle="modal"><?php echo $user['username']; ?></a>
     
    180192                                    <td class=" "><?php echo isset($user['expire_date']) && strtotime($user['expire_date']) > 0 ? date('d/m/Y', strtotime($user['expire_date'])) : ''; ?></td>
    181193                                    <td><?php echo $user['province']; ?></td>
     194                                                                        <td><?php echo $user['district_name']; ?></td>
    182195                                                                        <td class=" ">
    183196                                                                        <?php if (strtotime($user['expire_date']) > time() && $user['p_id'] != 5 ): ?>
     
    242255                <div class="tab-content history-tab-content">
    243256                    <div class="tab-pane in active" id="regis">
    244                                                 <div class="col-sm-12">
     257                                                <div>
    245258                                                        <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>
    246259                                                </div>
Note: See TracChangeset for help on using the changeset viewer.