Subversion Repositories SmartDukaan

Rev

Rev 20413 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="container">
        <div class="well text-center">
                You are being redirected to <a href="<?php echo $url;?>"><?php echo $store['Store']['name'];?></a>
        </div>
</div>
<?php echo $this->element('unlikemodal');?>
<script type="text/javascript">
        store = <?php echo $store['Store']['id'];?>;
        url = '<?php echo $url;?>';
        redirectToFunction = function(){
                if( store == 5) {
                        url = 'http://mobilehotindia.com/r.html?'+Base64.encode(url);
                        //check if shopclues is active or not
                        active = getCookie('shopcluesActive',1);
                        if(active && active == 'true'){
                                document.location = url;        
                                pma.send('apk','shopclues','active',me,null);
                        }else{
                                pma.send('apk','shopclues','inactive',me,null);
                                $('#loadingModal').modal('hide');
                                showShopcluesPopup(url);
                        }
                } else if(store == 6 ) {
                        redirectToPaytm(url);
                } else if (store == 7) {
                        redirectTohomeShop18(url);
                } else if (store == 2) {
                        url = 'http://mobilehotindia.com/r.html?'+Base64.encode(url);
                        document.location = url;                                
                } else if(store == 3){
                        url = '/r.html?'+Base64.encode(url);
                        document.location = url;                                
                } else {
                        document.location = url;
                }       
        };
</script>
<?php echo $outputcategory;?>
<script type="text/javascript">
$(redirectToFunction);
</script>
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>