Changeset 540 for pro-violet-viettel/sourcecode/application/modules
- Timestamp:
- Nov 17, 2014 5:52:47 PM (11 years ago)
- 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 56 56 $id = $cl['us_id']; 57 57 $username = $this->get_username($id); 58 $servicename = $this->get_servicename($cl['service_id']); 58 59 $cl['username'] = $username; 60 $cl['servicename'] = $servicename; 59 61 array_push($cardlogs, $cl); 60 62 endforeach; … … 88 90 } 89 91 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 90 99 } -
pro-violet-viettel/sourcecode/application/modules/admin/controllers/smslog.php
r437 r540 57 57 $id = $smsl['us_id']; 58 58 $username = $this->get_username($id); 59 $servicename = $this->get_servicename($smsl['service_id']); 59 60 $smsl['username'] = $username; 61 $smsl['servicename'] = $servicename; 60 62 array_push($smslogs, $smsl); 61 63 endforeach; … … 88 90 89 91 } 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 } 90 99 } -
pro-violet-viettel/sourcecode/application/modules/admin/views/cardlog/listview.php
r430 r540 25 25 <!-- PAGE CONTENT BEGINS --> 26 26 <div style="padding-bottom:4px" class="table-header"> 27 Danh sách log27 Danh sách Card Log 28 28 </div> 29 29 <!-- PAGE CONTENT BEGINS --> … … 63 63 </th> 64 64 <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> 66 66 <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> 67 67 <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> … … 85 85 86 86 <td> 87 < a href="#"><?php echo $cardlog['sender']; ?></a>87 <?php echo $cardlog['sender']; ?> 88 88 </td> 89 <td><?php echo $cardlog[' username']; ?></td>89 <td><?php echo $cardlog['servicename']; ?></td> 90 90 <td><?php echo $cardlog['pin_code']; ?></td> 91 91 <td><?php echo $cardlog['serial_number']; ?></td> -
pro-violet-viettel/sourcecode/application/modules/admin/views/smslog/listview.php
r430 r540 25 25 <!-- PAGE CONTENT BEGINS --> 26 26 <div style="padding-bottom:4px" class="table-header"> 27 Danh sách log27 Danh sách SMS Log 28 28 </div> 29 29 <!-- PAGE CONTENT BEGINS --> … … 63 63 </th> 64 64 <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> 68 68 <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"> 69 69 <i class="icon-time bigger-110 hidden-480"></i> … … 84 84 85 85 <td> 86 < a href="#"><?php echo $smslog['sender']; ?></a>86 <?php echo $smslog['sender']; ?> 87 87 </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> 91 91 <td><?php echo $smslog['created_time']; ?></td> 92 92 </tr> … … 117 117 init_page(); 118 118 } 119 120 121 119 </script> -
pro-violet-viettel/sourcecode/application/modules/frontend/controllers/home.php
r503 r540 39 39 $password = $this->input->post('password', TRUE); 40 40 $autologin = ($this->input->post('remember_me') == 'on') ? 1 : 0; 41 $src = 'SBG'; 41 42 $token = md5($username . self::TOKENPW); 42 43 43 $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); 46 45 if ($data == null) { 47 46 $this->session->set_flashdata('login_error', TRUE); … … 107 106 public function change_profile() { 108 107 $this->load->model('user_model'); 109 $sentNumber = '0 1662860000';108 $sentNumber = '0979947802'; 110 109 $serviceID = 1; 111 110 $password = '123456'; 112 111 $commandcode = "SBG"; 113 $receiveID = '0 979947802';112 $receiveID = '01662860000'; 114 113 $info = "SBG TD"; 115 114 $receiveTime = date("Y-m-d H:i:s"); 116 115 $status = 0; 117 $data = $this->user_model->changeProfile($sentNumber, $receiveID, $password, $s erviceID, $commandcode, $info, $receiveTime, $status);116 $data = $this->user_model->changeProfile($sentNumber, $receiveID, $password, $status); 118 117 echo $data; 119 118 } … … 134 133 } 135 134 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 } 136 166 } 137 167 -
pro-violet-viettel/sourcecode/application/modules/frontend/views/user_profile.php
r539 r540 222 222 </div> 223 223 <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"> 225 225 <i class="icon-ok bigger-110"></i> 226 226 Tiếp tục … … 363 363 <div class="alert alert-block alert-success"> 364 364 <p> 365 Quà vá» Äã nạp thà nh cÃŽng <b>10.000 </b>VN D 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Ä. 366 366 </p> 367 367 </div>
Note: See TracChangeset
for help on using the changeset viewer.