|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /home/jackjohn/public_html/cgi-bin/sc/templates/includes/ |
Upload File : |
[-- IF VAR.NoForm "si" --][-- ELSE --]</form>
<script type="text/javascript">
for ( var i=0; i < document.cr.elements.length; i++) {
if (document.cr.elements[i].type != "hidden") {
document.cr[i].focus();
break;
}
}
</script>[-- END_IF --]
</center>
</td>
<td id="right">
[-- IF PageLinks.Right --]
[-- PageLinks.Right --]
[-- END_IF --]
<div id="links">
[-- IF GiftCert --]<li class="inline">[-- GiftCertlink --]</li>[-- END_IF --]
[-- IF WishList --]<li class="inline">[-- WishListLink --]</li>[-- END_IF --]
<li class="inline"><a href="[-- SHOPPING_CART_URL --]">[-- STORE.ViewCartText --]</a></li>
[-- IF PageMenu --]
[-- IF SC_Registration --]<li class="inline"><a href="[-- SHOPPING_CART_URL BASE --]/order.cgi?func=3&storeid=[-- STORE.ID --]&html_reg=html">[-- STORE.YourAccount --]</a></li>[-- END_IF --]
[-- END_IF --]
</div>
[-- IF ShopSiteSecurityImage --]<p align="center">[-- ShopSiteSecurityImage --]</p>[-- END_IF --]
</td>
</tr>
</table>
<div id="footer">
[-- IF PageLinks.Footer --]
<div id="footer_pagelinks">[-- PageLinks.Footer --]</div>
[-- END_IF --]
[-- CR_Footer --]
</div><!-- end footer -->
<script>
$(".prccalc").each(function(){
var price = parseFloat($(this).find(".prccalc-prc").html());
$(this).find(".finopt").each(function(){
var prcmod = $(this).val();
if (prcmod.indexOf(";") > -1) {
if(prcmod.indexOf(';=') > -1){
price=parseFloat(prcmod.substring(prcmod.indexOf(';=')+2))||price;
} else if(prcmod.match(/;[*xX]/)) {
price *= parseFloat(prcmod.substring(prcmod.indexOf(';')+2))||1;
} else if(prcmod.indexOf(';') > -1 && prcmod.indexOf(';n') == -1) {
price += parseFloat(prcmod.substring(prcmod.indexOf(';')+1))||0;
}
}
});
price = Number(price).toLocaleString('[-- Locale_Name --]', {style: 'decimal', maximumFractionDigits : 2, minimumFractionDigits : 2 });
$(this).find(".prccalc-prc").html(price)
});
</script>
</body>
</html>