Subversion Repositories SmartDukaan

Rev

Rev 8561 | Rev 8936 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8561 Rev 8917
Line 14... Line 14...
14
#set($totalPages = $action.getTotalPages())
14
#set($totalPages = $action.getTotalPages())
15
#set($currentPage  = $action.getCurrentPage())
15
#set($currentPage  = $action.getCurrentPage())
16
#set($url = $action.getUrl())
16
#set($url = $action.getUrl())
17
#set($priceUrl = $action.getPriceUrl())
17
#set($priceUrl = $action.getPriceUrl())
18
 
18
 
-
 
19
#set($banners = $action.getActiveBanners())
-
 
20
#set($banners = $action.getActiveBanners())
-
 
21
#if($banners)
-
 
22
#set($bannerCount = $banners.size())
-
 
23
#else
-
 
24
#set($bannerCount = 0)
-
 
25
#end
-
 
26
 
19
 
27
 
20
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
28
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
21
<html xmlns="http://www.w3.org/1999/xhtml">
29
<html xmlns="http://www.w3.org/1999/xhtml">
22
  <head>
30
  <head>
23
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
31
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Line 49... Line 57...
49
				<a href="/">Home</a>&nbsp;&gt;&nbsp;
57
				<a href="/">Home</a>&nbsp;&gt;&nbsp;
50
				<a href="#">$action.getCategoryName()</a>
58
				<a href="#">$action.getCategoryName()</a>
51
			</div>
59
			</div>
52
		</div>
60
		</div>
53
		<div class="main-left left">
61
		<div class="main-left left">
54
            <script type='text/javascript'><!--//<![CDATA[
62
            #if ( $bannerCount == 0 )
-
 
63
					<div class="main-left-banner" style="display: none">
-
 
64
				#elseif ( $bannerCount < 3 )
-
 
65
					<div class="main-left-banner"  style="height: 210px;">
-
 
66
				#else
-
 
67
					<div class="main-left-banner"  style="height: 230px;">
-
 
68
				#end
-
 
69
				
-
 
70
				#if($bannerCount > 1 && $bannerCount < 3)
-
 
71
					<ul id="bannerMenu">
-
 
72
						#foreach($banner in $banners)
-
 
73
							#if($banner.isHasMap())
55
               var m3_u = (location.protocol=='https:'?'https://open.saholic.com/openx/www/delivery/ajs.php':'http://open.saholic.com/openx/www/delivery/ajs.php');
74
								<li class="square"><a href="$banner.getLink()" banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' usemap='#map$velocityCount' height="200" width="710"/></a>
-
 
75
								<map name='map$velocityCount'> 
56
               var m3_r = Math.floor(Math.random()*99999999999);
76
									#set($mapdetails = $action.getbannermapdetails("$banner.getBannerName()"))
57
               if (!document.MAX_used) document.MAX_used = ',';
77
									#foreach($mapdetail in $mapdetails)
58
               document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
78
										<area shape="rect" coords='$mapdetail.getCoordinates()' href='$mapdetail.getMapLink()' banner-name='$banner.getBannerName()'/>
-
 
79
									#end
-
 
80
									</map>
-
 
81
									</li>
-
 
82
							#else
-
 
83
								<li class="square"><a href="$banner.getLink()" banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' height="200" width="710" /></a></li>
59
               document.write ("?zoneid=4");
84
	                        #end
-
 
85
						#end
-
 
86
					</ul>
-
 
87
					<div class="container">
60
               document.write ('&amp;cb=' + m3_r);
88
                      <div class="slider_arrow_left"></div>
61
               if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
89
                      <div class="slider_arrow_right"></div>
-
 
90
                    </div>
-
 
91
				#else
-
 
92
					  <div id="banner-menu">
-
 
93
						#foreach($banner in $banners)
-
 
94
							#if($banner.isHasMap())
62
               document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
95
								<a href="$banner.getLink()" banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' title="$banner.getBannerName()" usemap='#map$velocityCount'/></a>
-
 
96
								<map name='map$velocityCount'> 
63
               document.write ("&amp;loc=" + escape(window.location));
97
									#set($mapdetails = $action.getbannermapdetails("$banner.getBannerName()"))
-
 
98
									#foreach($mapdetail in $mapdetails)
64
               if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
99
										<area shape="rect" coords='$mapdetail.getCoordinates()' href='$mapdetail.getMapLink()' banner-name='$banner.getBannerName()'/>
-
 
100
									#end
-
 
101
									</map>
-
 
102
							#else
65
               if (document.context) document.write ("&context=" + escape(document.context));
103
								<a href="$banner.getLink()" banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' title="$banner.getBannerName()"/></a>
66
               if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
104
	                        #end
-
 
105
						#end
67
               document.write ("'><\/scr"+"ipt>");
106
                       </div>
-
 
107
				#end
68
            //]]>--></script><noscript><a href='http://open.saholic.com/openx/www/delivery/ck.php?n=aa95abb5&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://open.saholic.com/openx/www/delivery/avw.php?zoneid=4&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=aa95abb5' border='0' alt='' /></a></noscript>
108
				</div>
69
			        <!-- tab buttons -->
109
			        <!-- tab buttons -->
70
        <ul id="tabButton" class="menu">
110
        <ul id="tabButton" class="menu">
71
          <li class="tabButton1" id="catTab1">
111
          <li class="tabButton1" id="catTab1">
72
            <a class="showBrowse" href="#" title="" id="catTab1-first">
112
            <a class="showBrowse" href="#" title="" id="catTab1-first">
73
                  All
113
                  All
Line 493... Line 533...
493
      maxPrice        = $maxPrice ;
533
      maxPrice        = $maxPrice ;
494
      stepPrice       = 1;
534
      stepPrice       = 1;
495
      priceUrl		   = "$priceUrl";
535
      priceUrl		   = "$priceUrl";
496
      dynamicPriceRange = $action.getDynamicSearchMap();
536
      dynamicPriceRange = $action.getDynamicSearchMap();
497
    </script>
537
    </script>
-
 
538
	
-
 
539
	<script type="text/javascript" charset="utf-8">
-
 
540
	#if ($bannerCount == 1 )
-
 
541
	jQuery('#banner-menu').slidy({
-
 
542
        animation:  'none',
-
 
543
        children:   'a',
-
 
544
        menu:       false,
-
 
545
        pause:      true,
-
 
546
        speed:      400,
-
 
547
        time:       4000
-
 
548
    });
-
 
549
 
-
 
550
	#elseif ($bannerCount > 1 && $bannerCount < 3 )
-
 
551
	$(document).ready(function() {
-
 
552
           $('#bannerMenu').DDSlider({
-
 
553
           nextSlide: '.slider_arrow_right',
-
 
554
           prevSlide: '.slider_arrow_left',
-
 
555
           selector: '.slider_selector'
-
 
556
            });
-
 
557
          }); 
-
 
558
	#else
-
 
559
	jQuery('#banner-menu').slidy({
-
 
560
        animation:  'fade',
-
 
561
        children:   'a',
-
 
562
        menu:       true,
-
 
563
        pause:      true,
-
 
564
        speed:      200,
-
 
565
        time:       5000
-
 
566
    });
-
 
567
	#end
-
 
568
	jQuery("#banner-menu").find("a, area").click(
-
 
569
    function(){
-
 
570
        if($(this).attr("href") != "#") {
-
 
571
            bannername = $(this).attr("banner-name");
-
 
572
            url = $(this).attr("href");
-
 
573
			trackEventWithGA('Banner Region Clicked', bannername, url);
-
 
574
        }
-
 
575
    }
-
 
576
);
-
 
577
	</script>
-
 
578
	<style type="text/css">
-
 
579
		.slider_arrow_left {
-
 
580
         background: url(/images/left_arrow.png) no-repeat top left;
-
 
581
         }
-
 
582
		.slider_arrow_right {
-
 
583
         background: url(/images/right_arrow.png) no-repeat top left;
-
 
584
         }
-
 
585
	</style>
498
 
586
 
499
</body>
587
</body>
500
</html>
588
</html>
501
 
589