Subversion Repositories SmartDukaan

Rev

Rev 3232 | Rev 3440 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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" />
6
	<style type="text/css">
7
body	{	font-size: 12px;	}
8
.even	{	background-color: #EDEFF4;	}
9
td	{	padding: 4px; font-size: 12px;	}
3313 varun.gupt 10
.price	{	width: 125px;	text-align: center;	}
3232 varun.gupt 11
 
12
.red	{	background-color: #FF9E9E;	}
13
 
14
.best {
15
	background-image: url(/static/images/best.png);
16
	background-repeat: no-repeat;
17
}
18
	</style>
19
</head>
20
<body>
21
	<h2>Phone Price Comparison Chart</h2>
22
	<br>
3313 varun.gupt 23
{% if len(data) > 0 %}
3232 varun.gupt 24
	<table id="datatable">
25
	<thead>
26
		<tr>
27
			<th></th>
28
			<th>Saholic</th>
29
			<th>Flipkart</th>
3313 varun.gupt 30
			<th>HomeShop18</th>
31
			<th>Infibeam</th>
32
			<th>Let's Buy</th>
3232 varun.gupt 33
		</tr>
34
	</thead>
35
	<tbody>
3313 varun.gupt 36
	{% for phone in data %}
3232 varun.gupt 37
		<tr>
38
			<td class="name">{{ phone['product_name'] }}</td>
3313 varun.gupt 39
			<td class="price">{{ phone['saholic']['price'] }}</td>
40
 
41
		{% if phone['flipkart']['data'] is not None %}
42
			<td class="price conflict" data="{{ phone['flipkart']['data'] }}">
43
		{% else %}
44
			<td class="price">
45
		{% end %}
46
 
47
		{% if phone['flipkart']['price'] is None and phone['flipkart']['data'] is None %}
48
				{{ phone['flipkart']['text'] }}
49
		{% else %}
50
				<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}" target="_blank">
51
					{{ phone['flipkart']['text'] }}
52
				</a>
53
		{% end %}
3232 varun.gupt 54
			</td>
3313 varun.gupt 55
 
56
		{% if phone['homeshop18']['data'] is not None %}
57
			<td class="price conflict" data="{{ phone['homeshop18']['data'] }}">
58
		{% else %}
59
			<td class="price">
60
		{% end %}
61
 
62
		{% if phone['homeshop18']['price'] is None and phone['homeshop18']['data'] is None %}
63
				{{ phone['homeshop18']['text'] }}
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 %}
72
			<td class="price conflict" data="{{ phone['infibeam']['data'] }}">
73
		{% else %}
74
			<td class="price">
75
		{% end %}
76
 
77
		{% if phone['infibeam']['price'] is None and phone['infibeam']['data'] is None %}
78
				{{ phone['infibeam']['text'] }}
79
		{% else %}
80
				<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}" target="_blank">
81
					{{ phone['infibeam']['text'] }}
82
				</a>
83
		{% end %}
84
			</td>
85
 
86
		{% if phone['letsbuy']['data'] is not None %}
87
			<td class="price conflict" data="{{ phone['letsbuy']['data'] }}">
88
		{% else %}
89
			<td class="price">
90
		{% end %}
91
 
92
		{% if phone['letsbuy']['price'] is None and phone['letsbuy']['data'] is None %}
93
				{{ phone['letsbuy']['text'] }}
94
		{% else %}
95
				<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}" target="_blank">
96
					{{ phone['letsbuy']['text'] }}
97
				</a>
98
		{% end %}
99
			</td>
3232 varun.gupt 100
		</tr>
3313 varun.gupt 101
	{% end %}
3232 varun.gupt 102
	</tbody>
103
	</table>
3313 varun.gupt 104
{% end %}
3232 varun.gupt 105
	<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
106
	<script type="text/javascript" src="/static/facebox.js"></script>
107
	<script type="text/javascript" src="/static/chart.js"></script>
108
</body>
109
</html>