Subversion Repositories SmartDukaan

Rev

Rev 5639 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3232 varun.gupt 1
<!DOCTYPE html>
2
<html>
3
<head>
5291 varun.gupt 4
	<title>Price Comparison Dashboard</title>
3232 varun.gupt 5
	<link rel="stylesheet" type="text/css" href="/static/facebox.css" />
3551 varun.gupt 6
	<link rel="stylesheet" type="text/css" href="/static/chart.css" />
3232 varun.gupt 7
</head>
8
<body>
5291 varun.gupt 9
	<div id="pageTitle">Price Comparison Dashboard</div>
10
	<div id="all" class="menu-item" title="All Products">All Products</div>
11
	<div id="watchlist" class="menu-item" title="Watchlist">Watchlist</div>
5401 varun.gupt 12
	<div id="downloadXL" class="menu-item" title="Download Data">Download Data</div>
5291 varun.gupt 13
	<div id="howTo" class="menu-item" title="Click to see instructions">Help</div>
4198 varun.gupt 14
	<div class="clearboth"></div>
3313 varun.gupt 15
{% if len(data) > 0 %}
5401 varun.gupt 16
	<form action="/download" method="post"></form>
3440 varun.gupt 17
	<table>
3232 varun.gupt 18
	<thead>
19
		<tr>
3440 varun.gupt 20
			<th width="264">&nbsp;</th>
5639 amar.kumar 21
			<th width="105">Saholic</th>
22
			<th width="105">Flipkart</th>
23
			<th width="105">HomeShop18</th>
24
			<th width="105">Infibeam</th>
25
			<th width="105">Snapdeal</th>
26
			<th width="105">Sulekha</th>
27
			<th width="105">Tradus</th>
3552 varun.gupt 28
			<th>Max-Min<br />difference</th>
3232 varun.gupt 29
		</tr>
30
	</thead>
3440 varun.gupt 31
	</table>
32
<div id="datatable-container">
33
	<table id="datatable">
3232 varun.gupt 34
	<tbody>
3313 varun.gupt 35
	{% for phone in data %}
3440 varun.gupt 36
		<tr id="{{ phone['entity_id'] }}">
5291 varun.gupt 37
			<td class="name">
38
				{{ phone['product_name'] }}
39
				<div class="watchlist-icon"></div>
40
			</td>
4198 varun.gupt 41
			<td class="price saholic">{{ phone['saholic']['price'] }}</td>
3313 varun.gupt 42
 
43
		{% if phone['flipkart']['data'] is not None %}
5319 varun.gupt 44
			<td class="price conflict" data='{{ phone["flipkart"]["data"] }}' source="flipkart">
3313 varun.gupt 45
		{% else %}
3440 varun.gupt 46
			<td class="price" source="flipkart">
3313 varun.gupt 47
		{% end %}
48
 
49
		{% if phone['flipkart']['price'] is None and phone['flipkart']['data'] is None %}
4198 varun.gupt 50
				<a href="{{ phone['flipkart']['url'] }}" target="_blank">{{ phone['flipkart']['text'] }}</a>
3440 varun.gupt 51
 
52
		{% elif phone['flipkart']['data'] is not None %}
53
				<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}">
54
					{{ phone['flipkart']['text'] }}
55
				</a>
3313 varun.gupt 56
		{% else %}
57
				<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}" target="_blank">
58
					{{ phone['flipkart']['text'] }}
59
				</a>
60
		{% end %}
3232 varun.gupt 61
			</td>
3313 varun.gupt 62
 
63
		{% if phone['homeshop18']['data'] is not None %}
5319 varun.gupt 64
			<td class="price conflict" data='{{ phone["homeshop18"]["data"] }}' source="homeshop18">
3313 varun.gupt 65
		{% else %}
3440 varun.gupt 66
			<td class="price" source="homeshop18">
3313 varun.gupt 67
		{% end %}
68
 
69
		{% if phone['homeshop18']['price'] is None and phone['homeshop18']['data'] is None %}
4198 varun.gupt 70
				<a href="{{ phone['homeshop18']['url'] }}" target="_blank">{{ phone['homeshop18']['text'] }}</a>
3440 varun.gupt 71
		{% elif phone['homeshop18']['data'] is not None %}
72
				<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}">
73
					{{ phone['homeshop18']['text'] }}
74
				</a>
3313 varun.gupt 75
		{% else %}
76
				<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}" target="_blank">
77
					{{ phone['homeshop18']['text'] }}
78
				</a>
79
		{% end %}
80
			</td>
81
 
82
		{% if phone['infibeam']['data'] is not None %}
5319 varun.gupt 83
			<td class="price conflict" data='{{ phone["infibeam"]["data"] }}' source="infibeam">
3313 varun.gupt 84
		{% else %}
3440 varun.gupt 85
			<td class="price" source="infibeam">
3313 varun.gupt 86
		{% end %}
87
 
88
		{% if phone['infibeam']['price'] is None and phone['infibeam']['data'] is None %}
4198 varun.gupt 89
				<a href="{{ phone['infibeam']['url'] }}" target="_blank">{{ phone['infibeam']['text'] }}</a>
3440 varun.gupt 90
		{% elif phone['infibeam']['data'] is not None %}
91
				<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}">
92
					{{ phone['infibeam']['text'] }}
93
				</a>
3313 varun.gupt 94
		{% else %}
95
				<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}" target="_blank">
96
					{{ phone['infibeam']['text'] }}
97
				</a>
98
		{% end %}
99
			</td>
100
 
5291 varun.gupt 101
		{% if phone['snapdeal']['data'] is not None %}
5319 varun.gupt 102
			<td class="price conflict" data='{{ phone["snapdeal"]["data"] }}' source="snapdeal">
3313 varun.gupt 103
		{% else %}
5291 varun.gupt 104
			<td class="price" source="snapdeal">
3313 varun.gupt 105
		{% end %}
106
 
5291 varun.gupt 107
		{% if phone['snapdeal']['price'] is None and phone['snapdeal']['data'] is None %}
108
				<a href="{{ phone['snapdeal']['url'] }}" target="_blank">{{ phone['snapdeal']['text'] }}</a>
109
		{% elif phone['snapdeal']['data'] is not None %}
110
				<a href="{{ 'http://www.snapdeal.com/' + phone['snapdeal']['url'] if phone['snapdeal']['url'] is not None else '#' }}">
111
					{{ phone['snapdeal']['text'] }}
3440 varun.gupt 112
				</a>
3313 varun.gupt 113
		{% else %}
5291 varun.gupt 114
				<a href="{{ 'http://www.snapdeal.com/' + phone['snapdeal']['url'] if phone['snapdeal']['url'] is not None else '#' }}" target="_blank">
115
					{{ phone['snapdeal']['text'] }}
3313 varun.gupt 116
				</a>
117
		{% end %}
118
			</td>
5639 amar.kumar 119
 
120
 
121
		{% if phone['sulekha']['data'] is not None %}
122
			<td class="price conflict" data='{{ phone["sulekha"]["data"] }}' source="sulekha">
123
		{% else %}
124
			<td class="price" source="sulekha">
125
		{% end %}
126
 
127
		{% if phone['sulekha']['price'] is None and phone['sulekha']['data'] is None %}
128
				<a href="{{ phone['sulekha']['url'] }}" target="_blank">{{ phone['sulekha']['text'] }}</a>
129
		{% elif phone['sulekha']['data'] is not None %}
5654 amar.kumar 130
				<a href="{{ phone['sulekha']['url'] if phone['sulekha']['url'] is not None else '#' }}">
5639 amar.kumar 131
					{{ phone['sulekha']['text'] }}
132
				</a>
133
		{% else %}
5654 amar.kumar 134
				<a href="{{ phone['sulekha']['url'] if phone['sulekha']['url'] is not None else '#' }}" target="_blank">
5639 amar.kumar 135
					{{ phone['sulekha']['text'] }}
136
				</a>
137
		{% end %}
138
			</td>	
139
 
140
		{% if phone['tradus']['data'] is not None %}
141
			<td class="price conflict" data='{{ phone["tradus"]["data"] }}' source="tradus">
142
		{% else %}
143
			<td class="price" source="tradus">
144
		{% end %}
145
 
146
		{% if phone['tradus']['price'] is None and phone['tradus']['data'] is None %}
147
				<a href="{{ phone['tradus']['url'] }}" target="_blank">{{ phone['tradus']['text'] }}</a>
148
		{% elif phone['tradus']['data'] is not None %}
5654 amar.kumar 149
				<a href="{{ phone['tradus']['url'] if phone['tradus']['url'] is not None else '#' }}">
5639 amar.kumar 150
					{{ phone['tradus']['text'] }}
151
				</a>
152
		{% else %}
5654 amar.kumar 153
				<a href="{{ phone['tradus']['url'] if phone['tradus']['url'] is not None else '#' }}" target="_blank">
5639 amar.kumar 154
					{{ phone['tradus']['text'] }}
155
				</a>
156
		{% end %}
157
			</td>	
158
 
159
 
3232 varun.gupt 160
		</tr>
3313 varun.gupt 161
	{% end %}
3232 varun.gupt 162
	</tbody>
163
	</table>
3440 varun.gupt 164
</div>
3313 varun.gupt 165
{% end %}
3232 varun.gupt 166
	<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
167
	<script type="text/javascript" src="/static/facebox.js"></script>
168
	<script type="text/javascript" src="/static/chart.js"></script>
169
</body>
170
</html>