Subversion Repositories SmartDukaan

Rev

Rev 4106 | Details | Compare with Previous | 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>
5639 amar.kumar 20
			<th width="131">Sulekha</th>
21
			<th width="131">Tradus</th>
4106 varun.gupt 22
			<th>Max-Min<br />difference</th>
23
		</tr>
24
	</thead>
25
	</table>
26
<div id="datatable-container">
27
	<table id="datatable">
28
	<tbody>
29
	{% for phone in data %}
30
		<tr id="{{ phone['entity_id'] }}">
31
			<td class="name">{{ phone['name'] }}</td>
32
			<td class="price">{{ phone['saholic']['price'] }}</td>
33
			<td class="price">
34
			{% if 'adexmart' in phone %}
35
				<a href="{{ phone['adexmart']['url'] }}" target="_blank">{{ phone['adexmart']['price'] }}</a>
36
			{% else %}
37
				<a href="{{ phone['adexmart']['url'] }}" target="_blank">Not Found</a>
38
			{% end %}
39
			</td>
40
			<td class="price">
41
			{% if 'flipkart' in phone %}
42
				<a href="{{ phone['flipkart']['url'] }}" target="_blank">{{ phone['flipkart']['price'] }}</a>
43
			{% else %}
44
				<a href="{{ phone['flipkart']['url'] }}" target="_blank">Not Found</a>
45
			{% end %}
46
			</td>
47
			<td class="price">
48
			{% if 'homeshop18' in phone %}
49
				<a href="{{ phone['homeshop18']['url'] }}" target="_blank">{{ phone['homeshop18']['price'] }}</a>
50
			{% else %}
51
				<a href="{{ phone['homeshop18']['url'] }}" target="_blank">Not Found</a>
52
			{% end %}
53
			</td>
54
			<td class="price">
55
			{% if 'infibeam' in phone %}
56
				<a href="{{ phone['infibeam']['url'] }}" target="_blank">{{ phone['infibeam']['price'] }}</a>
57
			{% else %}
58
				<a href="{{ phone['infibeam']['url'] }}" target="_blank">Not Found</a>
59
			{% end %}
60
			</td>
61
			<td class="price">
62
			{% if 'letsbuy' in phone %}
63
				<a href="{{ phone['letsbuy']['url'] }}" target="_blank">{{ phone['letsbuy']['price'] }}</a>
64
			{% else %}
65
				<a href="{{ phone['letsbuy']['url'] }}" target="_blank">Not Found</a>
66
			{% end %}
67
			</td>
5639 amar.kumar 68
			<td class="price">
69
			{% if 'sulekha' in phone %}
70
				<a href="{{ phone['sulekha']['url'] }}" target="_blank">{{ phone['sulekha']['price'] }}</a>
71
			{% else %}
72
				<a href="{{ phone['sulekha']['url'] }}" target="_blank">Not Found</a>
73
			{% end %}
74
			</td>
75
			<td class="price">
76
			{% if 'tradus' in phone %}
77
				<a href="{{ phone['tradus']['url'] }}" target="_blank">{{ phone['tradus']['price'] }}</a>
78
			{% else %}
79
				<a href="{{ phone['tradus']['url'] }}" target="_blank">Not Found</a>
80
			{% end %}
81
			</td>
4106 varun.gupt 82
		</tr>
83
	{% end %}
84
	</tbody>
85
	</table>
86
</div>
87
{% end %}
88
	<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
89
	<script type="text/javascript" src="/static/mspchart.js"></script>
90
</body>
91
</html>