Rev 20142 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php$cakeDescription = __d('cake_dev', 'ProfitTill');?><!DOCTYPE html><html lang="en"><head><?php echo $this->Html->charset(); ?><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><meta name="author" content=""><meta name="keywords" content="<?php if(isset($tags)){echo implode(',',$tags);}?>freebies, coupons, cashback"/><meta name="description" content="<?php echo $description;?>"/><meta property="fb:admins" content="100004076526759"/><title><?php echo $cakeDescription ?>: <?php echo trim($title_for_layout); ?></title><link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="<?php echo $base_url;?>css/style.css?v=<?php echo $staticversion;?>"><script type="text/javascript" src="<?php echo $base_url;?>js/jquery-1.10.2.js"></script><script type="text/javascript" src="/js/bootstrap.min.js"></script><?phpecho $this->Html->meta('icon');// echo $this->Html->css(array('style'));echo $this->fetch('meta');echo $this->fetch('css');echo $this->fetch('script');?><script type="text/javascript">var me = '<?php echo $logged_user['id'];?>';var myemail = '<?php echo $logged_user['email'];?>';var apihost = '<?php echo $apihost;?>';var ip = '<?php echo $_SERVER['HTTP_CF_CONNECTING_IP'];?>';</script><script type="text/javascript">function getC(name){var re = new RegExp(name + "=([^;]+)");var value = re.exec(document.cookie);return (value != null) ? unescape(value[1]) : null;}var value = getC('txn_comp');if(typeof(value) !== 'undefined' && value!==null ){if(value=='no'){<?php if(isset($localCartHistory)):?>var data = '<?php echo json_encode($localCartHistory);?>';data = JSON.parse(data);var totalCartValue = data.totalAmount;var totalCartQuantity = 0;var cartItems = {};var jsonObjToBeStored = {};var shippingCharges = data.shippingCharge;var totalSkus = 0;for (var i = 0; i < data.cartItems.length; i++) {if(data.cartItems[i].quantity>0){var itemDetail = {};itemDetail['quantity'] = data.cartItems[i].quantity;itemDetail['unitprice'] = data.cartItems[i].sellingPrice;itemDetail['productname'] = data.cartItems[i].title;itemDetail['brand'] = data.cartItems[i].brand;totalSkus = totalSkus+1;totalCartQuantity = totalCartQuantity + data.cartItems[i].quantity;cartItems[data.cartItems[i].itemId] = itemDetail;}}jsonObjToBeStored['totalCartValue'] = totalCartValue;jsonObjToBeStored['totalCartQuantity'] = totalCartQuantity;jsonObjToBeStored['totalSkus'] = totalSkus;jsonObjToBeStored['shippingCharges'] = shippingCharges;jsonObjToBeStored['cartItems'] = cartItems;localStorage.setItem('cart_details',JSON.stringify(jsonObjToBeStored));<?php endif;?>document.cookie = 'txn_comp=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';}if(value=='yes'){localStorage.removeItem('cart_details');document.cookie = 'txn_comp=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';}}</script></head><body onload="loaded()"><div class="container"><?php echo $this->element('header');?><?php echo $this->element('footer');?><?php echo $this->Session->flash(); ?><?php echo $this->fetch('content'); ?></div><?php //echo $this->element('footer');?><?php //echo $this->element('sql_dump'); ?><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-59241805-1', 'auto');ga('send', 'pageview');ga('set', '&uid', me); // Set the user ID using signed-in user_id.</script><script src="<?php echo $base_url;?>js/jquery.timeago.js"></script><script src="<?php echo $base_url;?>js/jquery.viewport.mini.js?v=<?php echo $staticversion;?>"></script><script src="<?php echo $base_url;?>js/cassandraMap.js"></script><script type="text/javascript">jQuery(document).ready(function() {jQuery("time.timeago").timeago();});</script></body></html>