| 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"> </th>
|
| 5639 |
amar.kumar |
21 |
<th width="105">Saholic</th>
|
| 6095 |
amar.kumar |
22 |
<th width="125">Min Price</th>
|
| 5639 |
amar.kumar |
23 |
<th width="105">Flipkart</th>
|
|
|
24 |
<th width="105">HomeShop18</th>
|
|
|
25 |
<th width="105">Infibeam</th>
|
|
|
26 |
<th width="105">Snapdeal</th>
|
|
|
27 |
<th width="105">Sulekha</th>
|
|
|
28 |
<th width="105">Tradus</th>
|
| 3552 |
varun.gupt |
29 |
<th>Max-Min<br />difference</th>
|
| 3232 |
varun.gupt |
30 |
</tr>
|
|
|
31 |
</thead>
|
| 3440 |
varun.gupt |
32 |
</table>
|
|
|
33 |
<div id="datatable-container">
|
|
|
34 |
<table id="datatable">
|
| 3232 |
varun.gupt |
35 |
<tbody>
|
| 3313 |
varun.gupt |
36 |
{% for phone in data %}
|
| 3440 |
varun.gupt |
37 |
<tr id="{{ phone['entity_id'] }}">
|
| 5291 |
varun.gupt |
38 |
<td class="name">
|
|
|
39 |
{{ phone['product_name'] }}
|
|
|
40 |
<div class="watchlist-icon"></div>
|
|
|
41 |
</td>
|
| 4198 |
varun.gupt |
42 |
<td class="price saholic">{{ phone['saholic']['price'] }}</td>
|
| 3313 |
varun.gupt |
43 |
|
| 6095 |
amar.kumar |
44 |
<td id ='{{ phone['entity_id'] }} min' class = 'minPrice' align = 'center'></td>
|
|
|
45 |
|
| 3313 |
varun.gupt |
46 |
{% if phone['flipkart']['data'] is not None %}
|
| 5319 |
varun.gupt |
47 |
<td class="price conflict" data='{{ phone["flipkart"]["data"] }}' source="flipkart">
|
| 3313 |
varun.gupt |
48 |
{% else %}
|
| 3440 |
varun.gupt |
49 |
<td class="price" source="flipkart">
|
| 3313 |
varun.gupt |
50 |
{% end %}
|
|
|
51 |
|
|
|
52 |
{% if phone['flipkart']['price'] is None and phone['flipkart']['data'] is None %}
|
| 4198 |
varun.gupt |
53 |
<a href="{{ phone['flipkart']['url'] }}" target="_blank">{{ phone['flipkart']['text'] }}</a>
|
| 3440 |
varun.gupt |
54 |
|
|
|
55 |
{% elif phone['flipkart']['data'] is not None %}
|
|
|
56 |
<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}">
|
|
|
57 |
{{ phone['flipkart']['text'] }}
|
|
|
58 |
</a>
|
| 3313 |
varun.gupt |
59 |
{% else %}
|
|
|
60 |
<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}" target="_blank">
|
|
|
61 |
{{ phone['flipkart']['text'] }}
|
|
|
62 |
</a>
|
|
|
63 |
{% end %}
|
| 3232 |
varun.gupt |
64 |
</td>
|
| 3313 |
varun.gupt |
65 |
|
|
|
66 |
{% if phone['homeshop18']['data'] is not None %}
|
| 5319 |
varun.gupt |
67 |
<td class="price conflict" data='{{ phone["homeshop18"]["data"] }}' source="homeshop18">
|
| 3313 |
varun.gupt |
68 |
{% else %}
|
| 3440 |
varun.gupt |
69 |
<td class="price" source="homeshop18">
|
| 3313 |
varun.gupt |
70 |
{% end %}
|
|
|
71 |
|
|
|
72 |
{% if phone['homeshop18']['price'] is None and phone['homeshop18']['data'] is None %}
|
| 4198 |
varun.gupt |
73 |
<a href="{{ phone['homeshop18']['url'] }}" target="_blank">{{ phone['homeshop18']['text'] }}</a>
|
| 3440 |
varun.gupt |
74 |
{% elif phone['homeshop18']['data'] is not None %}
|
|
|
75 |
<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}">
|
|
|
76 |
{{ phone['homeshop18']['text'] }}
|
|
|
77 |
</a>
|
| 3313 |
varun.gupt |
78 |
{% else %}
|
|
|
79 |
<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}" target="_blank">
|
|
|
80 |
{{ phone['homeshop18']['text'] }}
|
|
|
81 |
</a>
|
|
|
82 |
{% end %}
|
|
|
83 |
</td>
|
|
|
84 |
|
|
|
85 |
{% if phone['infibeam']['data'] is not None %}
|
| 5319 |
varun.gupt |
86 |
<td class="price conflict" data='{{ phone["infibeam"]["data"] }}' source="infibeam">
|
| 3313 |
varun.gupt |
87 |
{% else %}
|
| 3440 |
varun.gupt |
88 |
<td class="price" source="infibeam">
|
| 3313 |
varun.gupt |
89 |
{% end %}
|
|
|
90 |
|
|
|
91 |
{% if phone['infibeam']['price'] is None and phone['infibeam']['data'] is None %}
|
| 4198 |
varun.gupt |
92 |
<a href="{{ phone['infibeam']['url'] }}" target="_blank">{{ phone['infibeam']['text'] }}</a>
|
| 3440 |
varun.gupt |
93 |
{% elif phone['infibeam']['data'] is not None %}
|
|
|
94 |
<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}">
|
|
|
95 |
{{ phone['infibeam']['text'] }}
|
|
|
96 |
</a>
|
| 3313 |
varun.gupt |
97 |
{% else %}
|
|
|
98 |
<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}" target="_blank">
|
|
|
99 |
{{ phone['infibeam']['text'] }}
|
|
|
100 |
</a>
|
|
|
101 |
{% end %}
|
|
|
102 |
</td>
|
|
|
103 |
|
| 5291 |
varun.gupt |
104 |
{% if phone['snapdeal']['data'] is not None %}
|
| 5319 |
varun.gupt |
105 |
<td class="price conflict" data='{{ phone["snapdeal"]["data"] }}' source="snapdeal">
|
| 3313 |
varun.gupt |
106 |
{% else %}
|
| 5291 |
varun.gupt |
107 |
<td class="price" source="snapdeal">
|
| 3313 |
varun.gupt |
108 |
{% end %}
|
|
|
109 |
|
| 5291 |
varun.gupt |
110 |
{% if phone['snapdeal']['price'] is None and phone['snapdeal']['data'] is None %}
|
|
|
111 |
<a href="{{ phone['snapdeal']['url'] }}" target="_blank">{{ phone['snapdeal']['text'] }}</a>
|
|
|
112 |
{% elif phone['snapdeal']['data'] is not None %}
|
|
|
113 |
<a href="{{ 'http://www.snapdeal.com/' + phone['snapdeal']['url'] if phone['snapdeal']['url'] is not None else '#' }}">
|
|
|
114 |
{{ phone['snapdeal']['text'] }}
|
| 3440 |
varun.gupt |
115 |
</a>
|
| 3313 |
varun.gupt |
116 |
{% else %}
|
| 5291 |
varun.gupt |
117 |
<a href="{{ 'http://www.snapdeal.com/' + phone['snapdeal']['url'] if phone['snapdeal']['url'] is not None else '#' }}" target="_blank">
|
|
|
118 |
{{ phone['snapdeal']['text'] }}
|
| 3313 |
varun.gupt |
119 |
</a>
|
|
|
120 |
{% end %}
|
|
|
121 |
</td>
|
| 5639 |
amar.kumar |
122 |
|
|
|
123 |
|
|
|
124 |
{% if phone['sulekha']['data'] is not None %}
|
|
|
125 |
<td class="price conflict" data='{{ phone["sulekha"]["data"] }}' source="sulekha">
|
|
|
126 |
{% else %}
|
|
|
127 |
<td class="price" source="sulekha">
|
|
|
128 |
{% end %}
|
|
|
129 |
|
|
|
130 |
{% if phone['sulekha']['price'] is None and phone['sulekha']['data'] is None %}
|
|
|
131 |
<a href="{{ phone['sulekha']['url'] }}" target="_blank">{{ phone['sulekha']['text'] }}</a>
|
|
|
132 |
{% elif phone['sulekha']['data'] is not None %}
|
| 5654 |
amar.kumar |
133 |
<a href="{{ phone['sulekha']['url'] if phone['sulekha']['url'] is not None else '#' }}">
|
| 5639 |
amar.kumar |
134 |
{{ phone['sulekha']['text'] }}
|
|
|
135 |
</a>
|
|
|
136 |
{% else %}
|
| 5654 |
amar.kumar |
137 |
<a href="{{ phone['sulekha']['url'] if phone['sulekha']['url'] is not None else '#' }}" target="_blank">
|
| 5639 |
amar.kumar |
138 |
{{ phone['sulekha']['text'] }}
|
|
|
139 |
</a>
|
|
|
140 |
{% end %}
|
|
|
141 |
</td>
|
|
|
142 |
|
|
|
143 |
{% if phone['tradus']['data'] is not None %}
|
|
|
144 |
<td class="price conflict" data='{{ phone["tradus"]["data"] }}' source="tradus">
|
|
|
145 |
{% else %}
|
|
|
146 |
<td class="price" source="tradus">
|
|
|
147 |
{% end %}
|
|
|
148 |
|
|
|
149 |
{% if phone['tradus']['price'] is None and phone['tradus']['data'] is None %}
|
|
|
150 |
<a href="{{ phone['tradus']['url'] }}" target="_blank">{{ phone['tradus']['text'] }}</a>
|
|
|
151 |
{% elif phone['tradus']['data'] is not None %}
|
| 5654 |
amar.kumar |
152 |
<a href="{{ phone['tradus']['url'] if phone['tradus']['url'] is not None else '#' }}">
|
| 5639 |
amar.kumar |
153 |
{{ phone['tradus']['text'] }}
|
|
|
154 |
</a>
|
|
|
155 |
{% else %}
|
| 5654 |
amar.kumar |
156 |
<a href="{{ phone['tradus']['url'] if phone['tradus']['url'] is not None else '#' }}" target="_blank">
|
| 5639 |
amar.kumar |
157 |
{{ phone['tradus']['text'] }}
|
|
|
158 |
</a>
|
|
|
159 |
{% end %}
|
|
|
160 |
</td>
|
|
|
161 |
|
|
|
162 |
|
| 3232 |
varun.gupt |
163 |
</tr>
|
| 3313 |
varun.gupt |
164 |
{% end %}
|
| 3232 |
varun.gupt |
165 |
</tbody>
|
|
|
166 |
</table>
|
| 3440 |
varun.gupt |
167 |
</div>
|
| 3313 |
varun.gupt |
168 |
{% end %}
|
| 3232 |
varun.gupt |
169 |
<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
|
|
|
170 |
<script type="text/javascript" src="/static/facebox.js"></script>
|
|
|
171 |
<script type="text/javascript" src="/static/chart.js"></script>
|
|
|
172 |
</body>
|
|
|
173 |
</html>
|