Ignore:
Timestamp:
Nov 17, 2014 5:52:47 PM (11 years ago)
Author:
namnd
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules
Files:
6 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>
  • pro-violet-viettel/sourcecode/application/modules/frontend/controllers/home.php

    r503 r540  
    3939        $password = $this->input->post('password', TRUE);
    4040        $autologin = ($this->input->post('remember_me') == 'on') ? 1 : 0;
     41                $src = 'SBG';
    4142        $token = md5($username . self::TOKENPW);
    42 
    4343        $this->load->model(array('user_model'));
    44         $data = $this->user_model->checkLogin('violet', $token, $username, $password);
    45 
     44        $data = $this->user_model->checkLogin($src, $token, $username, $password);
    4645        if ($data == null) {
    4746            $this->session->set_flashdata('login_error', TRUE);
     
    107106    public function change_profile() {
    108107        $this->load->model('user_model');
    109         $sentNumber = '01662860000';
     108        $sentNumber = '0979947802';
    110109        $serviceID = 1;
    111110        $password = '123456';
    112111        $commandcode = "SBG";
    113         $receiveID = '0979947802';
     112        $receiveID = '01662860000';
    114113        $info = "SBG TD";
    115114        $receiveTime = date("Y-m-d H:i:s");
    116115        $status = 0;
    117         $data = $this->user_model->changeProfile($sentNumber, $receiveID, $password, $serviceID, $commandcode, $info, $receiveTime, $status);
     116        $data = $this->user_model->changeProfile($sentNumber, $receiveID, $password, $status);
    118117        echo $data;
    119118    }
     
    134133    }
    135134
     135       
     136        public function register_vip()
     137        {
     138                $this->load->model('user_model');
     139                $sentNumber = '01662860000';
     140                $serviceID = 1;
     141                $commandcode = "SBG";
     142                $vipNum = 1;
     143                $mainAccBalanced = 15000;
     144                $info = "SBG DK VIP1";
     145                $receiveTime = date("Y-m-d H:i:s");
     146                $status = 0;
     147                $data = $this->user_model->registerVip($sentNumber, $vipNum, $serviceID, $commandcode, $info, $status);
     148                echo $data;
     149        }
     150       
     151        public function recharge_account()
     152        {
     153                $this->load->model('user_model');
     154                $sentNumber = '0979947802';
     155                $receiveID = '01662860000';
     156                $serviceID = 1;
     157                $commandcode = "SBG";
     158                $vipNum = 1;
     159                $mainAccBalanced = 15000;
     160                $amount = 10000;
     161                $info = "SBG NAP 01662860000 10000";
     162                $status = 0;
     163                $data = $this->user_model->rechargeAccount($sentNumber, $receiveID, $mainAccBalanced, $amount, $serviceID, $commandcode, $info, $status);
     164                echo $data;
     165        }
    136166}
    137167
  • pro-violet-viettel/sourcecode/application/modules/frontend/views/user_profile.php

    r539 r540  
    222222                                        </div>
    223223                                        <div class="col-sm-4">
    224                                             <button type="button" id="btn-charge" onclick="return chargeCard(<?php echo @$us_id; ?>);" class="btn btn-success">
     224                                            <button type="button"       onclick="return chargeCard(<?php echo @$us_id; ?>);" class="btn btn-success">
    225225                                                <i class="icon-ok bigger-110"></i>
    226226                                                Tiếp tục
     
    363363                <div class="alert alert-block alert-success">                                           
    364364                    <p>
    365                         Quí vị đã nạp thành cÃŽng <b>10.000 </b>VND vào tài khoản <b>0168942155</b>, tài khoản hiện tại cá»§a quí vị là <b>20.000 </b>VND.
     365                        Quí vị đã nạp thành cÃŽng <b>10.000 </b>VNĐ vào tài khoản <b>0168942155</b>, tài khoản hiện tại cá»§a quí vị là <b>20.000 </b>VNĐ.
    366366                    </p>
    367367                </div>
Note: See TracChangeset for help on using the changeset viewer.