Subversion Repositories SmartDukaan

Rev

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

<style>
        .table-striped > tbody > tr:nth-child(odd) > td{
                background: white;
                background-color: white;
        }
        .table-striped > tbody > tr:nth-child(even) > td{
                background: white;
                background-color:white;
        }
        .table-striped > tbody > tr:hover > td,
        .table-striped > tbody > tr:hover {
                background-color: #e98c8f;
                color:white;
        }
        .btn:hover{
                color: grey;
                text-decoration: none;
        }
        .btn-primary:hover{
                color: grey;
                text-decoration: none;
        }
        .sale-details{
                cursor:pointer;
        }
</style>

<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>RECHARGE</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("mobilerecharge.home")</a></li>
                                <li><i class="icon_document_alt"></i>#springMessage("mobilerecharge.mobilerecharge")</li>
                        </ol>
                </div>
        </div>
        <div id="mobile-recharge-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>#springMessage("mobhistory.requestid")</th>
                                                <th>#springMessage("mobhistory.operator")</th>
                                                <th>#springMessage("mobhistory.operatortype")</th>
                                                <th>#springMessage("mobhistory.number")</th>
                                                <th>#springMessage("mobhistory.amount")</th>
                                                <th>#springMessage("mobhistory.commission")</th>
                                                <th>#springMessage("mobhistory.status")</th>
                                                <th>#springMessage("mobhistory.statusmessage")</th>
                                                <th>#springMessage("mobhistory.createdon")</th>
                                                <th>#springMessage("mobhistory.updatedon")</th>
                                        </tr>
                                        #if(!$rechargeTransactions.isEmpty())
                                                #foreach( $rechargeTransaction in $rechargeTransactions )
                                                        <tr class="mobile-recharge-details" data="$rechargeTransaction.getId()">
                                                                <td>$rechargeTransaction.getRequestId()</td>
                                                                <td>$rechargeOperatorIdRechargeOperatorNameMap.get($rechargeTransaction.getOperatorId())</td>
                                                                <td>$rechargeTransaction.getOperatorType()</td>
                                                                <td>$rechargeTransaction.getReferenceNumber()</td>
                                                                <td>$rechargeTransaction.getAmount()</td>
                                                                <td>$rechargeTransaction.getCommission()</td>
                                                                #if($rechargeTransaction.getStatus() == "PENDING"|| $rechargeTransaction.getStatus() == "SUCCESS" || $rechargeTransaction.getStatus() == "CONNECTION_TIMEOUT")
                                                                        <td>$rechargeTransaction.getStatus() &nbsp;&nbsp;<a class="mobile-recharge-check-status" href="javascript:void(0);" data="$rechargeTransaction.getRequestId()">Check Status</a></td>
                                                                #else
                                                                <td>$rechargeTransaction.getStatus() </td>
                                                                #end
                                                                <td>$rechargeTransaction.getStatusMessage()</td>
                                                                <td>$rechargeTransaction.getFormattedCreateTimestamp()</td>
                                                                <td>$rechargeTransaction.getFormattedUpdateTimestamp()</td>
                                                        </tr>
                                                #end
                                        #else
                                                <tr>
                                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>
    #if(!$rechargeTransactions.isEmpty())
        <div class="row" id="mobile-recharges-paginated">
                <div class="col-lg-9">
                        <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
                </div>
                <div class="col-lg-3" style="text-align:right;">
                                <div class="btn-group" style="width:40%">
                                        <button class="btn btn-primary previous" disabled="disabled" style="width:100%">#springMessage("mobhistory.previous")</button>
                                </div>
                                <div class="btn-group" style="width:40%">
                                        #if($end >= $size)
                                                <button class="btn btn-primary next" style="width:100%" disabled="disabled">#springMessage("mobhistory.next")</button>
                                        #else
                                                <button class="btn btn-primary next" style="width:100%">#springMessage("mobhistory.next")</button>
                                        #end
                                </div>
                </div>
            </div>
    #end
</section>
<div id="mobile-recharge-details-container" style="background:white;background-color:white;">
</div>