Subversion Repositories SmartDukaan

Rev

Go to most recent revision | 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>
        <link rel="stylesheet" href="/Support/css/bulk-order.css" type="text/css" />
        <link rel="stylesheet" href="/Support/css/demo_table.css" type="text/css" />
        <link rel="stylesheet" href="/Support/css/demo_table_jui.css" type="text/css" />
        <link rel="stylesheet" href="/Support/css/demo_page.css" type="text/css" />
        <title>
            Bulk order $action.getTransactionId()
        </title>
    </head>
    <body>
        <div >
            <a href="/Support/bulk-order">Go to all bulk orders</a>
        </div>

        <h2 >Bulk order $action.getTransactionId()</h2>
        <div >
            #set($txn = $action.getTransaction())
            #set($order = $txn.getOrders().get(0))
            <table >
                <tbody >
                    <tr ><td >Transaction Id: </td><td >$txn.getId()</td></tr>
                    <tr ><td >Email: </td><td >$order.getCustomer_email()</td></tr>
                    <tr ><td >Name: </td><td >$order.getCustomer_name()</td></tr>
                    <tr ><td >Mobile No: </td><td >$order.getCustomer_mobilenumber()</td></tr>
                    <tr ><td >RTGS Id: </td><td >$action.getRtgsId()</td></tr>
                    <tr ><td >RTGS Bank Id: </td><td >$action.getRtgsBank()</td></tr>
                    <tr ><td >RTGS Branch: </td><td >$action.getRtgsBranch()</td></tr>
                    <tr ><td >IFSC Code: </td><td >$action.getIfscCode()</td></tr>
                    <tr ><td >Amount: </td><td >$action.getPayment().getAmount()</td></tr>
                </tbody>
            </table>
            <br />
            <br />
            <table id="orders">
                <thead >
                    <tr >
                        <th >Order Id</th>
                        <th >Item Id</th>
                        <th >Model name</th>
                        <th >Price</th>
                        <th >Quantity</th>
                        <th >Amount</th>
                    </tr>
                </thead>
                <tbody >
                    #foreach($order in $txn.getOrders())
                        #set($lineItem = $order.getLineitems().get(0))
                        <tr >
                            <td >$order.getId()</td>
                            <td >$lineItem.getItem_id()</td>
                            <td >$action.extractProductName($lineItem)</td>
                            <td >$lineItem.getUnit_price()</td>
                            <td >$lineItem.getQuantity()</td>
                            <td >$lineItem.getTotal_price()</td>
                        </tr>
                    #end
                </tbody>
            </table>
        </div>
        <script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
        <script type="text/javascript" src="/Support/js/jquery.dataTables.min.js"></script>
        <script type="text/javascript" src="/Support/js/bulk-order-common.js"></script>
        <script type="text/javascript" src="/Support/js/bulk-order-events.js"></script>
        <script >
            $('table#orders').dataTable({
                "aaSorting" : [ [ 1, 'desc' ] ],
                "iDisplayLength" : 10,
                "sDom": 'T<"clear">lfrtip',
                "bAutoWidth": false,
                "aoColumns" : [{ "sWidth": "15%" },
                               { "sWidth": "15%" },
                               { "sWidth": "25%" },
                               { "sWidth": "15%" },
                               { "sWidth": "15%" },
                               { "sWidth": "15%" }],
                "aLengthMenu" : [ [ 10, 20, 30, -1 ], [ 10, 20, 30, "All" ] ]
            });
        </script>
    </body>
</html>