| Line 4... |
Line 4... |
| 4 |
<title>Phone Price Comparison</title>
|
4 |
<title>Phone Price Comparison</title>
|
| 5 |
<link rel="stylesheet" type="text/css" href="/static/facebox.css" />
|
5 |
<link rel="stylesheet" type="text/css" href="/static/facebox.css" />
|
| 6 |
<link rel="stylesheet" type="text/css" href="/static/chart.css" />
|
6 |
<link rel="stylesheet" type="text/css" href="/static/chart.css" />
|
| 7 |
</head>
|
7 |
</head>
|
| 8 |
<body>
|
8 |
<body>
|
| 9 |
<h2>Phone Price Comparison Chart</h2>
|
9 |
<div id="pageTitle">Phone Price Comparison Chart</div>
|
| - |
|
10 |
<div id="howTo" title="Click to see instructions">Help</div>
|
| - |
|
11 |
<div class="clearboth"></div>
|
| 10 |
{% if len(data) > 0 %}
|
12 |
{% if len(data) > 0 %}
|
| 11 |
<table>
|
13 |
<table>
|
| 12 |
<thead>
|
14 |
<thead>
|
| 13 |
<tr>
|
15 |
<tr>
|
| 14 |
<th width="264"> </th>
|
16 |
<th width="264"> </th>
|
| Line 25... |
Line 27... |
| 25 |
<table id="datatable">
|
27 |
<table id="datatable">
|
| 26 |
<tbody>
|
28 |
<tbody>
|
| 27 |
{% for phone in data %}
|
29 |
{% for phone in data %}
|
| 28 |
<tr id="{{ phone['entity_id'] }}">
|
30 |
<tr id="{{ phone['entity_id'] }}">
|
| 29 |
<td class="name">{{ phone['product_name'] }}</td>
|
31 |
<td class="name">{{ phone['product_name'] }}</td>
|
| 30 |
<td class="price">{{ phone['saholic']['price'] }}</td>
|
32 |
<td class="price saholic">{{ phone['saholic']['price'] }}</td>
|
| 31 |
|
33 |
|
| 32 |
{% if phone['flipkart']['data'] is not None %}
|
34 |
{% if phone['flipkart']['data'] is not None %}
|
| 33 |
<td class="price conflict" data="{{ phone['flipkart']['data'] }}" source="flipkart">
|
35 |
<td class="price conflict" data="{{ phone['flipkart']['data'] }}" source="flipkart">
|
| 34 |
{% else %}
|
36 |
{% else %}
|
| 35 |
<td class="price" source="flipkart">
|
37 |
<td class="price" source="flipkart">
|
| 36 |
{% end %}
|
38 |
{% end %}
|
| 37 |
|
39 |
|
| 38 |
{% if phone['flipkart']['price'] is None and phone['flipkart']['data'] is None %}
|
40 |
{% if phone['flipkart']['price'] is None and phone['flipkart']['data'] is None %}
|
| 39 |
{{ phone['flipkart']['text'] }}
|
41 |
<a href="{{ phone['flipkart']['url'] }}" target="_blank">{{ phone['flipkart']['text'] }}</a>
|
| 40 |
|
42 |
|
| 41 |
{% elif phone['flipkart']['data'] is not None %}
|
43 |
{% 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 '#' }}">
|
44 |
<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}">
|
| 43 |
{{ phone['flipkart']['text'] }}
|
45 |
{{ phone['flipkart']['text'] }}
|
| 44 |
</a>
|
46 |
</a>
|
| Line 54... |
Line 56... |
| 54 |
{% else %}
|
56 |
{% else %}
|
| 55 |
<td class="price" source="homeshop18">
|
57 |
<td class="price" source="homeshop18">
|
| 56 |
{% end %}
|
58 |
{% end %}
|
| 57 |
|
59 |
|
| 58 |
{% if phone['homeshop18']['price'] is None and phone['homeshop18']['data'] is None %}
|
60 |
{% if phone['homeshop18']['price'] is None and phone['homeshop18']['data'] is None %}
|
| 59 |
{{ phone['homeshop18']['text'] }}
|
61 |
<a href="{{ phone['homeshop18']['url'] }}" target="_blank">{{ phone['homeshop18']['text'] }}</a>
|
| 60 |
{% elif phone['homeshop18']['data'] is not None %}
|
62 |
{% elif phone['homeshop18']['data'] is not None %}
|
| 61 |
<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}">
|
63 |
<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}">
|
| 62 |
{{ phone['homeshop18']['text'] }}
|
64 |
{{ phone['homeshop18']['text'] }}
|
| 63 |
</a>
|
65 |
</a>
|
| 64 |
{% else %}
|
66 |
{% else %}
|
| Line 73... |
Line 75... |
| 73 |
{% else %}
|
75 |
{% else %}
|
| 74 |
<td class="price" source="infibeam">
|
76 |
<td class="price" source="infibeam">
|
| 75 |
{% end %}
|
77 |
{% end %}
|
| 76 |
|
78 |
|
| 77 |
{% if phone['infibeam']['price'] is None and phone['infibeam']['data'] is None %}
|
79 |
{% if phone['infibeam']['price'] is None and phone['infibeam']['data'] is None %}
|
| 78 |
{{ phone['infibeam']['text'] }}
|
80 |
<a href="{{ phone['infibeam']['url'] }}" target="_blank">{{ phone['infibeam']['text'] }}</a>
|
| 79 |
{% elif phone['infibeam']['data'] is not None %}
|
81 |
{% 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 '#' }}">
|
82 |
<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}">
|
| 81 |
{{ phone['infibeam']['text'] }}
|
83 |
{{ phone['infibeam']['text'] }}
|
| 82 |
</a>
|
84 |
</a>
|
| 83 |
{% else %}
|
85 |
{% else %}
|
| Line 92... |
Line 94... |
| 92 |
{% else %}
|
94 |
{% else %}
|
| 93 |
<td class="price" source="letsbuy">
|
95 |
<td class="price" source="letsbuy">
|
| 94 |
{% end %}
|
96 |
{% end %}
|
| 95 |
|
97 |
|
| 96 |
{% if phone['letsbuy']['price'] is None and phone['letsbuy']['data'] is None %}
|
98 |
{% if phone['letsbuy']['price'] is None and phone['letsbuy']['data'] is None %}
|
| 97 |
{{ phone['letsbuy']['text'] }}
|
99 |
<a href="{{ phone['letsbuy']['url'] }}" target="_blank">{{ phone['letsbuy']['text'] }}</a>
|
| 98 |
{% elif phone['letsbuy']['data'] is not None %}
|
100 |
{% elif phone['letsbuy']['data'] is not None %}
|
| 99 |
<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}">
|
101 |
<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}">
|
| 100 |
{{ phone['letsbuy']['text'] }}
|
102 |
{{ phone['letsbuy']['text'] }}
|
| 101 |
</a>
|
103 |
</a>
|
| 102 |
{% else %}
|
104 |
{% else %}
|