Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4207 mandeep.dh 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
    <head>
4
        <link rel="stylesheet" href="/Support/css/bulk-order.css" type="text/css" />
5
        <link rel="stylesheet" href="/Support/css/demo_table.css" type="text/css" />
6
        <link rel="stylesheet" href="/Support/css/demo_table_jui.css" type="text/css" />
7
        <link rel="stylesheet" href="/Support/css/demo_page.css" type="text/css" />
8
        <title>
9
            Bulk order $action.getTransactionId()
10
        </title>
11
    </head>
12
    <body>
13
        <div >
14
            <a href="/Support/bulk-order">Go to all bulk orders</a>
15
        </div>
16
 
17
        <h2 >Bulk order $action.getTransactionId()</h2>
18
        <div >
19
            #set($txn = $action.getTransaction())
20
            #set($order = $txn.getOrders().get(0))
21
            <table >
22
                <tbody >
23
                    <tr ><td >Transaction Id: </td><td >$txn.getId()</td></tr>
24
                    <tr ><td >Email: </td><td >$order.getCustomer_email()</td></tr>
25
                    <tr ><td >Name: </td><td >$order.getCustomer_name()</td></tr>
26
                    <tr ><td >Mobile No: </td><td >$order.getCustomer_mobilenumber()</td></tr>
27
                    <tr ><td >RTGS Id: </td><td >$action.getRtgsId()</td></tr>
28
                    <tr ><td >RTGS Bank Id: </td><td >$action.getRtgsBank()</td></tr>
29
                    <tr ><td >RTGS Branch: </td><td >$action.getRtgsBranch()</td></tr>
30
                    <tr ><td >IFSC Code: </td><td >$action.getIfscCode()</td></tr>
31
                    <tr ><td >Amount: </td><td >$action.getPayment().getAmount()</td></tr>
32
                </tbody>
33
            </table>
34
            <br />
35
            <br />
36
            <table id="orders">
37
                <thead >
38
                    <tr >
39
                        <th >Order Id</th>
40
                        <th >Item Id</th>
41
                        <th >Model name</th>
42
                        <th >Price</th>
43
                        <th >Quantity</th>
44
                        <th >Amount</th>
45
                    </tr>
46
                </thead>
47
                <tbody >
48
                    #foreach($order in $txn.getOrders())
49
                        #set($lineItem = $order.getLineitems().get(0))
50
                        <tr >
51
                            <td >$order.getId()</td>
52
                            <td >$lineItem.getItem_id()</td>
53
                            <td >$action.extractProductName($lineItem)</td>
54
                            <td >$lineItem.getUnit_price()</td>
55
                            <td >$lineItem.getQuantity()</td>
56
                            <td >$lineItem.getTotal_price()</td>
57
                        </tr>
58
                    #end
59
                </tbody>
60
            </table>
61
        </div>
62
        <script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
63
        <script type="text/javascript" src="/Support/js/jquery.dataTables.min.js"></script>
64
        <script type="text/javascript" src="/Support/js/bulk-order-common.js"></script>
65
        <script type="text/javascript" src="/Support/js/bulk-order-events.js"></script>
66
        <script >
67
            $('table#orders').dataTable({
68
                "aaSorting" : [ [ 1, 'desc' ] ],
69
                "iDisplayLength" : 10,
70
                "sDom": 'T<"clear">lfrtip',
71
                "bAutoWidth": false,
72
                "aoColumns" : [{ "sWidth": "15%" },
73
                               { "sWidth": "15%" },
74
                               { "sWidth": "25%" },
75
                               { "sWidth": "15%" },
76
                               { "sWidth": "15%" },
77
                               { "sWidth": "15%" }],
78
                "aLengthMenu" : [ [ 10, 20, 30, -1 ], [ 10, 20, 30, "All" ] ]
79
            });
80
        </script>
81
    </body>
82
</html>