Ignore:
Timestamp:
Mar 1, 2015 8:44:12 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

    r767 r769  
    6868                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword; ?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label>
    6969                                </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: 176px; height: 28px;">                                     
    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>
     70                                <div class="dataTables_status" style="float: right;" id="sample-table-2_status"><label>Lọc theo tình trạng:
     71                                                                        <select onchange="filter();" name="status" size="1" style="width: 176px; height: 28px;">                                     
     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 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;">
     80                                                                                <option value=''></option>
     81                                                                                <?php foreach ($provinces as $key => $pro): ?>
     82                                                                                        <option <?php if ($key == $province_code) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $pro; ?></option>
     83                                                                                <?php endforeach; ?>
     84                                                                        </select>
     85                                </div>
     86                                                               
    7787                                <div style="clear: both;"></div>
    7888                                <div id="daterangepicker" class="selectbox pull-right">
     
    114124                                }
    115125                                ?>" 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>
     126                                                               
    117127                                <th class="<?php
    118128                                if ($sorting_field == 'acc_balanced') {
     
    143153                                </th>
    144154                                <th style="width: 140px;">Tỉnh/TP</th>
    145                                
     155                                <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>
    146156                            </tr>
    147157                        </thead>
     
    166176                                        <?php echo $user['fullname']; ?>
    167177                                    </td>
     178                                    <td class="hidden-480 "><?php echo number_format($user['acc_balanced'], 0); ?></td>
     179                                                                        <td class=" "><?php echo $user['created_time']; ?></td>
     180                                    <td class=" "><?php echo isset($user['expire_date']) && strtotime($user['expire_date']) > 0 ? date('d/m/Y', strtotime($user['expire_date'])) : ''; ?></td>
     181                                    <td><?php echo $user['province']; ?></td>
    168182                                                                        <td class=" ">
    169183                                                                        <?php if (strtotime($user['expire_date']) > time() && $user['p_id'] != 5 ): ?>
    170                                                                                 <span class="label label-sm label-success">Đã đăng kÜ</span>
     184                                                                                <span class="label label-sm label-success">Đã đăng kÜ VIP</span>
    171185                                                                        <?php elseif(strtotime($user['expire_date']) > time() && $user['p_id'] == 5): ?>
    172                                                                                 <span class="label label-sm label-info">Dùng thá»­</span>
     186                                                                                <span class="label label-sm label-info">Dùng thá»­ 7 ngày</span>
    173187                                                                        <?php elseif(strtotime($user['expire_date']) < time() && $user['p_id'] == 5): ?>
    174188                                                                                <span class="label label-sm label-warning">Dùng thá»­ hạn chế</span>
     
    177191                                                                        <?php endif; ?>
    178192                                    </td>
    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>
    182                                     <td><?php echo $user['province']; ?></td>
    183 
    184193                                </tr>
    185194                                                        <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.