Subversion Repositories SmartDukaan

Rev

Rev 4207 | Details | Compare with Previous | 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
                </tbody>
28
            </table>
29
            <br />
30
            <br />
31
            <table id="orders">
32
                <thead >
33
                    <tr >
34
                        <th >Order Id</th>
35
                        <th >Item Id</th>
36
                        <th >Model name</th>
37
                        <th >Price</th>
38
                        <th >Quantity</th>
39
                        <th >Amount</th>
40
                    </tr>
41
                </thead>
42
                <tbody >
43
                    #foreach($order in $txn.getOrders())
44
                        #set($lineItem = $order.getLineitems().get(0))
45
                        <tr >
46
                            <td >$order.getId()</td>
47
                            <td >$lineItem.getItem_id()</td>
48
                            <td >$action.extractProductName($lineItem)</td>
49
                            <td >$lineItem.getUnit_price()</td>
50
                            <td >$lineItem.getQuantity()</td>
51
                            <td >$lineItem.getTotal_price()</td>
52
                        </tr>
53
                    #end
54
                </tbody>
55
            </table>
56
        </div>
57
        <script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
58
        <script type="text/javascript" src="/Support/js/jquery.dataTables.min.js"></script>
59
        <script type="text/javascript" src="/Support/js/bulk-order-common.js"></script>
60
        <script type="text/javascript" src="/Support/js/bulk-order-events.js"></script>
61
        <script >
62
            $('table#orders').dataTable({
63
                "aaSorting" : [ [ 1, 'desc' ] ],
64
                "iDisplayLength" : 10,
65
                "sDom": 'T<"clear">lfrtip',
66
                "bAutoWidth": false,
67
                "aoColumns" : [{ "sWidth": "15%" },
68
                               { "sWidth": "15%" },
69
                               { "sWidth": "25%" },
70
                               { "sWidth": "15%" },
71
                               { "sWidth": "15%" },
72
                               { "sWidth": "15%" }],
73
                "aLengthMenu" : [ [ 10, 20, 30, -1 ], [ 10, 20, 30, "All" ] ]
74
            });
75
        </script>
76
    </body>
77
</html>