Subversion Repositories SmartDukaan

Rev

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

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i>HDFC Payments Reports</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li><i class="icon_document_alt"></i>HDFC Payments Reports</li>
            </ol>
        </div>
    </div>

    <div id="dateRangeDiv" style="float: right">
        Transfer Mode:
        <select name="transferModeSelector">
            #foreach($transferMode in $transferModeList)
                <option value="$transferMode" #if($transferMode==$mode) selected #end >$transferMode</option>
            #end
        </select>
        From:
        <input type="date" name="from" id="chartForm" value="$startDate">
        To:
        <input type="date" name="to" id="chartTo" value="$endDate">
        <button type="button" id="viewHdfcPaymentsReport" class="btn-success">Veiw Report</button>
    </div>
    <div>
        <table class="table table-bordered table-responsive" id="HdfcPaymentsTable">
            <thead>
            <tr>
                <th>UTR</th>
                <th>Transaction Id</th>
                <th>Amount</th>
                <th>Partner Name</th>
                <th>Transfer Mode</th>
                <th>Credit Time</th>
                <th>Create Time</th>
            </tr>
            </thead>
            <tbody>
                #foreach($upiPayment in $hdfcPaymentModels)
                <tr>
                    <td>$upiPayment.getUtr()</td>
                    <td>$upiPayment.getTransactionId()</td>
                    <td>$upiPayment.getAmount()</td>
                    <td>$upiPayment.getName()</td>
                    <td>$upiPayment.getTransferMode()</td>
                    <td>$upiPayment.getCreditTimestamp().format($dateTimeFormatter)</td>
                    <td>$upiPayment.getCreateTimestamp().format($dateTimeFormatter)</td>
                </tr>
                #end
            </tbody>
        </table>
    </div>
</section>
<script>
    $(document).ready(function () {
        var dtable = $('#HdfcPaymentsTable').DataTable({
            "scrollX": true,
            "scrollY": "500px",
            scrollCollapse: true,
            pageLength: 100,
            lengthMenu: [100,150,200,300] // Dropdown options
        });
    });
</script>