Changeset 608
- Timestamp:
- Nov 21, 2014 3:57:53 PM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/frontend/views/user_profile.php
r591 r608 195 195 <h4 class="header blue bolder smaller">ThÃŽng tin tà i khoản</h4> 196 196 <div class="col-sm-6"> 197 <h4>Sá» tiá»n trong tà i khoản SBG Online: <b><span class="blue" ><?php echo number_format(@$acc_balanced, 0); ?> VNÄ <span></b></h4>197 <h4>Sá» tiá»n trong tà i khoản SBG Online: <b><span class="blue" id="topup-money"><?php echo number_format(@$acc_balanced, 0); ?> VNÄ <span></b></h4> 198 198 199 199 </div> … … 252 252 </div> 253 253 <div class="col-sm-6"> 254 <h4>Sá» tiá»n trong tà i khoản SBG Online</h4><h3> < ?php echo number_format(@$acc_balanced, 0); ?> VNÄ <span id="add_money" style="cursor:pointer" class="badge" >Nạp thêm tiá»n</span></h3>254 <h4>Sá» tiá»n trong tà i khoản SBG Online</h4><h3> <span id="vip-regis-money"> <?php echo number_format(@$acc_balanced, 0); ?></span> VNÄ <span id="add_money" style="cursor:pointer" class="badge" >Nạp thêm tiá»n</span></h3> 255 255 </div> 256 256 … … 487 487 var url="<?php echo base_url();?>"; 488 488 var current_tab="<?php echo $current_tab;?>"; 489 489 //var current_balanced = <?php echo $acc_balanced; ?>; 490 490 </script> 491 491 <?php -
pro-violet-viettel/sourcecode/assets/js/frontend/user.js
r593 r608 152 152 $("#success_charge").find('#success_charge_info').text("Quà vá» Äã nạp thà nh cÃŽng " + result.amount + " VNÄ và o tà i khoản " + result.username + ", tà i khoản ảo cá»§a quà vá» là " + result.acc_balanced + " VNÄ!"); 153 153 $("#success_charge").modal('show'); 154 $("#vip-regis-money").text(addCommas(result.acc_balanced)); 155 $("#topup-money").text(addCommas(result.acc_balanced) + ' VNÄ'); 156 154 157 }else 155 158 { … … 205 208 }); 206 209 } 210 211 function addCommas(nStr) 212 { 213 nStr += ''; 214 x = nStr.split('.'); 215 x1 = x[0]; 216 x2 = x.length > 1 ? '.' + x[1] : ''; 217 var rgx = /(\d+)(\d{3})/; 218 while (rgx.test(x1)) { 219 x1 = x1.replace(rgx, '$1' + ',' + '$2'); 220 } 221 return x1 + x2; 222 }
Note: See TracChangeset
for help on using the changeset viewer.