Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12449 kshitij.so 1
<style>
2
	#data th {
3
		font-size: 12px;
4
		text-align: center;
5
	}
6
	#data td {
7
		font-size: 12px;
8
		text-align: center;
9
		height: 40px;
10
	}
11
	a{
12
		text-decoration:none;
13
	}
14
* { font-family: sans-serif; }
15
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
16
p { clear: both; }
17
.submit { margin-left: 12em; }
18
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
19
ul { padding-left: 13px;}
20
td{background-color:gainsboro};
21
.diffColor {
22
    background: grey;
23
}
24
    border-color: #89cd89;
25
}
26
</style>
27
#set($data = $action.getPromotionResult())
28
<h3></h3>
29
<table id="data" style="width:100%;">
30
        <thead>
31
            <tr>
32
                <th>SKU</th>
33
				<th>Promotion Type</th>
34
				<th>Start Date</th>
35
				<th>End Date</th>
36
				<th>Standard Price</th>
37
				<th>Sale Price</th>
38
				<th>Uploaded On</th>
39
				<th>Promotion Active</th>
40
				<th>Updated on Marketplace</th>
41
            </tr>
42
        </thead>
43
        <tbody>
44
    #foreach ( $d in $data )
45
            <tr style="border: 1px">
46
                <td>$d.getSku()</td>
47
				<td>$d.getPromotionType()</td>
48
				<td>$action.getDate($d.getStartDate())</td>
49
				<td>$action.getDate($d.getEndDate())</td>
50
				<td>$d.getStandardPrice()</td>
51
				<td>$d.getSalePrice()</td>
52
				<td>$action.getDate($d.getAddedOn())</td>
53
				#if($d.isPromotionActive())
54
					<td>Yes</td>
55
				#else
56
					<td>No</td>
57
				#end
58
				#if($d.getUpdatedOnMarketplace()<1111111)
59
					<td>Not Yet</td>
60
				#else
61
					<td>$action.getDate($d.getUpdatedOnMarketplace())</td>
62
				#end
63
            </tr>
64
    #end
65
        </tbody>
66
    </table>