Ignore:
Timestamp:
Feb 25, 2015 5:25:04 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

    r765 r767  
    106106                                    echo "sorting";
    107107                                }
    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>
    109109                                <th class="<?php
    110110                                if ($sorting_field == 'cellphone') {
     
    113113                                    echo "sorting";
    114114                                }
    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>
    116117                                <th class="<?php
    117118                                if ($sorting_field == 'acc_balanced') {
     
    121122                                }
    122123                                ?>" 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
    125125                                if ($sorting_field == 'created_time') {
    126126                                    echo $sorting_order;
     
    142142                                    Ngày hết hạn
    143143                                </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                               
    145146                            </tr>
    146147                        </thead>
     
    148149                        <tbody role="alert" aria-live="polite" aria-relevant="all">
    149150
    150 <?php
    151 foreach ($users as $user) {
    152 ?>
     151                                                        <?php
     152                                                        foreach ($users as $user):
     153                                                        ?>
    153154                                <tr class="odd">
    154155                                    <td class="center  sorting_1">
     
    163164                                    </td>
    164165                                    <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; ?>
    166178                                    </td>
    167179                                    <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>
    168182                                    <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>
    179183
    180184                                </tr>
    181                                     <?php } ?>
     185                                                        <?php endforeach; ?>
    182186
    183187                        </tbody></table>
Note: See TracChangeset for help on using the changeset viewer.