Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
1778 rajveer 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
	<title>Compare phones</title>
5
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6
	<meta name="Description" content="$action.getPageMetaDescSnippet()" />
7
	<meta name="Keywords" content="$action.getPageMetaKeywordsSnippet()" />
8
 
9
#set($slidenames = $action.getSlideNames())
1950 rajveer 10
#set($productids = $action.getProductList())
1778 rajveer 11
#set($productnames = $action.getProductNames())
1950 rajveer 12
#set($slidenameimportancemap = $action.getSlideNameImportanceMap())
13
#set($productslidescores = $action.getProductSlideScores())
14
#set($importances = $action.getImportances())
15
#set($overallScores = $action.getOverallScores())
16
#set($uncomparedSlides= $action.getUncomparedSlides())
17
#set($commonSlides= $action.getcommonSlides())
18
 
1778 rajveer 19
 #set($currentUrl = $request.getRequestURL().toString()) 
20
 #if(!$currentUrl.startsWith("http://www.")) #set($currentUrl = $currentUrl.replace("http://", "http://www."))  #end  
21
 <link rel="canonical" href="$currentUrl" /> 
22
 #include ( "templates/commoncssfiles.vm" )  
23
 
24
#set($userinfo = $action.getUserInfo())
25
</head>
26
 
27
<body>
28
	<noscript>
29
		<p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
30
	</noscript>
31
 
32
	$action.getHeaderSnippet()			
33
     <!-- Wrapper start -->
34
	<div id="main">
35
		$action.getMainMenuSnippet()
36
		$action.getSearchBarSnippet()
37
 
38
		<!-- wrapper-->
39
		<div id="wrapper">
40
		        <!-- Product detail -->
1799 rajveer 41
        <div id="productDetail" class="comparision-page-content">
1778 rajveer 42
          <div class="top">
43
            <div class="left">
44
              <div class="right"> &nbsp; </div>
45
            </div>
46
          </div>
47
          <div class="middle">
48
            <div class="content">
49
              <div class="blockLeft">
50
                <!-- breadcrumb -->
51
                <div id="breadcrumb"><a href="#">Home</a>&nbsp;&gt; <a href="#" class="deselect">Comparison</a></div>
52
                <!-- /breadcrumb -->
53
 
54
                <div class="comparision-bc" >
1799 rajveer 55
                  <div class="comparision-bc-left">
1778 rajveer 56
                  <h1 id="comparision-heading">Comparison:</h1>
1799 rajveer 57
                  </div>
58
                  <div class="comparision-bc-right">
1778 rajveer 59
				  #foreach($productname in $productnames)
1799 rajveer 60
					#if($velocityCount != 1),&nbsp; #end $productname
1778 rajveer 61
				  #end
1799 rajveer 62
				  </div>
1778 rajveer 63
                </div>
64
 
65
              </div>
66
              <div class="clearBoth"></div>
67
            </div>
68
          </div>
69
          <div class="bottom">
70
            <div class="left">
71
              <div class="right"> &nbsp; </div>
72
            </div>
73
          </div>
74
        </div>
75
        <!-- /Product detail -->
76
 
77
        </div>
78
		<!-- /wrapper-->
79
 
80
		<!-- sidebar-->
81
		<div id="sidebar">
82
			$action.getCustomerServiceSnippet()
83
		</div>
84
		<!-- /sidebar-->
85
		<div class="clearBoth"></div>
86
 
87
      <!-- Comparision main body  -->
88
      <div id="slideGuideContent" class="comparision-page">
89
        <div class="top">
90
          <div class="left">
91
            <div class="right">
92
              <div class="center">
93
              </div>
94
            </div>
95
          </div>
96
        </div>
97
        <div class="middle">
98
          <div id="comparision-left" >
99
            <div id="slideGuideNav">
100
              <ul id="sideNav" class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
101
 
1977 rajveer 102
				<li title="Analysis" class=" ui-state-default ui-state-active ui-corner-top">
1950 rajveer 103
                  <a class="vt" href="#vtab-summary">
1977 rajveer 104
                    <span>Analysis</span>
1950 rajveer 105
                  </a>
106
                </li>
1778 rajveer 107
				#foreach($slidename in $slidenames)
108
				#set($slidenamesmall = $slidename.toLowerCase().replace(" ", ""))
1836 rajveer 109
				#set($slidenamesmall = $slidenamesmall.replace("/", ""))
1950 rajveer 110
				<li title="$slidename" class="ui-state-default ui-corner-top"> 
111
				<!--<li title="$slidename" class="#if($velocityCount != 1)ui-state-default #else ui-state-default ui-state-active #end ui-corner-top"> -->
112
 
113
				  <a class="vt" href="#vtab-$slidenamesmall">
1778 rajveer 114
                    <span>$slidename</span>
115
                  </a>
116
                </li>
117
				#end
118
 
119
 
120
              </ul>
121
            </div>
122
          </div>
1950 rajveer 123
          <div id="comparision-right">
1778 rajveer 124
            <h1 class='comparision-page-title'>Introduction</h1>
1950 rajveer 125
            <div class="scroller-column-$snippets.size() scroller-columns">
1778 rajveer 126
              <div class="column-top-grey">&nbsp;</div>
127
 
128
			   <div class="scroller-content-inner" id="scroller-main-content">
129
 
130
              <div class="comparision-product-name">
131
 
132
				#set($productsnippets =  $action.getProductSnippets())
133
				#foreach ( $snippet in $productsnippets.values() )
134
					#if($velocityCount != 1)
135
						<div class="comparision-border-inner"></div>
136
					#end
137
					$snippet
138
				#end
139
			</div>
140
 
141
				#set($snippets =  $action.getSnippets())
1806 rajveer 142
				#set($count = 1)
1778 rajveer 143
				#foreach ( $snippet in $snippets.values() )
144
					#if($velocityCount != 1)
145
						<div class="comparision-border-inner"></div>
146
					#end
1806 rajveer 147
					<div id="product-comparision" class="comparision-product-column #if($count == 0) comparision-product-column-even #set($count = 1) #else #set($count = 0) #end">
1778 rajveer 148
					$snippet	
149
					</div>
150
				#end
151
 
152
				</div>
153
              <div class="column-bottom-grey">&nbsp;</div>
154
            </div>
1950 rajveer 155
 
156
			 <div id="comparision-summary-content" class="summary-column-$snippets.size()">
157
              <div class="summary comparision-summary-inner-content">
158
                <div class="summarypage-headerrow">
159
                  <div class="column  summary-column-title" >
160
                    <div class="header">
1977 rajveer 161
                      <h1 class='summary-comparision-page-title'> Analysis</h1>
1950 rajveer 162
                    </div>
163
                  </div>
164
 
165
				  #set($productsnippets =  $action.getProductSummarySnippets())
166
				#foreach ( $snippet in $productsnippets.values() )
167
 
168
						$snippet
169
					#end
170
                </div>
171
 
172
                <div class="summarypage-row-0 summarypage-row">
173
				<div class="column-score-title">
174
					<span class="scoretext">Overall Score</span>
175
                </div>
176
 
177
 
178
				#foreach($overallScore in $overallScores)
179
				<div class="column-score-total">
1977 rajveer 180
                   <span class="score-total score-total-$velocityCount scoretext">$overallScore / 10</span>
1950 rajveer 181
                </div>
182
				#end
183
				</div>
184
 
185
				#foreach($slidename in $slidenameimportancemap.keySet())
186
				<div  class="summarypage-row-$velocityCount summarypage-row">
187
                  <div class="column-score-name">
188
                    <span class="scoretextnormal">$slidename</span>
189
                    <span class="option">
190
                      <select id="category-2" class="summary-dropdown">
191
						#foreach($importance in $importances)
192
							#if($slidenameimportancemap.get($slidename).equals($importance))
193
								<option selected value="$velocityCount" > $importance </option>
194
							#else
195
								<option value="$velocityCount"> $importance </option>
196
							#end
197
 
198
 
199
						#end
200
 
201
                      </select>
202
                    </span>
203
                  </div>
204
				  #set($prodnum = 1)
205
				  #foreach($productname in $productnames)
206
				  #set($score = 0.0)
207
				  #set($score = $productslidescores.get($productname).get($slidename))
208
				  <div class="features-color features-color-$velocityCount">
209
 
210
					#if( $score < 2 )
211
							<div class="product-${prodnum} summary-rating rating0-2">$score</div>
212
					#elseif( $score < 3 )
213
							<div class="product-${prodnum} summary-rating rating2-3">$score</div>
214
					#elseif( $score < 4 )
215
							<div class="product-${prodnum} summary-rating rating3-4">$score</div>
216
					#elseif( $score < 5 )
217
							<div class="product-${prodnum} summary-rating rating4-5">$score</div>
218
					#elseif( $score < 6 )
219
							<div class="product-${prodnum} summary-rating rating5-6">$score</div>
220
					#elseif( $score < 7 )
221
							<div class="product-${prodnum} summary-rating rating6-7">$score</div>
222
					#elseif( $score < 8 )
223
							<div class="product-${prodnum} summary-rating rating7-8">$score</div>
224
					#else
225
							<div class="product-${prodnum} summary-rating rating8-10">$score</div>
226
					#end
227
 
228
					#set($prodnum = $prodnum + 1)
229
                  </div>
230
				  #end
231
 
232
                </div>
233
				#end
234
              </div>
235
			  <!--
236
              <div class="summary-bottom-area">
237
                <div class="reset-button" ><div class="bigImgButton yellow-image">
238
                    <input type="submit" class="button" value="Reset" id="edit-submit" name="btnSearch" />
239
                  </div>
240
                </div
241
			-->
242
                <!-- rating area -->
243
                <div class="summary-rating rating-area">
244
                  <div class="summary-rating rating-scale">
245
                    <span class="first">Excellent</span> 
246
                    <span class="summary-rating rating8-10"></span>
247
                    <span class="summary-rating rating7-8"></span>
248
                    <span class="summary-rating rating6-7"></span>
249
                    <span class="summary-rating rating5-6"></span>
250
                    <span class="summary-rating rating4-5"></span>
251
                    <span class="summary-rating rating3-4"></span>
252
                    <span class="summary-rating rating2-3"></span>
253
                    <span class="summary-rating rating0-2"></span>
254
                    <span class="last">Bad</span>
255
                  </div>
256
                </div>
257
                <!-- /rating area -->
258
 
259
                <div class="bottom-area">
260
				#if($commonSlides && $commonSlides.size()>0)
261
                  <p>
262
                    <b>These features are the same across the compared phones </b>
263
                  </p>
264
				  #foreach($commonSlide in $commonSlides)
265
                  <p>$commonSlide </p>
266
				  #end
267
				#end
268
				  <p/>
269
				  <p>
270
                    <b>These features are not compared </b>
271
                  </p>
272
				  #foreach($uncomparedSlide  in $uncomparedSlides)
273
                  <p>$uncomparedSlide</p>
274
				  #end
275
				</div>
276
 
277
              </div>
278
            </div>
1778 rajveer 279
        </div>
280
        <div class="bottom">
281
          <div class="left">
282
            <div class="right">
283
              <div class="center">&nbsp;</div>
284
            </div>
285
          </div>
286
        </div>
287
      </div>
288
      <!-- /Comparision main body  -->	  
289
 
290
 
291
	<div class="clearBoth"></div>
292
    </div><!-- /main -->
293
 
294
	 $action.getFooterSnippet()
295
    <!-- color by color lightbox -->
296
    <div style="display: none;">
297
      <div class="colorSelLightBoxColor">
298
        <form name="frmColorSelName" method="post" action="#">
299
          <h1>Color Selector</h1>
300
          <h2>"Please choose color of product"</h2>
301
          <div class="content"></div>
302
          <div class="bigImgButton yellow-image">
303
            <input value="Continue" class="button" onclick="selectColor();" type="button" />
304
          </div>
305
          <div class="clearBoth"></div>
306
        </form>
307
      </div>
308
    </div>
309
    <!-- /color by color lightbox -->
310
	#include ( "templates/commonjsfiles.vm" )
1950 rajveer 311
<script language="javascript" type="text/javascript" src="/js/jquery.jscrollpane.js"></script>
1816 rajveer 312
<script language="javascript" type="text/javascript" src="/js/comparison.js"></script>
1950 rajveer 313
<script src="/js/jquery.colorbox-min.js"></script>
1816 rajveer 314
 
1778 rajveer 315
<script type="text/javascript" id="sourcecode">
316
      $(function() {
1950 rajveer 317
	  hideSlides();
318
		#if($snippets.size() > 3)
1778 rajveer 319
	    if ($(".scroller-column-$snippets.size()").length){
1950 rajveer 320
		  $('.scroller-column-$snippets.size()').jScrollPane({showArrows: true});
1778 rajveer 321
        }
1950 rajveer 322
		#end
323
	  renderComparison();
1778 rajveer 324
      });
325
</script>
1816 rajveer 326
 
1778 rajveer 327
 
328
 
329
</body>
330
</html>