| 387 |
rajveer |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| 507 |
rajveer |
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
| 974 |
vikas |
5 |
<meta name="Description" content="$action.getPageMetaDescSnippet()" />
|
|
|
6 |
<meta name="Keywords" content="$action.getPageMetaKeywordsSnippet()" />
|
|
|
7 |
<title>$action.getPageTitleSnippet()</title>
|
| 449 |
rajveer |
8 |
|
| 568 |
rajveer |
9 |
#include ( "templates/commoncssfiles.vm" )
|
| 1019 |
vikas |
10 |
#include ( "templates/commonjsfiles.vm" )
|
| 449 |
rajveer |
11 |
|
| 943 |
vikas |
12 |
#set($userinfo = $action.getUserInfo())
|
|
|
13 |
</head>
|
|
|
14 |
|
|
|
15 |
<body>
|
|
|
16 |
<noscript>
|
|
|
17 |
<p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
|
|
|
18 |
</noscript>
|
|
|
19 |
|
|
|
20 |
$action.getHeaderSnippet()
|
|
|
21 |
<!-- Wrapper start -->
|
|
|
22 |
<div id="main">
|
|
|
23 |
$action.getMainMenuSnippet()
|
|
|
24 |
$action.getSearchBarSnippet()
|
|
|
25 |
|
|
|
26 |
<!-- wrapper-->
|
|
|
27 |
<div id="wrapper">
|
|
|
28 |
<input id="defaultpincode" name="defaultpincode" value=$userinfo.getPincode() type="hidden" />
|
|
|
29 |
$action.getProductSummarySnippet()
|
|
|
30 |
<!-- slide guide -->
|
|
|
31 |
<div id="slideGuide">
|
|
|
32 |
$action.getSocialUtilsSnippet()
|
|
|
33 |
$action.getSlideGuideSnippet()
|
|
|
34 |
</div>
|
|
|
35 |
<!-- /slide guide -->
|
|
|
36 |
</div>
|
|
|
37 |
<!-- /wrapper-->
|
|
|
38 |
|
|
|
39 |
<!-- sidebar-->
|
|
|
40 |
<div id="sidebar">
|
|
|
41 |
$action.getCustomerServiceSnippet()
|
|
|
42 |
$action.getMyResearchSnippet()
|
|
|
43 |
$action.getBrowseHistorySnippet()
|
|
|
44 |
<div style="clear:both;padding:2px;"> </div>
|
|
|
45 |
</div>
|
|
|
46 |
<!-- /sidebar-->
|
|
|
47 |
|
|
|
48 |
<div class="clearBoth"></div>
|
|
|
49 |
</div><!-- /main -->
|
|
|
50 |
|
|
|
51 |
$action.getFooterSnippet()
|
|
|
52 |
|
| 449 |
rajveer |
53 |
<script type="text/javascript" charset="utf-8">
|
|
|
54 |
/*youtube video init*/
|
|
|
55 |
google.load("swfobject", "2.1");
|
|
|
56 |
|
|
|
57 |
$(function(){
|
|
|
58 |
$('#loopedSlider').loopedSlider();
|
|
|
59 |
});
|
|
|
60 |
|
|
|
61 |
$(function() {
|
|
|
62 |
runEffect();
|
|
|
63 |
});
|
|
|
64 |
|
|
|
65 |
|
| 387 |
rajveer |
66 |
$(document).ready(
|
|
|
67 |
function() {
|
| 449 |
rajveer |
68 |
$("#controls").tabs();
|
|
|
69 |
});
|
|
|
70 |
|
| 637 |
rajveer |
71 |
$(document).ready(
|
|
|
72 |
function() {
|
|
|
73 |
$(".demo").tabs();
|
|
|
74 |
}
|
|
|
75 |
);
|
|
|
76 |
|
| 449 |
rajveer |
77 |
$(function() {
|
|
|
78 |
$('#forgot_username_link').tipsy({gravity: 'w'});
|
|
|
79 |
});
|
|
|
80 |
|
|
|
81 |
function changeSignInClass(){
|
|
|
82 |
if(document.getElementById("signinClass").className.indexOf("signin1")> -1){
|
|
|
83 |
document.getElementById("signinClass").className='signin';
|
|
|
84 |
}else{
|
|
|
85 |
document.getElementById("signinClass").className='signin1';
|
|
|
86 |
}
|
|
|
87 |
}
|
| 387 |
rajveer |
88 |
</script>
|
| 449 |
rajveer |
89 |
|
| 387 |
rajveer |
90 |
<script type="text/javascript">
|
| 449 |
rajveer |
91 |
$(document).ready(
|
|
|
92 |
function() {
|
|
|
93 |
$(".demo").tabs();
|
|
|
94 |
}
|
|
|
95 |
);
|
| 396 |
ashish |
96 |
</script>
|
|
|
97 |
<script type="text/javascript">
|
| 449 |
rajveer |
98 |
$(document).ready(
|
|
|
99 |
function() {
|
|
|
100 |
$(".controls").tabs();
|
| 391 |
rajveer |
101 |
}
|
| 449 |
rajveer |
102 |
);
|
| 994 |
vikas |
103 |
|
| 391 |
rajveer |
104 |
</script>
|
| 793 |
rajveer |
105 |
|
| 994 |
vikas |
106 |
<script>
|
|
|
107 |
$(document).ready(function() {
|
|
|
108 |
// Main "Add to Cart"
|
|
|
109 |
$("#zipcode").val($("#defaultpincode").val());
|
|
|
110 |
|
|
|
111 |
$("#colorselector").change(onSelectChange);
|
|
|
112 |
|
|
|
113 |
function onSelectChange(){
|
|
|
114 |
var selected = $("#colorselector option:selected");
|
|
|
115 |
var output = "";
|
|
|
116 |
var itemid = selected.val();
|
|
|
117 |
//alert("SP for item id" + itemid + " is " + PARAMETERS[itemid].SP);
|
|
|
118 |
$('#sp').html(PARAMETERS[itemid].SP);
|
|
|
119 |
$('#mrp').html(PARAMETERS[itemid].MRP);
|
|
|
120 |
$('#saving').html(PARAMETERS[itemid].SAVING);
|
|
|
121 |
$("#item_id").val(itemid);
|
|
|
122 |
return false;
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
$("a.colorselector").click(function() {
|
|
|
126 |
//alert("color is"+$(this).attr('color') + "item id"+ $(this).attr('itemid'));
|
|
|
127 |
$('.a.colorselector').addClass('deselect');
|
|
|
128 |
$(this).addClass('deselect');
|
|
|
129 |
var itemid = $(this).attr('itemid')
|
|
|
130 |
//alert("SP for item id" + itemid + " is " + PARAMETERS[itemid].SP);
|
|
|
131 |
$('#sp').html(" "+PARAMETERS[itemid].SP);
|
|
|
132 |
$('#mrp').html(" "+PARAMETERS[itemid].MRP);
|
|
|
133 |
$('#saving').html(PARAMETERS[itemid].SAVING);
|
|
|
134 |
$("#item_id").val(itemid);
|
|
|
135 |
return false;
|
|
|
136 |
});
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
$("#addcart").click(function(){
|
|
|
141 |
|
|
|
142 |
// alert("AJAX request to add products in Cart. Product ID: "+$("#item_id").val());
|
|
|
143 |
|
|
|
144 |
jQuery.ajax({
|
|
|
145 |
type: "POST",
|
|
|
146 |
url: "../cart",
|
|
|
147 |
data: "productid="+$("#item_id").val(),
|
|
|
148 |
success: function(msg){
|
|
|
149 |
$("#cartItemCount").html((msg*1));
|
|
|
150 |
// alert( "Data Saved: " + msg );
|
|
|
151 |
}
|
|
|
152 |
});
|
|
|
153 |
});
|
|
|
154 |
|
|
|
155 |
jQuery.ajax({
|
|
|
156 |
type: "GET",
|
|
|
157 |
url: "../estimate/"+$("#zipcode").val()+"_"+$("#item_id").val(),
|
|
|
158 |
beforeSend: function(){ $("#shipping_time").html("<img src='../images/loader_l.gif'>"); },
|
|
|
159 |
success: function(msg){
|
|
|
160 |
// alert( "delivery estimate is " + msg);
|
|
|
161 |
$("#shipping_time").html(msg);
|
|
|
162 |
}
|
|
|
163 |
});
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
});
|
|
|
167 |
|
|
|
168 |
function updateEstimate(){
|
|
|
169 |
jQuery.ajax({
|
|
|
170 |
type: "GET",
|
|
|
171 |
url: "../estimate/"+$("#zipcode").val()+"_"+$("#item_id").val(),
|
|
|
172 |
beforeSend: function(){ $("#days").html("<img src='../images/loader_l.gif'>"); },
|
|
|
173 |
success: function(msg){
|
|
|
174 |
//alert( "delivery estimate is " + msg);
|
|
|
175 |
$("#shipping_time").html(msg);
|
|
|
176 |
}
|
|
|
177 |
});
|
|
|
178 |
}
|
|
|
179 |
|
|
|
180 |
var PARAMETERS = {
|
|
|
181 |
#foreach($item in $itemDetails)
|
|
|
182 |
#if($velocityCount == 1)
|
|
|
183 |
$item.ITEM_ID : { "ITEM_ID" : "$item.ITEM_ID", "SP" : "$item.SP", "MRP" : "$item.MRP", "SAVING" : "$item.SAVING", "COLOR" : "$item.COLOR" }
|
|
|
184 |
#else
|
|
|
185 |
,$item.ITEM_ID : { "ITEM_ID" : "$item.ITEM_ID", "SP" : "$item.SP", "MRP" : "$item.MRP", "SAVING" : "$item.SAVING", "COLOR" : "$item.COLOR" }
|
|
|
186 |
#end
|
|
|
187 |
|
|
|
188 |
#end
|
|
|
189 |
} ;
|
|
|
190 |
|
|
|
191 |
</script>
|
|
|
192 |
|
| 507 |
rajveer |
193 |
</body>
|
|
|
194 |
</html>
|