| 3232 |
varun.gupt |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<title>Phone Price Comparison</title>
|
|
|
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>
|
|
|
9 |
<h2>Phone Price Comparison Chart</h2>
|
| 3313 |
varun.gupt |
10 |
{% if len(data) > 0 %}
|
| 3440 |
varun.gupt |
11 |
<table>
|
| 3232 |
varun.gupt |
12 |
<thead>
|
|
|
13 |
<tr>
|
| 3440 |
varun.gupt |
14 |
<th width="264"> </th>
|
|
|
15 |
<th width="131">Saholic</th>
|
|
|
16 |
<th width="131">Flipkart</th>
|
|
|
17 |
<th width="131">HomeShop18</th>
|
|
|
18 |
<th width="131">Infibeam</th>
|
|
|
19 |
<th width="131">Let's Buy</th>
|
| 3552 |
varun.gupt |
20 |
<th>Max-Min<br />difference</th>
|
| 3232 |
varun.gupt |
21 |
</tr>
|
|
|
22 |
</thead>
|
| 3440 |
varun.gupt |
23 |
</table>
|
|
|
24 |
<div id="datatable-container">
|
|
|
25 |
<table id="datatable">
|
| 3232 |
varun.gupt |
26 |
<tbody>
|
| 3313 |
varun.gupt |
27 |
{% for phone in data %}
|
| 3440 |
varun.gupt |
28 |
<tr id="{{ phone['entity_id'] }}">
|
| 3232 |
varun.gupt |
29 |
<td class="name">{{ phone['product_name'] }}</td>
|
| 3313 |
varun.gupt |
30 |
<td class="price">{{ phone['saholic']['price'] }}</td>
|
|
|
31 |
|
|
|
32 |
{% if phone['flipkart']['data'] is not None %}
|
| 3440 |
varun.gupt |
33 |
<td class="price conflict" data="{{ phone['flipkart']['data'] }}" source="flipkart">
|
| 3313 |
varun.gupt |
34 |
{% else %}
|
| 3440 |
varun.gupt |
35 |
<td class="price" source="flipkart">
|
| 3313 |
varun.gupt |
36 |
{% end %}
|
|
|
37 |
|
|
|
38 |
{% if phone['flipkart']['price'] is None and phone['flipkart']['data'] is None %}
|
|
|
39 |
{{ phone['flipkart']['text'] }}
|
| 3440 |
varun.gupt |
40 |
|
|
|
41 |
{% elif phone['flipkart']['data'] is not None %}
|
|
|
42 |
<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}">
|
|
|
43 |
{{ phone['flipkart']['text'] }}
|
|
|
44 |
</a>
|
| 3313 |
varun.gupt |
45 |
{% else %}
|
|
|
46 |
<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}" target="_blank">
|
|
|
47 |
{{ phone['flipkart']['text'] }}
|
|
|
48 |
</a>
|
|
|
49 |
{% end %}
|
| 3232 |
varun.gupt |
50 |
</td>
|
| 3313 |
varun.gupt |
51 |
|
|
|
52 |
{% if phone['homeshop18']['data'] is not None %}
|
| 3440 |
varun.gupt |
53 |
<td class="price conflict" data="{{ phone['homeshop18']['data'] }}" source="homeshop18">
|
| 3313 |
varun.gupt |
54 |
{% else %}
|
| 3440 |
varun.gupt |
55 |
<td class="price" source="homeshop18">
|
| 3313 |
varun.gupt |
56 |
{% end %}
|
|
|
57 |
|
|
|
58 |
{% if phone['homeshop18']['price'] is None and phone['homeshop18']['data'] is None %}
|
|
|
59 |
{{ phone['homeshop18']['text'] }}
|
| 3440 |
varun.gupt |
60 |
{% elif phone['homeshop18']['data'] is not None %}
|
|
|
61 |
<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}">
|
|
|
62 |
{{ phone['homeshop18']['text'] }}
|
|
|
63 |
</a>
|
| 3313 |
varun.gupt |
64 |
{% else %}
|
|
|
65 |
<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}" target="_blank">
|
|
|
66 |
{{ phone['homeshop18']['text'] }}
|
|
|
67 |
</a>
|
|
|
68 |
{% end %}
|
|
|
69 |
</td>
|
|
|
70 |
|
|
|
71 |
{% if phone['infibeam']['data'] is not None %}
|
| 3440 |
varun.gupt |
72 |
<td class="price conflict" data="{{ phone['infibeam']['data'] }}" source="infibeam">
|
| 3313 |
varun.gupt |
73 |
{% else %}
|
| 3440 |
varun.gupt |
74 |
<td class="price" source="infibeam">
|
| 3313 |
varun.gupt |
75 |
{% end %}
|
|
|
76 |
|
|
|
77 |
{% if phone['infibeam']['price'] is None and phone['infibeam']['data'] is None %}
|
|
|
78 |
{{ phone['infibeam']['text'] }}
|
| 3440 |
varun.gupt |
79 |
{% elif phone['infibeam']['data'] is not None %}
|
|
|
80 |
<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}">
|
|
|
81 |
{{ phone['infibeam']['text'] }}
|
|
|
82 |
</a>
|
| 3313 |
varun.gupt |
83 |
{% else %}
|
|
|
84 |
<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}" target="_blank">
|
|
|
85 |
{{ phone['infibeam']['text'] }}
|
|
|
86 |
</a>
|
|
|
87 |
{% end %}
|
|
|
88 |
</td>
|
|
|
89 |
|
|
|
90 |
{% if phone['letsbuy']['data'] is not None %}
|
| 3440 |
varun.gupt |
91 |
<td class="price conflict" data="{{ phone['letsbuy']['data'] }}" source="letsbuy">
|
| 3313 |
varun.gupt |
92 |
{% else %}
|
| 3440 |
varun.gupt |
93 |
<td class="price" source="letsbuy">
|
| 3313 |
varun.gupt |
94 |
{% end %}
|
|
|
95 |
|
|
|
96 |
{% if phone['letsbuy']['price'] is None and phone['letsbuy']['data'] is None %}
|
|
|
97 |
{{ phone['letsbuy']['text'] }}
|
| 3440 |
varun.gupt |
98 |
{% elif phone['letsbuy']['data'] is not None %}
|
|
|
99 |
<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}">
|
|
|
100 |
{{ phone['letsbuy']['text'] }}
|
|
|
101 |
</a>
|
| 3313 |
varun.gupt |
102 |
{% else %}
|
|
|
103 |
<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}" target="_blank">
|
|
|
104 |
{{ phone['letsbuy']['text'] }}
|
|
|
105 |
</a>
|
|
|
106 |
{% end %}
|
|
|
107 |
</td>
|
| 3232 |
varun.gupt |
108 |
</tr>
|
| 3313 |
varun.gupt |
109 |
{% end %}
|
| 3232 |
varun.gupt |
110 |
</tbody>
|
|
|
111 |
</table>
|
| 3440 |
varun.gupt |
112 |
</div>
|
| 3313 |
varun.gupt |
113 |
{% end %}
|
| 3232 |
varun.gupt |
114 |
<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
|
|
|
115 |
<script type="text/javascript" src="/static/facebox.js"></script>
|
|
|
116 |
<script type="text/javascript" src="/static/chart.js"></script>
|
|
|
117 |
</body>
|
|
|
118 |
</html>
|