Subversion Repositories SmartDukaan

Rev

Rev 5048 | Rev 5322 | 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">
5048 amit.gupta 3
#set($slidenames = $action.getSlideNames())
1778 rajveer 4
<head>
5048 amit.gupta 5
	<title>$action.getPageTitle()</title>
1778 rajveer 6
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5048 amit.gupta 7
	<meta name="Description" content="$action.getPageDescription()" />
8
	<meta name="Keywords" content="$action.getKeywords()" />
1778 rajveer 9
 
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
 #include ( "templates/commoncssfiles.vm" )  
20
 
21
#set($userinfo = $action.getUserInfo())
22
</head>
23
 
24
<body>
25
	<noscript>
26
		<p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
27
	</noscript>
28
 
3830 chandransh 29
	$action.getHeaderSnippet()		
30
 
31
			<!-- Main -->
32
<div id="main">
33
	<div class="main-content">
34
		<div class="main-top">
35
			<div class="bread-crumbs">
36
				<a href="/">Home</a>&nbsp;&gt;&nbsp;
37
				<a href="#">Comparison</a>
38
			</div>
39
		</div>
40
		<div class="main-left left">
41
 
42
		</div>
1778 rajveer 43
 
3830 chandransh 44
		<!-- Comparision main body  -->
1778 rajveer 45
      <div id="slideGuideContent" class="comparision-page">
3830 chandransh 46
        <div class="middle blue-border">
1778 rajveer 47
          <div id="comparision-left" >
3830 chandransh 48
            <div id="slideGuideNav" style="width:155px;">
1778 rajveer 49
              <ul id="sideNav" class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
50
 
1977 rajveer 51
				<li title="Analysis" class=" ui-state-default ui-state-active ui-corner-top">
1950 rajveer 52
                  <a class="vt" href="#vtab-summary">
1977 rajveer 53
                    <span>Analysis</span>
1950 rajveer 54
                  </a>
55
                </li>
1778 rajveer 56
				#foreach($slidename in $slidenames)
57
				#set($slidenamesmall = $slidename.toLowerCase().replace(" ", ""))
1836 rajveer 58
				#set($slidenamesmall = $slidenamesmall.replace("/", ""))
5145 phani.kuma 59
				<li title="$slidename" class="ui-state-default ui-corner-top">
1950 rajveer 60
				  <a class="vt" href="#vtab-$slidenamesmall">
1778 rajveer 61
                    <span>$slidename</span>
62
                  </a>
63
                </li>
64
				#end
65
 
66
 
67
              </ul>
68
            </div>
69
          </div>
1950 rajveer 70
          <div id="comparision-right">
1778 rajveer 71
            <h1 class='comparision-page-title'>Introduction</h1>
1950 rajveer 72
            <div class="scroller-column-$snippets.size() scroller-columns">
1778 rajveer 73
              <div class="column-top-grey">&nbsp;</div>
74
 
75
			   <div class="scroller-content-inner" id="scroller-main-content">
76
 
77
              <div class="comparision-product-name">
78
 
79
				#set($productsnippets =  $action.getProductSnippets())
80
				#foreach ( $snippet in $productsnippets.values() )
81
					#if($velocityCount != 1)
82
						<div class="comparision-border-inner"></div>
83
					#end
84
					$snippet
85
				#end
86
			</div>
87
 
88
				#set($snippets =  $action.getSnippets())
1806 rajveer 89
				#set($count = 1)
1778 rajveer 90
				#foreach ( $snippet in $snippets.values() )
91
					#if($velocityCount != 1)
92
						<div class="comparision-border-inner"></div>
93
					#end
1806 rajveer 94
					<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 95
					$snippet	
96
					</div>
97
				#end
98
 
99
				</div>
100
              <div class="column-bottom-grey">&nbsp;</div>
101
            </div>
1950 rajveer 102
 
103
			 <div id="comparision-summary-content" class="summary-column-$snippets.size()">
104
              <div class="summary comparision-summary-inner-content">
105
                <div class="summarypage-headerrow">
106
                  <div class="column  summary-column-title" >
107
                    <div class="header">
1977 rajveer 108
                      <h1 class='summary-comparision-page-title'> Analysis</h1>
1950 rajveer 109
                    </div>
110
                  </div>
111
 
112
				  #set($productsnippets =  $action.getProductSummarySnippets())
113
				#foreach ( $snippet in $productsnippets.values() )
114
 
115
						$snippet
116
					#end
117
                </div>
118
 
119
                <div class="summarypage-row-0 summarypage-row">
120
				<div class="column-score-title">
121
					<span class="scoretext">Overall Score</span>
122
                </div>
123
 
124
 
125
				#foreach($overallScore in $overallScores)
126
				<div class="column-score-total">
1977 rajveer 127
                   <span class="score-total score-total-$velocityCount scoretext">$overallScore / 10</span>
1950 rajveer 128
                </div>
129
				#end
130
				</div>
131
 
132
				#foreach($slidename in $slidenameimportancemap.keySet())
133
				<div  class="summarypage-row-$velocityCount summarypage-row">
134
                  <div class="column-score-name">
135
                    <span class="scoretextnormal">$slidename</span>
136
                    <span class="option">
137
                      <select id="category-2" class="summary-dropdown">
138
						#foreach($importance in $importances)
139
							#if($slidenameimportancemap.get($slidename).equals($importance))
140
								<option selected value="$velocityCount" > $importance </option>
141
							#else
142
								<option value="$velocityCount"> $importance </option>
143
							#end
144
 
145
 
146
						#end
147
 
148
                      </select>
149
                    </span>
150
                  </div>
151
				  #set($prodnum = 1)
152
				  #foreach($productname in $productnames)
153
				  #set($score = 0.0)
154
				  #set($score = $productslidescores.get($productname).get($slidename))
155
				  <div class="features-color features-color-$velocityCount">
156
 
157
					#if( $score < 2 )
158
							<div class="product-${prodnum} summary-rating rating0-2">$score</div>
159
					#elseif( $score < 3 )
160
							<div class="product-${prodnum} summary-rating rating2-3">$score</div>
161
					#elseif( $score < 4 )
162
							<div class="product-${prodnum} summary-rating rating3-4">$score</div>
163
					#elseif( $score < 5 )
164
							<div class="product-${prodnum} summary-rating rating4-5">$score</div>
165
					#elseif( $score < 6 )
166
							<div class="product-${prodnum} summary-rating rating5-6">$score</div>
167
					#elseif( $score < 7 )
168
							<div class="product-${prodnum} summary-rating rating6-7">$score</div>
169
					#elseif( $score < 8 )
170
							<div class="product-${prodnum} summary-rating rating7-8">$score</div>
171
					#else
172
							<div class="product-${prodnum} summary-rating rating8-10">$score</div>
173
					#end
174
 
175
					#set($prodnum = $prodnum + 1)
176
                  </div>
177
				  #end
178
 
179
                </div>
180
				#end
181
              </div>
5145 phani.kuma 182
			    <!-- rating area -->
1950 rajveer 183
                <div class="summary-rating rating-area">
184
                  <div class="summary-rating rating-scale">
185
                    <span class="first">Excellent</span> 
186
                    <span class="summary-rating rating8-10"></span>
187
                    <span class="summary-rating rating7-8"></span>
188
                    <span class="summary-rating rating6-7"></span>
189
                    <span class="summary-rating rating5-6"></span>
190
                    <span class="summary-rating rating4-5"></span>
191
                    <span class="summary-rating rating3-4"></span>
192
                    <span class="summary-rating rating2-3"></span>
193
                    <span class="summary-rating rating0-2"></span>
194
                    <span class="last">Bad</span>
195
                  </div>
196
                </div>
197
                <!-- /rating area -->
198
 
199
                <div class="bottom-area">
200
				#if($commonSlides && $commonSlides.size()>0)
201
                  <p>
202
                    <b>These features are the same across the compared phones </b>
203
                  </p>
204
				  #foreach($commonSlide in $commonSlides)
205
                  <p>$commonSlide </p>
206
				  #end
207
				#end
208
				  <p/>
209
				  <p>
210
                    <b>These features are not compared </b>
211
                  </p>
212
				  #foreach($uncomparedSlide  in $uncomparedSlides)
213
                  <p>$uncomparedSlide</p>
214
				  #end
215
				</div>
216
 
217
              </div>
218
            </div>
1778 rajveer 219
        </div>
220
      </div>
221
      <!-- /Comparision main body  -->	  
222
 
3830 chandransh 223
 
224
	</div>
225
</div>
226
<!-- /Main -->
227
 
228
 
229
     #include("templates/footer.vm")
1778 rajveer 230
    <!-- color by color lightbox -->
231
    <div style="display: none;">
232
      <div class="colorSelLightBoxColor">
233
        <form name="frmColorSelName" method="post" action="#">
234
          <h1>Color Selector</h1>
235
          <h2>"Please choose color of product"</h2>
236
          <div class="content"></div>
237
          <div class="bigImgButton yellow-image">
238
            <input value="Continue" class="button" onclick="selectColor();" type="button" />
239
          </div>
240
          <div class="clearBoth"></div>
241
        </form>
242
      </div>
243
    </div>
244
    <!-- /color by color lightbox -->
245
	#include ( "templates/commonjsfiles.vm" )
1950 rajveer 246
<script language="javascript" type="text/javascript" src="/js/jquery.jscrollpane.js"></script>
1816 rajveer 247
 
3068 chandransh 248
 
1778 rajveer 249
<script type="text/javascript" id="sourcecode">
250
      $(function() {
1950 rajveer 251
	  hideSlides();
252
		#if($snippets.size() > 3)
1778 rajveer 253
	    if ($(".scroller-column-$snippets.size()").length){
1950 rajveer 254
		  $('.scroller-column-$snippets.size()').jScrollPane({showArrows: true});
1778 rajveer 255
        }
1950 rajveer 256
		#end
257
	  renderComparison();
1778 rajveer 258
      });
259
</script>
1816 rajveer 260
 
1778 rajveer 261
 
262
 
263
</body>
264
</html>