Subversion Repositories SmartDukaan

Rev

Rev 3313 | Rev 3541 | 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;	}
3440 varun.gupt 8
 
9
#datatable-container	{
10
	overflow: auto;
11
	height: 494px;
12
	width: 1000px;
13
}
14
 
3232 varun.gupt 15
.even	{	background-color: #EDEFF4;	}
16
td	{	padding: 4px; font-size: 12px;	}
3313 varun.gupt 17
.price	{	width: 125px;	text-align: center;	}
3232 varun.gupt 18
 
19
.red	{	background-color: #FF9E9E;	}
20
 
21
.best {
22
	background-image: url(/static/images/best.png);
23
	background-repeat: no-repeat;
24
}
3440 varun.gupt 25
 
26
.with-feedback a.link-conflict	{	font-size: 10px;	}
27
 
28
.msg	{
29
	width: 300px;
30
	margin: 5px 10px;
31
	padding: 4px 10px;
32
	background-color: #FFFF75;
33
	font-weight: bold;
34
}
3232 varun.gupt 35
	</style>
36
</head>
37
<body>
38
	<h2>Phone Price Comparison Chart</h2>
3313 varun.gupt 39
{% if len(data) > 0 %}
3440 varun.gupt 40
	<table>
3232 varun.gupt 41
	<thead>
42
		<tr>
3440 varun.gupt 43
			<th width="264">&nbsp;</th>
44
			<th width="131">Saholic</th>
45
			<th width="131">Flipkart</th>
46
			<th width="131">HomeShop18</th>
47
			<th width="131">Infibeam</th>
48
			<th width="131">Let's Buy</th>
3232 varun.gupt 49
		</tr>
50
	</thead>
3440 varun.gupt 51
	</table>
52
<div id="datatable-container">
53
	<table id="datatable">
3232 varun.gupt 54
	<tbody>
3313 varun.gupt 55
	{% for phone in data %}
3440 varun.gupt 56
		<tr id="{{ phone['entity_id'] }}">
3232 varun.gupt 57
			<td class="name">{{ phone['product_name'] }}</td>
3313 varun.gupt 58
			<td class="price">{{ phone['saholic']['price'] }}</td>
59
 
60
		{% if phone['flipkart']['data'] is not None %}
3440 varun.gupt 61
			<td class="price conflict" data="{{ phone['flipkart']['data'] }}" source="flipkart">
3313 varun.gupt 62
		{% else %}
3440 varun.gupt 63
			<td class="price" source="flipkart">
3313 varun.gupt 64
		{% end %}
65
 
66
		{% if phone['flipkart']['price'] is None and phone['flipkart']['data'] is None %}
67
				{{ phone['flipkart']['text'] }}
3440 varun.gupt 68
 
69
		{% elif phone['flipkart']['data'] is not None %}
70
				<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}">
71
					{{ phone['flipkart']['text'] }}
72
				</a>
3313 varun.gupt 73
		{% else %}
74
				<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}" target="_blank">
75
					{{ phone['flipkart']['text'] }}
76
				</a>
77
		{% end %}
3232 varun.gupt 78
			</td>
3313 varun.gupt 79
 
80
		{% if phone['homeshop18']['data'] is not None %}
3440 varun.gupt 81
			<td class="price conflict" data="{{ phone['homeshop18']['data'] }}" source="homeshop18">
3313 varun.gupt 82
		{% else %}
3440 varun.gupt 83
			<td class="price" source="homeshop18">
3313 varun.gupt 84
		{% end %}
85
 
86
		{% if phone['homeshop18']['price'] is None and phone['homeshop18']['data'] is None %}
87
				{{ phone['homeshop18']['text'] }}
3440 varun.gupt 88
		{% elif phone['homeshop18']['data'] is not None %}
89
				<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}">
90
					{{ phone['homeshop18']['text'] }}
91
				</a>
3313 varun.gupt 92
		{% else %}
93
				<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}" target="_blank">
94
					{{ phone['homeshop18']['text'] }}
95
				</a>
96
		{% end %}
97
			</td>
98
 
99
		{% if phone['infibeam']['data'] is not None %}
3440 varun.gupt 100
			<td class="price conflict" data="{{ phone['infibeam']['data'] }}" source="infibeam">
3313 varun.gupt 101
		{% else %}
3440 varun.gupt 102
			<td class="price" source="infibeam">
3313 varun.gupt 103
		{% end %}
104
 
105
		{% if phone['infibeam']['price'] is None and phone['infibeam']['data'] is None %}
106
				{{ phone['infibeam']['text'] }}
3440 varun.gupt 107
		{% elif phone['infibeam']['data'] is not None %}
108
				<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}">
109
					{{ phone['infibeam']['text'] }}
110
				</a>
3313 varun.gupt 111
		{% else %}
112
				<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}" target="_blank">
113
					{{ phone['infibeam']['text'] }}
114
				</a>
115
		{% end %}
116
			</td>
117
 
118
		{% if phone['letsbuy']['data'] is not None %}
3440 varun.gupt 119
			<td class="price conflict" data="{{ phone['letsbuy']['data'] }}" source="letsbuy">
3313 varun.gupt 120
		{% else %}
3440 varun.gupt 121
			<td class="price" source="letsbuy">
3313 varun.gupt 122
		{% end %}
123
 
124
		{% if phone['letsbuy']['price'] is None and phone['letsbuy']['data'] is None %}
125
				{{ phone['letsbuy']['text'] }}
3440 varun.gupt 126
		{% elif phone['letsbuy']['data'] is not None %}
127
				<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}">
128
					{{ phone['letsbuy']['text'] }}
129
				</a>
3313 varun.gupt 130
		{% else %}
131
				<a href="{{ phone['letsbuy']['url'] if phone['letsbuy']['url'] is not None else '#' }}" target="_blank">
132
					{{ phone['letsbuy']['text'] }}
133
				</a>
134
		{% end %}
135
			</td>
3232 varun.gupt 136
		</tr>
3313 varun.gupt 137
	{% end %}
3232 varun.gupt 138
	</tbody>
139
	</table>
3440 varun.gupt 140
</div>
3313 varun.gupt 141
{% end %}
3232 varun.gupt 142
	<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
143
	<script type="text/javascript" src="/static/facebox.js"></script>
144
	<script type="text/javascript" src="/static/chart.js"></script>
145
</body>
146
</html>