Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4106 varun.gupt 1
<!DOCTYPE html>
2
<html>
3
<head>
4
	<title>Phone Price Comparison</title>
5
	<link rel="stylesheet" type="text/css" href="/static/chart.css" />
6
</head>
7
<body>
8
	<h2>Phone Price Comparison Chart</h2>
9
{% if len(data) > 0 %}
10
	<table>
11
	<thead>
12
		<tr>
13
			<th width="264">&nbsp;</th>
14
			<th width="131">Saholic</th>
15
			<th width="131">AdexMart</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>
20
			<th>Max-Min<br />difference</th>
21
		</tr>
22
	</thead>
23
	</table>
24
<div id="datatable-container">
25
	<table id="datatable">
26
	<tbody>
27
	{% for phone in data %}
28
		<tr id="{{ phone['entity_id'] }}">
29
			<td class="name">{{ phone['name'] }}</td>
30
			<td class="price">{{ phone['saholic']['price'] }}</td>
31
			<td class="price">
32
			{% if 'adexmart' in phone %}
33
				<a href="{{ phone['adexmart']['url'] }}" target="_blank">{{ phone['adexmart']['price'] }}</a>
34
			{% else %}
35
				<a href="{{ phone['adexmart']['url'] }}" target="_blank">Not Found</a>
36
			{% end %}
37
			</td>
38
			<td class="price">
39
			{% if 'flipkart' in phone %}
40
				<a href="{{ phone['flipkart']['url'] }}" target="_blank">{{ phone['flipkart']['price'] }}</a>
41
			{% else %}
42
				<a href="{{ phone['flipkart']['url'] }}" target="_blank">Not Found</a>
43
			{% end %}
44
			</td>
45
			<td class="price">
46
			{% if 'homeshop18' in phone %}
47
				<a href="{{ phone['homeshop18']['url'] }}" target="_blank">{{ phone['homeshop18']['price'] }}</a>
48
			{% else %}
49
				<a href="{{ phone['homeshop18']['url'] }}" target="_blank">Not Found</a>
50
			{% end %}
51
			</td>
52
			<td class="price">
53
			{% if 'infibeam' in phone %}
54
				<a href="{{ phone['infibeam']['url'] }}" target="_blank">{{ phone['infibeam']['price'] }}</a>
55
			{% else %}
56
				<a href="{{ phone['infibeam']['url'] }}" target="_blank">Not Found</a>
57
			{% end %}
58
			</td>
59
			<td class="price">
60
			{% if 'letsbuy' in phone %}
61
				<a href="{{ phone['letsbuy']['url'] }}" target="_blank">{{ phone['letsbuy']['price'] }}</a>
62
			{% else %}
63
				<a href="{{ phone['letsbuy']['url'] }}" target="_blank">Not Found</a>
64
			{% end %}
65
			</td>
66
		</tr>
67
	{% end %}
68
	</tbody>
69
	</table>
70
</div>
71
{% end %}
72
	<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
73
	<script type="text/javascript" src="/static/mspchart.js"></script>
74
</body>
75
</html>