Ignore:
Timestamp:
Nov 4, 2014 6:48:37 PM (11 years ago)
Author:
namnd
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules/admin/views
Files:
3 edited

Legend:

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

    r390 r408  
    9090                                    Ngày đăng kÜ
    9191                                </th>
    92                                 <th class="hidden-480 sorting" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 158px;" aria-label="Trạng thái: activate to sort column ascending">Trạng thái</th><th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label=""></th></tr>
     92                                <th class="sorting_disabled" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 158px;" aria-label="Trạng thái: activate to sort column ascending">Trạng thái</th>
     93                                                                <th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label=""></th></tr>
    9394                        </thead>
    9495
  • pro-violet-viettel/sourcecode/application/modules/admin/views/user/index.php

    r396 r408  
    5151                }
    5252            }
    53                         console.log($( this ).attr('class'));
    5453            $("#sorting_field").val($(this).attr("id"));
    5554            $("#sorting_order").val($(this).attr("class"));
     
    104103
    105104            <div class="modal-body">
    106                 <form id="add_user" onsubmit="return false;" class="form-horizontal" role="form">
     105                <form id="add_frm" onsubmit="return false;" class="form-horizontal" role="form">
    107106                    <div class="form-group">
    108107                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Số điện thoại </label>
  • pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php

    r396 r408  
    4141            <div style="padding-bottom:4px" class="table-header">
    4242                Danh sách
    43 
    4443                <button href="#addUser" data-toggle="modal" class="btn btn-success pull-right">
    4544                    <i class="icon-plus"></i>
     
    5554                            <div class="col-sm-6">
    5655                                <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị
    57                                         <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">                                     
     56                                        <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2">
    5857                                            <?php foreach ($itemsoptions as $option) { ?>
    5958                                            <option <?php if($option == $perpage) echo "selected"; ?> value="<?=$option?>"><?=$option?></option>
     
    6362                                </div>
    6463                            </div>
    65 
     64                                                               
    6665                            <div class="col-sm-6">
    6766                                <div class="dataTables_filter" id="sample-table-2_filter">
     
    7069                                </div>
    7170                            </div>
     71                                                        <div class="col-sm-6">
     72                                <div class="dataTables_status" id="sample-table-2_status"><label>Lọc
     73                                                                        <select onchange="filter();" name="status" size="1" aria-controls="sample-table-2" class="">                                     
     74                                                                                <?php foreach ($statusoptions as $key=>$option):?>
     75                                                                                <option <?php if ($key == $status) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $option; ?></option>
     76                                                                                <?php endforeach; ?>
     77                                                                        </select>
     78                                                                </div>
     79                                                        </div>
    7280                        </div>
     81                                                       
    7382                                                <input type="hidden" name="sorting_order" id="sorting_order" value="<?php echo $sorting_order;?>" />
    7483                                                <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/>
     
    8392                                    </label>
    8493                                </th>
     94                                                                <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: 176px;" aria-label="Tài khoản: activate to sort column ascending">Tài khoản</th>
    8595                                <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: 176px;" aria-label="Số điện thoại: activate to sort column ascending">Số điện thoại</th>
    8696                                <th class="<?php if ($sorting_field == 'acc_balanced') {echo $sorting_order;} else {echo "sorting";}?>" id="acc_balanced" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 122px;" aria-label="Tiền: activate to sort column ascending">Tiền</th>
     
    93103                                    Ngày hết hạn
    94104                                </th>
    95                                 <th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 133px;" aria-label=""></th></tr>
     105                                                                <th class="sorting_disabled" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;">Tình trạng</th>
     106                            </tr>
    96107                        </thead>
    97108
     
    108119                                    </label>
    109120                                </td>
    110 
     121                                                                <td class=" ">
     122                                    <a href="#"><?php echo $user['username']; ?></a>
     123                                </td>
    111124                                <td class=" ">
    112                                     <a href="#"><?php echo $user['cellphone']; ?></a>
     125                                    <?php echo $user['cellphone']; ?>
    113126                                </td>
    114                                 <td class="hidden-480 "><?php echo $user['acc_balanced']; ?></td>
     127                                <td class="hidden-480 "><?php echo $user['acc_balanced']. " VNĐ"; ?></td>
    115128                                <td class=" "><?php echo $user['created_time']; ?></td>
    116129                                                                <td class=" "><?php echo $user['expire_date']; ?></td>
     130                                                                <td class=" ">
     131                                                                <?php  if(strtotime($user['expire_date'])>time()){ ?>
     132                                                                        <span class="label label-sm label-success">Đã kích hoạt</span>
     133                                                                <?php }else{ ?>
     134                                                                        <span class="label label-sm label-warning">Tạm ngưng</span>
     135                                                                <?php } ?>
     136                                                                </td>
    117137
    118                                 <td class=" ">
    119                                     <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
    120                                         <a href="#" class="blue">
    121                                             <i class="icon-zoom-in bigger-130"></i>
    122                                         </a>
    123 
    124                                         <a href="#editUser" data-toggle="modal" data-us-id=<?php echo $user['us_id']; ?> class="green">
    125                                             <i class="icon-pencil bigger-130"></i>
    126                                         </a>
    127 
    128                                         <a href="#deleteUser" data-toggle="modal" data-us-id=<?php echo $user['us_id']; ?> class="red">
    129                                             <i class="icon-trash bigger-130"></i>
    130                                         </a>
    131                                     </div>
    132 
    133                                     <div class="visible-xs visible-sm hidden-md hidden-lg">
    134                                         <div class="inline position-relative">
    135                                             <button data-toggle="dropdown" class="btn btn-minier btn-yellow dropdown-toggle">
    136                                                 <i class="icon-caret-down icon-only bigger-120"></i>
    137                                             </button>
    138 
    139                                             <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
    140                                                 <li>
    141                                                     <a title="" data-rel="tooltip" class="tooltip-info" href="#" data-original-title="View">
    142                                                         <span class="blue">
    143                                                             <i class="icon-zoom-in bigger-120"></i>
    144                                                         </span>
    145                                                     </a>
    146                                                 </li>
    147 
    148                                                 <li>
    149                                                     <a title="" data-rel="tooltip" class="tooltip-success" href="#" data-original-title="Edit">
    150                                                         <span class="green">
    151                                                             <i class="icon-edit bigger-120"></i>
    152                                                         </span>
    153                                                     </a>
    154                                                 </li>
    155 
    156                                                 <li>
    157                                                     <a title="" data-rel="tooltip" class="tooltip-error" href="#" data-original-title="Delete">
    158                                                         <span class="red">
    159                                                             <i class="icon-trash bigger-120"></i>
    160                                                         </span>
    161                                                     </a>
    162                                                 </li>
    163                                             </ul>
    164                                         </div>
    165                                     </div>
    166                                 </td>
    167138                            </tr>
    168139                            <?php } ?>
    169 
    170 
    171 
    172 
    173 
    174 
    175140
    176141                        </tbody></table><div class="row"><div class="col-sm-6">
Note: See TracChangeset for help on using the changeset viewer.