Subversion Repositories SmartDukaan

Rev

Rev 1004 | Rev 1235 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#set ( $minPrice = $action.getMinPrice() )
#set ( $maxPrice = $action.getMaxPrice() )

#set ( $results = $action.getResults() )
#set ( $facets = $action.getFacets() )

#set( $totalItems = $action.getTotalResults() )
#set( $beginIndex = $action.getBeginIndex() )
#set( $endIndex  = $action.getBeginIndex() + 19 )

#if( $totalItems <= $endIndex )
#set( $endIndex = $totalItems )
#end
#set($totalPages = $action.getTotalPages())
#set($currentPage  = $action.getCurrentPage())
#set($url = $action.getUrl())
#set($priceUrl = $action.getPriceUrl())


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <meta name="Description" content="$action.getPageMetaDesc()" />
        <meta name="keywords" content="$action.getPageMetaKeywords()" />
    <!-- Prevent MS Office toolbar from changing layout -->
    <meta http-equiv="imagetoolbar" content="false" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <title>$action.getCategoryTitle() | Saholic.com</title>

    #include ( "templates/commoncssfiles.vm" )
    <link rel="stylesheet" href="/css/colorbox.css" type="text/css" media="all" />
    <link rel="stylesheet" href="/css/lightbox_inline.css" type="text/css" media="all" />
    <link rel="stylesheet" href="/css/jquery-ui-1.8.6.custom.css" type="text/css" media="all" />

  </head>

  <body>

    <noscript>
      <p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
    </noscript>


        $action.getHeaderSnippet()
    <!-- Wrapper start -->
    <div id="main">
                $action.getMainMenuSnippet()
                $action.getSearchBarSnippet()

      <!-- wrapper-->
      <div id="wrapper">

        <!-- Product detail -->
        <div id="productDetail">

          <div class="top">
            <div class="left">
              <div class="right"> &nbsp; </div>
            </div>
          </div>

          <div class="middle">
            <div class="content">

              <div class="blockLeft">

                <!-- breadcrumb -->
                <div id="breadcrumb"><a href="/">Home</a>&nbsp;&gt; <a href="#" class="deselect">$action.getCategoryName()</a></div>
                <!-- /breadcrumb -->
                <h1 id="productHeading2" value="$action.getId()">$action.getCategoryName()</h1>

              </div>
              <div class="clearBoth"></div>

            </div>
          </div>

          <div class="bottom">
            <div class="left">
              <div class="right"> &nbsp; </div>
            </div>
          </div>

        </div>
        <!-- /Product detail -->

        <!-- banner -->
        <!--
              <div id="productBanner">
                  <a href="#"><img src="/images/product-banner.jpg" width="736" alt="" /></a>
              </div>
                        -->
        <!-- /banner -->

        <!-- tab buttons -->
        <ul id="tabButton" class="menu">
          <li class="tabButton1" id="catTab1">
            <a class="showBrowse" href="#" title="" id="catTab1-first">
              <span>
                <span>
                  Browse
                </span>
              </span>
            </a>
          </li>
          <li class="tabButton2" id="catTab2">
            <a class="category-tabs" href="#" title="Best Sellers" name="best-sellers" id="catTab2-$action.getId()">
              <span>
                <span>
                  Best Sellers
                </span>
              </span>
            </a>
          </li>
          <li class="tabButton2" id="catTab3">
            <a class="category-tabs" href="#" title="Latest Arrivals" name="latest-arrivals" id="catTab3-$action.getId()">
              <span>
                <span>
                  Latest Arrivals
                </span>
              </span>
            </a>
          </li>
          <li class="tabButton2" id="catTab4">
            <a class="category-tabs" href="#" title="Best Deals" name="best-deals" id="catTab4-$action.getId()">
              <span>
                <span>
                  Best Deals
                </span>
              </span>
            </a>
          </li>
        </ul>
        <!-- /tab buttons -->

        <!-- my account -->
        <div id="productCat">
          <div class="top">
            <div class="left">&nbsp;</div>
            <div class="right">&nbsp;</div>
            <div class="clearBoth"></div>
          </div>

          <div class="middle">
            <div class="content">

              <!-- multifaceted search -->
              <div id="multifacetedSearch">

                                        #set ( $crumbs = $action.getCrumbs() )
                                        #if($crumbs && $crumbs.size()!=0)
                <h2>Current filters:</h2>

                <div id="currentFilters">

                  #foreach ( $crumb in $crumbs )
                  <div id="filterTalkTime">
                    <span class="sectionHeader">$crumb.get(0):</span>
                    <span class="filterContent">
                      <span class="filterOption">$crumb.get(1)</span>
                      <span class="filterClose"><a href="?$crumb.get(2)">[X]</a></span>
                    </span>
                  </div>
                                        #end
                </div>
                                        #end



                <!-- filter by -->
                <div id="filterBy">

                        #if($facets && $facets.size()!=0)
                  <h2>Filter by:</h2>

                        #foreach ( $facetLabel in $facets.keySet() )
                                #set ( $facetvalues = $facets.get($facetLabel) )
                                #if( $facetLabel == "Price" )
                  <!-- price -->
                  <div id="filterByPrice">
                    <div class="filterHeading">
                      <div class="filterArrow">&nbsp;</div>
                      <div class="sectionHeader">Price <span class="noBold">(Rs.)</span></div>
                    </div>

                    <div id="priceSlider">
                      <div id="priceRange1"></div>
                      <div id="priceRange2"></div>
                      <div class="clearBoth"></div>


                      <div id="slider-range"></div>
                      <div id="diff">&nbsp;</div>
                    </div>
                  </div>
                  <!-- /price -->
                                #else
                  <div id="filterByTalkTime">
                    <div class="filterHeading">
                      <div class="filterArrow">&nbsp;</div>
                      <div class="sectionHeader">$facetLabel</div>
                    </div>

                    <div class="filterOption">
                      <ul>
                                                #foreach ( $facetdetail in $facetvalues )
                        <li>
                          <a href="$facetdetail.get(2)" id="ttMedium">$facetdetail.get(0)</a> <span class="noColor">($facetdetail.get(1))</span>
                        </li>
                        #end
                      </ul>
                    </div>
                  </div>
                                #end
                        #end

                        #end
                  <div class="bottomBorder">&nbsp;</div>
                </div>
                <!-- /filter by -->

              </div>
              <!-- /multifaceted search -->

              <!-- productList -->
              <div id="productList">

                <!-- browse tab content -->
                <div id="browseContent">



                  <!-- productListTop -->
                  <div class="productListTop">
                    <div class="productListResult">
                                                                        $beginIndex to $endIndex  of <span class="resultLimit">$totalItems</span> <span class="style1">results</span>
                    </div>
                    <div class="pagination1 moveTop">
                      <ul class="pagination">
                                                                                #if($currentPage == 1)
                        <li class="pager-previous">
                          <span class="current prev">Prev</span>
                        </li>
                                                                                #else
                                                                                        #set($prev = $currentPage-1)
                        <li class="pager-previous">
                          <a href="${url}&page=${prev}" class="current prev">Prev</a>
                        </li>
                                                                                #end


                                                                                #set( $begin = 1 )
                                                                                #set( $end = 1 )
                                                                                #if($totalPages <= 5)
                                                                                        #set( $begin = 1 )
                                                                                        #set( $end = $totalPages )
                                                                                #else
                                                                                        #if($currentPage <= 3)
                                                                                                #set( $begin = 1 )
                                                                                                #set( $end = 5 )
                                                                                        #else
                                                                                                #set( $begin = $currentPage - 2 )
                                                                                        #set( $end = $currentPage + 2 )
                                                                                                #if( $end > $totalPages)
                                                                                                        #set( $end = $totalPages)
                                                                                                        #set( $begin = $end - 4 )
                                                                                                #end
                                                                                        #end
                                                                                #end
                                                                                #set( $pages = [$begin..$end] )

                                                                                #foreach( $pageId in $pages )
                                                                                #if($currentPage == $pageId)
                        <li class="pager-item">
                          <span class="current">$pageId</span>
                        </li>
                                                                                #else
                        <li class="pager-item">
                          <a href="${url}&page=${pageId}">$pageId</a>
                        </li>
                                                                                #end
                                                                                #end

                                                                                #if($currentPage == $totalPages)
                        <li class="pager-next">
                          <span class="current next">Next</span>
                        </li>
                                                                                #else
                                                                                        #set($next = $currentPage+1)
                        <li class="pager-next">
                          <a href="${url}&page=${next}" class="current next">Next</a>
                        </li>
                                                                                #end
                      </ul>
                    </div>
                    <div class="clearBoth"></div>
                  </div>
                  <!-- /productListTop -->

                  <!-- productListCenter -->
                  <div id="productListCenter1">

                    <!-- page 1 -->
                    <div class="page">
                      <ul class="deal-items category-page-items">
                                                                #set($snippets =  $action.getSnippets())

                                                                #set( $isLeft = 0 )
                                                                #foreach ( $entityid in $results )

                        <li
                          #if( $isLeft == 0 )
                                                                        class="floatLeft"
                                                                        #set($isLeft = 1)
                                                                #else
                                                                        class="floatRight"
                                                                        #set($isLeft = 0)
                                                                #end
                                                                >

                                                                $snippets.get($entityid)
                      </li>
                                                                #end
                    </ul>

                  </div>
                  <div class="clearBoth"></div>

                </div>
                <!-- /productListCenter -->

                <!-- productListBottom -->
                <div class="productListBottom">
                  <div class="pagination1"></div>
                  <div class="clearBoth"></div>
                </div>
                <!-- /productListBottom -->

              </div>
              <!-- /browse tab content -->

              <!-- otherTabContent -->
              <div id="otherTabContent">

                <!-- productListTop -->
                <div class="productListTop">

                  <div class="productListHeading"></div>
                  <div class="pagination2"></div>
                  <div class="productListResult"></div>

                  <div class="clearBoth"></div>
                </div>
                <!-- /productListTop -->

                <!-- productListCenter -->
                <div id="productListCenter2">


                  <div class="clearBoth"></div>

                </div>
                <!-- /productListCenter -->

                <!-- productListBottom -->
                <!--
                              <div class="productListBottom">
                                  <div class="pagination2"></div>
                                  <div class="clearBoth"></div>
                              </div>
                                                        -->
                <!-- /productListBottom -->

              </div>
              <!-- /otherTabContent -->

            </div>
            <!-- /productList -->

            <div class="clearBoth"></div>
          </div>

        </div>

        <div class="bottom">
          <div class="left">
            <div class="right">&nbsp;</div>
          </div>
        </div>
      </div>
      <!-- /my account -->


    </div>
    <!-- /wrapper-->

    <!-- sidebar-->
    <div id="sidebar">
      <!-- sidebar banner -->
      <!--
            <div id="sidebarBanner">
                <a href="#"><img src="/images/sidebar-banner.jpg" width="240" height="100" alt="" /></a>
            </div>
                        -->
      <!-- /sidebar banner -->
                        $action.getCustomerServiceSnippet()
                        $action.getMyResearchSnippet()
                        $action.getBrowseHistorySnippet()
      <div style="clear:both;padding:2px;">&nbsp;</div>
    </div>
    <!-- /sidebar-->

    <div class="clearBoth"></div>
  </div><!-- /main -->

         $action.getFooterSnippet()

  <!-- color by color lightbox -->
  <div style="display:none;">
    <div class="colorSelLightBoxColor">
      <form name="frmColorSelName" method="post" action="#">
        <h1>Color Selector</h1>
        <h2>"Please choose color of product"</h2>

        <div class="content"></div>

        <div class="bigImgButton yellow-image">
                <input value="Continue" type="button" class="button" onclick="selectColor();" />
        </div>
        <div class="clearBoth"></div>

      </form>
    </div>
  </div>
  <!-- /color by color lightbox -->

    #include ( "templates/commonjsfiles.vm" )
    <!--<script language="javascript" type="text/javascript" src="/js/jquery-ui-1.8.6.custom.min.js"></script>-->
    <script language="javascript" type="text/javascript" src="/js/priceSlider.js"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery.colorbox-min.js"></script>
    <script type="text/javascript" charset="utf-8">
        $(function(){
                $('ul.product-description li').textOverflow();
        });
    </script>

    <script type="text/javascript">
      minPrice        = $minPrice ;
      maxPrice        = $maxPrice ;
      stepPrice       = 10;
      priceUrl             = "$priceUrl";
    </script>

</body>
</html>