Subversion Repositories SmartDukaan

Rev

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

<!-- template for deals tab -->
<?php if($showCategories):?>
<ul class="nav nav-tabs catselect navbar-fixed">
    <!-- <li class="<?php if(!isset($id)):?>active<?php endif;?> col-xs-4"><a href="/deals/mine">All</a></li> -->
    <li class=" col-xs-6">
      <a href="/category/3"><img src="/img/mobile.png" alt="" />&nbsp;&nbsp;Mobiles</a></li>
    <li class=" col-xs-6">
      <a href="/category/5"><img src="/img/tablet.png" alt="" />&nbsp;&nbsp;Tablets</a></li>
  </ul>
<?php endif;?>
<?php echo $this->element('unlikemodal');?>
<?php $count =1;?>
<?php if(!empty($deals)):?>
    <?php foreach($deals AS $deal):?>
    <?php //debug($deal);?>
    <div class="row card">      
      <div class="col-xs-4 productthumb viewproduct" data-id="<?php echo $count;?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
        <img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['thumbnail'];?>&h=100" />
      </div>
      <div class="col-xs-4 productdetails" data-id="<?php echo $count;?>">
        <h5 class="producttitle viewproduct" data-id="<?php echo $count;?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>"><?php echo $deal['source_product_name'];?></h5>
        <!--<div class="viewproduct product_short_description <?php //if(!isset($deal['tagline'])):?>hidden<?php //endif;?>" data-id="<?php //echo $deal['_id'];?>" data-source="<?php //echo $deal['source_id'];?>"  data-url="<?php //echo $deal['marketPlaceUrl'];?>" data-price="<?php //echo intval($deal['available_price']);?>">
          <?php //echo $deal['tagline'];?>
        </div> -->
        <div class="product_prices viewproduct" data-id="<?php echo $count;?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>">
          <div>
            <span class="rupee"></span><span class="product_price"><?php echo intval($deal['available_price']);?></span>
            <span><img src="<?php echo $storeicons[$deal['source_id']]['logo'];?>" alt="/"></span>
            <br>
          </div>
        </div> 
        <!-- <div class="priceupdatedtime">
          <span class="clock"></span><time class="timeago" timestamp="<?php //echo $deal['priceUpdatedOn'];?>" datetime="<?php //echo date(DATE_ATOM,$deal['priceUpdatedOn']/1000);?>"><?php //echo date(DATE_ATOM,$deal['priceUpdatedOn']/1000);?></time>      
        </div> -->
        <!--
        <div class="dealoffer <?php //if(!isset($deal['offer']) || empty($deal['offer'])):?>hidden<?php //endif;?> row">
            <div class="col-xs-3 offerlabel">OFFER</div>
            <div class="<?php //if(strlen($deal['offer'])>140):?>hasmoretext<?php //endif;?> col-xs-12 offertext" data-fulltext="<?php //echo $deal['offer'];?>">              
              <?php //echo $this->Text->truncate($deal['offer'],140);?>
            </div>
        </div> 
        --> 
      </div>
      <div class="col-xs-4 viewproduct" data-id="<?php echo $count;?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>">
        <div>
        <span class="pull-right arrowright" style="width:75px"></span>
        </div>
        </div>
    </div> 
    <?php $count = $count +1;?>      
  <?php endforeach;?>    
  <?php if($this->params->controller=='store_products'):?>
    <p class="text-center"><a class="btn btn-primary infitescroller" href="/store_products/getdeals/?page=<?php if ($page=='home'): echo 2;?><?php else: echo $page+1;?><?php endif;?>&sort=<?php echo $sort;?>&direction=<?php echo $direction;?>">Load More</a></p>
  <?php else:?>
    <p class="text-center"><a class="btn btn-primary infitescroller" href="/categories/getdeals/<?php echo $id;?>/?page=<?php if ($page=='home'): echo 2;?><?php else: echo $page+1;?><?php endif;?>&sort=<?php echo $sort;?>&direction=<?php echo $direction;?>">Load More</a></p>
  <?php endif;?>
<?php else:?>
  <?php if($page==1):?>
    <h4>The content you requested couldn't be found</h4>
    <div class="text-center">
      <button type="button" class="btn btn-xs btn-primary refresh">Retry</button>
    </div>
  <?php endif;?>
<?php endif;?>