Subversion Repositories SmartDukaan

Rev

Rev 3232 | Rev 3440 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3232 Rev 3313
Line 5... Line 5...
5
	<link rel="stylesheet" type="text/css" href="/static/facebox.css" />
5
	<link rel="stylesheet" type="text/css" href="/static/facebox.css" />
6
	<style type="text/css">
6
	<style type="text/css">
7
body	{	font-size: 12px;	}
7
body	{	font-size: 12px;	}
8
.even	{	background-color: #EDEFF4;	}
8
.even	{	background-color: #EDEFF4;	}
9
td	{	padding: 4px; font-size: 12px;	}
9
td	{	padding: 4px; font-size: 12px;	}
-
 
10
.price	{	width: 125px;	text-align: center;	}
10
 
11
 
11
.red	{	background-color: #FF9E9E;	}
12
.red	{	background-color: #FF9E9E;	}
12
 
13
 
13
.best {
14
.best {
14
	background-image: url(/static/images/best.png);
15
	background-image: url(/static/images/best.png);
Line 17... Line 18...
17
	</style>
18
	</style>
18
</head>
19
</head>
19
<body>
20
<body>
20
	<h2>Phone Price Comparison Chart</h2>
21
	<h2>Phone Price Comparison Chart</h2>
21
	<br>
22
	<br>
22
	{% if len(data) > 0 %}
23
{% if len(data) > 0 %}
23
	<table id="datatable">
24
	<table id="datatable">
24
	<thead>
25
	<thead>
25
		<tr>
26
		<tr>
26
			<th></th>
27
			<th></th>
27
			<th>Saholic</th>
28
			<th>Saholic</th>
28
			<th>Flipkart</th>
29
			<th>Flipkart</th>
-
 
30
			<th>HomeShop18</th>
-
 
31
			<th>Infibeam</th>
-
 
32
			<th>Let's Buy</th>
29
		</tr>
33
		</tr>
30
	</thead>
34
	</thead>
31
	<tbody>
35
	<tbody>
32
		{% for phone in data %}
36
	{% for phone in data %}
33
		<tr>
37
		<tr>
34
			<td class="name">{{ phone['product_name'] }}</td>
38
			<td class="name">{{ phone['product_name'] }}</td>
35
			<td width="150" align="center">{{ phone['saholic_price'] }}</td>
39
			<td class="price">{{ phone['saholic']['price'] }}</td>
-
 
40
			
-
 
41
		{% if phone['flipkart']['data'] is not None %}
36
			<td width="150" align="center" class="{{ phone['td_class'] }}" data="{{ phone['data'] }}">
42
			<td class="price conflict" data="{{ phone['flipkart']['data'] }}">
-
 
43
		{% else %}
-
 
44
			<td class="price">
-
 
45
		{% end %}
-
 
46
		
37
				<a href="{{ phone['url'] }}" target="_blank">{{ phone['flipkart_price'] }}</a>
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 %}
38
			</td>
54
			</td>
-
 
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 %}
39
		</tr>
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>
40
		{% end %}
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>
-
 
100
		</tr>
-
 
101
	{% end %}
41
	</tbody>
102
	</tbody>
42
	</table>
103
	</table>
43
	{% end %}
104
{% end %}
44
	<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
105
	<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
45
	<script type="text/javascript" src="/static/facebox.js"></script>
106
	<script type="text/javascript" src="/static/facebox.js"></script>
46
	<script type="text/javascript" src="/static/chart.js"></script>
107
	<script type="text/javascript" src="/static/chart.js"></script>
47
</body>
108
</body>
48
</html>
109
</html>
49
110