Subversion Repositories SmartDukaan

Rev

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

Rev 4198 Rev 5291
Line 1... Line 1...
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html>
2
<html>
3
<head>
3
<head>
4
	<title>Phone Price Comparison</title>
4
	<title>Price Comparison Dashboard</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
	<div id="pageTitle">Phone Price Comparison Chart</div>
9
	<div id="pageTitle">Price Comparison Dashboard</div>
-
 
10
	<div id="all" class="menu-item" title="All Products">All Products</div>
-
 
11
	<div id="watchlist" class="menu-item" title="Watchlist">Watchlist</div>
10
	<div id="howTo" title="Click to see instructions">Help</div>
12
	<div id="howTo" class="menu-item" title="Click to see instructions">Help</div>
11
	<div class="clearboth"></div>
13
	<div class="clearboth"></div>
12
{% if len(data) > 0 %}
14
{% if len(data) > 0 %}
13
	<table>
15
	<table>
14
	<thead>
16
	<thead>
15
		<tr>
17
		<tr>
16
			<th width="264">&nbsp;</th>
18
			<th width="264">&nbsp;</th>
17
			<th width="131">Saholic</th>
19
			<th width="131">Saholic</th>
18
			<th width="131">Flipkart</th>
20
			<th width="131">Flipkart</th>
19
			<th width="131">HomeShop18</th>
21
			<th width="131">HomeShop18</th>
20
			<th width="131">Infibeam</th>
22
			<th width="131">Infibeam</th>
21
			<th width="131">Let's Buy</th>
23
			<th width="131">Snapdeal</th>
22
			<th>Max-Min<br />difference</th>
24
			<th>Max-Min<br />difference</th>
23
		</tr>
25
		</tr>
24
	</thead>
26
	</thead>
25
	</table>
27
	</table>
26
<div id="datatable-container">
28
<div id="datatable-container">
27
	<table id="datatable">
29
	<table id="datatable">
28
	<tbody>
30
	<tbody>
29
	{% for phone in data %}
31
	{% for phone in data %}
30
		<tr id="{{ phone['entity_id'] }}">
32
		<tr id="{{ phone['entity_id'] }}">
-
 
33
			<td class="name">
31
			<td class="name">{{ phone['product_name'] }}</td>
34
				{{ phone['product_name'] }}
-
 
35
				<div class="watchlist-icon"></div>
-
 
36
			</td>
32
			<td class="price saholic">{{ phone['saholic']['price'] }}</td>
37
			<td class="price saholic">{{ phone['saholic']['price'] }}</td>
33
			
38
			
34
		{% if phone['flipkart']['data'] is not None %}
39
		{% if phone['flipkart']['data'] is not None %}
35
			<td class="price conflict" data="{{ phone['flipkart']['data'] }}" source="flipkart">
40
			<td class="price conflict" data="{{ phone['flipkart']['data'] }}" source="flipkart">
36
		{% else %}
41
		{% else %}
Line 87... Line 92...
87
					{{ phone['infibeam']['text'] }}
92
					{{ phone['infibeam']['text'] }}
88
				</a>
93
				</a>
89
		{% end %}
94
		{% end %}
90
			</td>
95
			</td>
91
		
96
		
92
		{% if phone['letsbuy']['data'] is not None %}
97
		{% if phone['snapdeal']['data'] is not None %}
93
			<td class="price conflict" data="{{ phone['letsbuy']['data'] }}" source="letsbuy">
98
			<td class="price conflict" data="{{ phone['snapdeal']['data'] }}" source="snapdeal">
94
		{% else %}
99
		{% else %}
95
			<td class="price" source="letsbuy">
100
			<td class="price" source="snapdeal">
96
		{% end %}
101
		{% end %}
97
		
102
		
98
		{% if phone['letsbuy']['price'] is None and phone['letsbuy']['data'] is None %}
103
		{% if phone['snapdeal']['price'] is None and phone['snapdeal']['data'] is None %}
99
				<a href="{{ phone['letsbuy']['url'] }}" target="_blank">{{ phone['letsbuy']['text'] }}</a>
104
				<a href="{{ phone['snapdeal']['url'] }}" target="_blank">{{ phone['snapdeal']['text'] }}</a>
100
		{% elif phone['letsbuy']['data'] is not None %}
105
		{% elif phone['snapdeal']['data'] is not None %}
101
				<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}">
106
				<a href="{{ 'http://www.snapdeal.com/' + phone['snapdeal']['url'] if phone['snapdeal']['url'] is not None else '#' }}">
102
					{{ phone['letsbuy']['text'] }}
107
					{{ phone['snapdeal']['text'] }}
103
				</a>
108
				</a>
104
		{% else %}
109
		{% else %}
105
				<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}" target="_blank">
110
				<a href="{{ 'http://www.snapdeal.com/' + phone['snapdeal']['url'] if phone['snapdeal']['url'] is not None else '#' }}" target="_blank">
106
					{{ phone['letsbuy']['text'] }}
111
					{{ phone['snapdeal']['text'] }}
107
				</a>
112
				</a>
108
		{% end %}
113
		{% end %}
109
			</td>
114
			</td>
110
		</tr>
115
		</tr>
111
	{% end %}
116
	{% end %}