Subversion Repositories SmartDukaan

Rev

Rev 7240 | Rev 8406 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7240 Rev 7621
Line 49... Line 49...
49
		<table border="1" width="100%">
49
		<table border="1" width="100%">
50
            <thead>
50
            <thead>
51
              <tr>
51
              <tr>
52
                <th width="8%">Order ID</th>
52
                <th width="8%">Order ID</th>
53
				<th width="18%">Date/Time</th>
53
				<th width="18%">Date/Time</th>
54
                <th width="12%">Brand</th>
54
                <th width="32%">Product</th>
55
                <th width="20%">Model Number</th>
-
 
56
                <th width="8%">Type</th>
55
                <th width="8%">Type</th>
57
                <th width="16%">Status</th>
56
                <th width="16%">Status</th>
58
				<th width="10%">Customer ID</th>
57
				<th width="10%">Source</th>
59
                <th width="8%">Customer City </th>
58
                <th width="8%">Customer City </th>
60
              </tr>
59
              </tr>
61
            </thead>
60
            </thead>
62
            <tbody>
61
            <tbody>
63
			#foreach($order in $action.getValidOrders())
62
			#foreach($order in $action.getValidOrders())
64
			#set($item = $action.getItem($order))
63
			#set($item = $action.getItem($order))
65
              <tr>
64
              <tr>
66
                <td>$order.getId()</td>
65
                <td>$order.getId()</td>
67
				<td>$action.getDateTime($order.getCreated_timestamp())</td>
66
				<td>$action.getDateTime($order.getCreated_timestamp())</td>
-
 
67
				#set($modelname = "")
-
 
68
				#set($modelnumber = "")
-
 
69
				#if($item.getModel_name())
68
                <td>$item.getBrand()</td>
70
					#set($modelname = $item.getModel_name())
-
 
71
				#end
-
 
72
				#if($item.getModel_number())
-
 
73
					#set($modelnumber = $item.getModel_number())
-
 
74
				#end
69
                <td>$item.getModel_number()</td>
75
                <td>$item.getBrand() $modelname $modelnumber</td>
70
				#if($order.isCod())
76
				#if($order.isCod())
71
				<td>COD</td>
77
				<td>COD</td>
72
				#else
78
				#else
73
				<td>Prepaid</td>
79
				<td>Prepaid</td>
74
				#end
80
				#end
75
				<td>$action.getOrderStatusString($order.getStatus())</td>
81
				<td>$action.getOrderStatusString($order.getStatus())</td>
-
 
82
				#set($source = "WEBSITE")
-
 
83
				#if($order.getSource() == 2)
-
 
84
					#set($source = "STORE")
-
 
85
				#elseif($order.getSource() == 3)
-
 
86
					#set($source = "AMAZON")
-
 
87
				#end
76
                <td>$order.getCustomer_id()</td>
88
                <td>$source</td>
77
				<td>$order.getCustomer_city()</td>
89
				<td>$order.getCustomer_city()</td>
78
              </tr>
90
              </tr>
79
			#end
91
			#end
80
            </tbody>
92
            </tbody>
81
		</table>
93
		</table>