Changeset 527


Ignore:
Timestamp:
Nov 15, 2014 7:11:29 AM (11 years ago)
Author:
namnd
Message:
 
Location:
pro-violet-viettel/sourcecode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/frontend/views/user_profile.php

    r526 r527  
    120120                                                                                               
    121121                                            </div>
    122                                                                                         <div class="col-md-offset-3 col-md-9"><label id="updating" style="display: none;;"><span class="icon-refresh icon-refresh-animate"></span> Đang xá»­ lÜ...</label>
     122                                                                                        <div class="col-md-offset-3 col-md-9"><label id="updating" style="display: none;"><span class="icon-refresh icon-refresh-animate"></span> Đang xá»­ lÜ...</label>
    123123                                                                                        </div>
    124124                                        </div>
     
    222222                                        </div>
    223223                                        <div class="col-sm-4">
    224                                             <button type="button" onclick="return chargeCard(<?php echo @$us_id; ?>);" class="btn btn-success">
     224                                            <button type="button" id="btn-charge" onclick="return chargeCard(<?php echo @$us_id; ?>);" class="btn btn-success">
    225225                                                <i class="icon-ok bigger-110"></i>
    226226                                                Tiếp tục
    227227                                            </button>
     228                                                                                        <div class="space-4"></div>
     229                                                                                        <label id="charging" style="display: none;"><span class="icon-refresh icon-refresh-animate"></span> Xin chờ...</label>
    228230                                            <div class="space-4"></div>
    229231                                            <a href="#" data-toggle="modal" data-target="#trade-history"><i class="icon-archive"></i> Lịch sá»­ giao dịch</a>
     
    247249                                        <h4 class="header blue bolder smaller">ThÃŽng tin dịch vụ</h4>
    248250                                                                                <div class="col-sm-6">
    249                                             <h4><b>Thời hạn sá»­ dụng</b></h4> <h3><b><span class="blue"><?php echo date('d/m/Y', strtotime($expire_date)); ?> </span></b></h3>
     251                                            <h4><b>Thời hạn sá»­ dụng</b></h4> <h3><b><span class="blue"><?php if(strtotime($expire_date)>0) { echo date('d/m/Y', strtotime($expire_date));}else { echo '';} ?> </span></b></h3>
    250252                                        </div>
    251253                                                                                <div class="col-sm-6">
  • pro-violet-viettel/sourcecode/assets/js/frontend/user.js

    r524 r527  
    141141function chargeCard(id)
    142142{
     143        $("#charging").css('display', 'block');
     144        $('#btn-charge').attr("disabled", true);
    143145        $.ajax({
    144146                url: 'http://viettel.violet.vn/services/recharge/recharge_card/'+id,
     
    147149                success: function (data, textStatus, jqXHR)
    148150                {       
     151                        $("#charging").css('display', 'none');
     152                        $('#btn-charge').attr("disabled", false);
    149153                        result = jQuery.parseJSON(data);
    150154                        if(result.success == "1")
Note: See TracChangeset for help on using the changeset viewer.