Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="container">
  <div class="row">
    <div class="col-lg-12 table-responsive">
    <?php if(isset($clicks_count)) :?>
    <div class="searchbar">
    <form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/reports/productviews_report/search">
      <div class="input-group col-xs-6 text-left">
            Date<input type="date" name="date" value="Date"/>
            &nbsp;&nbsp;&nbsp;
      <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
        </div>
        </form>
      </div>
    </div>    
    </div>
    <?php else : ?>
      <div>
        <h2>Product Searched For: <?php echo($map[$product]['name'])?></h2>
      </div>
    <?php endif; ?>

    <div class="table-responsive">
    <table id="example" class="display table table-striped" cellspacing="0" width="70%">
      <?php if(isset($clicks_count)) {?>
      <tr>
        <th ><?php echo h('Brand'); ?></th>
        <th ><?php echo h("Product Name"); ?></th>
        <th><?php echo h("View Count"); ?></th>
        <th><?php echo h("Unique User Count"); ?></th>

      </tr>
      <?php foreach ($clicks_count as $key => $value) :?>
        <tr>
          <th><?php echo h($map[$value[0]['skuBundleId']]['brand']);?></th>
          <th><?php echo $this->Html->link(__(h($map[$value[0]['skuBundleId']]['name'])), array('action' => 'productviews_report', $value[0]['skuBundleId']));?></th> 
          <th><?php echo h($value[0]['count']);?></th>
          <th><?php echo h($value[0]['countUserId']);?></th>
        </tr>
      <?php endforeach ?>
      <?php } else{ ?>
      <tr>
        <th ><?php echo h("Date"); ?></th>
        <th><?php echo h("View Count"); ?></th>
        <th><?php echo h("Unique User Count"); ?></th>
      </tr>
      <?php foreach ($product_count as $key => $value) :?>
        <tr>
          <th><?php echo h($value[0]['date']);?></th>
          <th><?php echo h($value[0]['count']);?></th>
          <th><?php echo h($value[0]['countUserId']);?></th>
        </tr>
        <?php endforeach ?>
      <?php }?>
      </table>                
    </div>    
  </div>
</div>