Subversion Repositories SmartDukaan

Rev

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

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