Ignore:
Timestamp:
Nov 17, 2014 5:52:47 PM (11 years ago)
Author:
namnd
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/cardlog.php

    r437 r540  
    5656                        $id = $cl['us_id'];
    5757                        $username = $this->get_username($id);
     58                        $servicename = $this->get_servicename($cl['service_id']);
    5859                        $cl['username'] = $username;
     60                        $cl['servicename'] = $servicename;
    5961                        array_push($cardlogs, $cl);
    6062                endforeach;
     
    8890        }
    8991       
     92        private function get_servicename($service_id)
     93        {
     94                $this->load->model('webservice_model');
     95                $service = $this->webservice_model->search_by_id($service_id);
     96                return $service['service_name'];
     97        }
     98       
    9099}
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/smslog.php

    r437 r540  
    5757                        $id = $smsl['us_id'];
    5858                        $username = $this->get_username($id);
     59                        $servicename = $this->get_servicename($smsl['service_id']);
    5960                        $smsl['username'] = $username;
     61                        $smsl['servicename'] = $servicename;
    6062                        array_push($smslogs, $smsl);
    6163                endforeach;
     
    8890
    8991        }
     92       
     93        private function get_servicename($service_id)
     94        {
     95                $this->load->model('webservice_model');
     96                $service = $this->webservice_model->search_by_id($service_id);
     97                return $service['service_name'];
     98        }
    9099}
  • pro-violet-viettel/sourcecode/application/modules/admin/views/cardlog/listview.php

    r430 r540  
    2525            <!-- PAGE CONTENT BEGINS -->
    2626            <div style="padding-bottom:4px" class="table-header">
    27                 Danh sách log
     27                Danh sách Card Log
    2828            </div>
    2929                        <!-- PAGE CONTENT BEGINS -->
     
    6363                                                                </th>
    6464                                                        <th class="<?php if ($sorting_field == 'sender') {echo $sorting_order;} else {echo "sorting";} ?>" id="sender" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Người gá»­i: activate to sort column ascending">Người gá»­i</th>
    65                                                         <th class="<?php if ($sorting_field == 'us_id') {echo $sorting_order;} else {echo "sorting";} ?>" id="us_id" 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>
     65                                                        <th class="<?php if ($sorting_field == 'service_id') {echo $sorting_order;} else {echo "sorting";} ?>" id="serivice_id" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Dịch vụ: activate to sort column ascending">Dịch vụ</th>
    6666                                                        <th class="<?php if ($sorting_field == 'pin_code') {echo $sorting_order;} else {echo "sorting";} ?>" id="pin_code" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Mã pin: activate to sort column ascending">Mã pin</th>
    6767                                                        <th class="<?php if ($sorting_field == 'serial_number') {echo $sorting_order;} else {echo "sorting";} ?>" id="serial_number" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Số seri: activate to sort column ascending">Số seri</th>
     
    8585
    8686                                                        <td>
    87                                                                 <a href="#"><?php echo $cardlog['sender']; ?></a>
     87                                                                <?php echo $cardlog['sender']; ?>
    8888                                                        </td>
    89                                                         <td><?php echo $cardlog['username']; ?></td>
     89                                                        <td><?php echo $cardlog['servicename']; ?></td>
    9090                                                        <td><?php echo $cardlog['pin_code']; ?></td>
    9191                                                        <td><?php echo $cardlog['serial_number']; ?></td>
  • pro-violet-viettel/sourcecode/application/modules/admin/views/smslog/listview.php

    r430 r540  
    2525            <!-- PAGE CONTENT BEGINS -->
    2626            <div style="padding-bottom:4px" class="table-header">
    27                 Danh sách log
     27                Danh sách SMS Log
    2828            </div>
    2929                        <!-- PAGE CONTENT BEGINS -->
     
    6363                                                                </th>
    6464                                                        <th class="<?php if ($sorting_field == 'sender') {echo $sorting_order;} else {echo "sorting";} ?>" id="sender" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Người gá»­i: activate to sort column ascending">Người gá»­i</th>
    65                                                         <th class="<?php if ($sorting_field == 'us_id') {echo $sorting_order;} else {echo "sorting";} ?>" id="us_id" 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>
    66                                                         <th class="<?php if ($sorting_field == 'mobody') {echo $sorting_order;} else {echo "sorting";} ?>" id="mobody" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="MO: activate to sort column ascending">MO</th>
    67                                                         <th class="<?php if ($sorting_field == 'mtbody') {echo $sorting_order;} else {echo "sorting";} ?>" id="mtbody" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="MT: activate to sort column ascending">MT</th>
     65                                                        <th class="<?php if ($sorting_field == 'service_id') {echo $sorting_order;} else {echo "sorting";} ?>" id="service_id" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Dịch vụ: activate to sort column ascending">Dịch vụ</th>
     66                                                        <th class="<?php if ($sorting_field == 'commandcode') {echo $sorting_order;} else {echo "sorting";} ?>" id="commandcode" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Mã lệnh: activate to sort column ascending">Mã lệnh</th>
     67                                                        <th class="<?php if ($sorting_field == 'info') {echo $sorting_order;} else {echo "sorting";} ?>" id="info" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="ThÃŽng tin: activate to sort column ascending">ThÃŽng tin</th>
    6868                                                        <th class="<?php if ($sorting_field == 'created_time') {echo $sorting_order;} else {echo "sorting";} ?>" id="created_time" class="hidden-480" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Thời gian: activate to sort column ascending">
    6969                                                                <i class="icon-time bigger-110 hidden-480"></i>
     
    8484
    8585                                                        <td>
    86                                                                 <a href="#"><?php echo $smslog['sender']; ?></a>
     86                                                                <?php echo $smslog['sender']; ?>
    8787                                                        </td>
    88                                                         <td><?php echo $smslog['username']; ?></td>
    89                                                         <td><?php echo $smslog['mobody']; ?></td>
    90                                                         <td><?php echo $smslog['mtbody']; ?></td>
     88                                                        <td><?php echo $smslog['servicename']; ?></td>
     89                                                        <td><?php echo $smslog['commandcode']; ?></td>
     90                                                        <td><?php echo $smslog['info']; ?></td>
    9191                                                        <td><?php echo $smslog['created_time']; ?></td>
    9292                                                </tr>
     
    117117        init_page();
    118118    }
    119 
    120 
    121119</script>
Note: See TracChangeset for help on using the changeset viewer.