Subversion Repositories SmartDukaan

Rev

Rev 6635 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <!-- Prevent MS Office toolbar from changing layout -->
        <meta http-equiv="imagetoolbar" content="false">
        <meta name="MSSmartTagsPreventParsing" content="true">

        <title>${in.shop2020.title}</title>
 #include ( "templates/commoncssfiles.vm" )
 <style type="text/css">
 #myAccount .content td{
        padding:7px 6px;
        text-align:center;
        border-right:1px solid #ccc;
        border-bottom:1px solid #ccc;
}
#myAccount .content th{
        padding:7px 6px;
        text-align:center;
        background:#daf0f8;
        border-bottom:1px solid #ccc;
}

</style>
        <script language="javascript" type="text/javascript" src="/js/ga-invoker.js"></script>
</head>

<body>
        <noscript>
                <p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
        </noscript>

        $action.getHeaderSnippet()
        <div id="main">
        <div class="main-content">
                <div class="main-top">
                        <div class="bread-crumbs">
                                <a href="/">Home</a>&nbsp;&gt;&nbsp;
                                <a href="#">My Account</a>
                        </div>
                </div>
                <div class="main-left left blue-border" style="width:100%">
                                        <!-- my account -->
                        <div id="myAccount">
                                                <div class="middle">
                    <div class="middle-grey-left">
                        <div class="middle-white-right">
                            <!-- nav -->
                <div id="myAccountNav">
                  <ul class="menu">
                    <li class="menu-item first">
                      <h2>Order History</h2>
                    </li>
                    <li class="menu-item">
                      <a href="/myaccount">Open Orders</a>
                    </li>
                    <li class="menu-item">
                      <a href="/completed-orders">Completed Orders</a>
                    </li>
                                        <li class="menu-item">
                                          <a href="/failed-orders">Failed Orders</a>
                                        </li>
                                        <li class="menu-item">
                        <h2 class="spacing">Purchases</h2>
                    </li>
                                        <li class="menu-item">
                                                <a href="/my-purchases">My Purchases</a>
                                        </li>
                                        <li class="menu-item">
                                                <a href="/my-recharges" class="active">My Recharges</a>
                                        </li>
                                        <li class="menu-item">
                        <h2 class="spacing">Wallet</h2>
                    </li>
                                        <li class="menu-item">
                      <a href="/my-wallet">My Wallet</a>
                    </li>
                    <li class="menu-item">
                      <h2 class="spacing">Account Settings</h2>
                    </li>
                    <li class="menu-item">
                      <a href="/personal-details">Personal Details</a>
                    </li>
                    <li class="menu-item">
                      <a href="/login-details">Login Details</a>
                    </li>
                    <li clas="menu-item last">
                      <a href="/address">Shipping Address</a>
                    </li>
                    <!--
                    <li><h2 class="spacing">Personalization</h2></li>
                    <li><a href="#">Recommendations</a></li>
                    <li><a href="#">Browsing History</a></li>
                                                -->
                  </ul>
                </div>
                <!-- /nav -->
                        <!-- content -->
                            <div class="content" style="width:808px">
                                <h1 style="padding-top:10px">My Recharges</h1>
                                                                
                                                                #set($recharges = $action.getRechargeOrders())
                                                        #set($rechargeDate = $action.getRechargeDate())
                                                    #if($recharges && $recharges.size() != 0)
                                                
                                <div class="note">Recharge detail and status information.</div>
                                                                #set($showExtraColumn = $action.shouldShowExtraColumn())
                                                                #if(!$action.getErrorMessage().isEmpty())
                                                                <div style="width: 786px;margin-bottom: 15px;padding: 10px;text-align: center;border: solid 1px red;color: red;font-size: 16px;margin-left: 5px;">Refund failed. Please try again or <a href='/contact-us'>contact us</a></div>
                                                                #end
                                <table cellpadding="0" cellspacing="0" border="0" width="100%" id="rechargeData" class="tablesorter">
                                <thead>
                                    <tr>
                                                                                #if($showExtraColumn)
                                            <th width="15%">Date</th>
                                                                                <th width="17%">Order Id</th>
                                            <th width="13%">Number</th>
                                            <th width="16%">Operator</th>
                                                                                <th width="9%">Value</th>
                                            <th width="20%">Status</th>
                                                                                <th width="10%" class="borderRight"></th>
                                                                                #else
                                                                                <th width="19%">Date</th>
                                                                                <th width="18%">Order Id</th>
                                            <th width="15%">Number</th>
                                            <th width="17%">Operator</th>
                                                                                <th width="11%">Value</th>
                                            <th width="20%" class="borderRight">Status</th>
                                                                                #end
                                    </tr>
                                </thead>
                                <tbody>
                                                                            #foreach($recharge in $recharges)
                                                                                        #if($recharge.getStatus().getValue() > 1)
                                                <tr>
                                                    <td>$action.formatDate($recharge.getCreationTimestamp())</td>
                                                                                        <td>$recharge.getDisplayId()</td>
                                                    <td>$recharge.getDeviceNumber()</td>
                                                    <td>$action.getProviderName($recharge.getId())</td>
                                                    <td>$recharge.getTotalAmount()</td>
                                                                                        <td>$action.getDisplayStatus($recharge.getStatus())</td>
                                                                                                        #if($showExtraColumn)
                                                                                                <td>
                                                                                                                        #if($action.isRefundPossible($recharge))
                                                                                                                                <form id='refundRechargeForm-$recharge.getId()' action='/my-recharges' method='post'>
                                                                                                                                        <input type="hidden" name='orderId' value='$recharge.getId()'></input>
                                                                                                                                        <div id='refundButtonDiv-$recharge.getId()'>
                                                                                                                                                <input type="button" orderId='$recharge.getId()' class='refund-recharge-button yellow-image' id="refund-recharge-$recharge.getId()" style='height:25px;'value="REFUND"></input>
                                                                                                                                        </div>
                                                                                                                                </form>
                                                                                                                        #elseif($recharge.getStatus() == "RECHARGE_SUCCESSFUL")
                                                                                                                                <form id='rechargeAgainForm-$recharge.getId()' action='/confirm!rechargeAgain' method='post'>
                                                                                                                                        <input type="hidden" name='rechargeOrderId' value='$recharge.getId()'></input>
                                                                                                                                        <div id='rechargeButtonDiv-$recharge.getId()'>
                                                                                                                                                <input type="submit" rechargeOrderId='$recharge.getId()' style="height:25px;background: url('/images/BG_NavBar.png') 0px -2px;color: white;border: 1px solid #069;" class='yellow-image' id="recharge-again-$recharge.getId()" style='height:25px;'value="Recharge Again"></input>
                                                                                                                                        </div>
                                                                                                                                </form>
                                                                                                                        #end
                                                                                                                </td>
                                                                                        #end
                                                </tr>
                                                                                        #end
                                                                                #end
                                </tbody>
                            </table>
                                  #else
                                        <div class="note">No recharge yet.</div>
                                                                #end
                            <br /><br /><br />
                                        
                    </div>
                                <!-- /content -->
                    <div class="clearBoth"></div>
                </div>
            </div>
        </div>
                                </div>
                                <!-- /my account -->    
                </div>  
                </div>
</div>
<!-- /Main -->

#include("templates/footer.vm")

#include ( "templates/commonjsfiles.vm" )
</body>
</html>