Subversion Repositories SmartDukaan

Rev

Rev 15718 | Blame | Compare with Previous | 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/clicks_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($product)?></h2>
      </div>
    <?php } ?>

    <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("Clicks Count"); ?></th>
        <th><?php echo h("Unique User Count"); ?></th>

      </tr>
      <?php foreach ($clicks_count as $key => $value) :?>
        <tr>
          <th><?php echo h($value['clicks']['brand']);?></th>
<!--           <th><?php echo h($value['clicks']['product_name']);?></th> -->
<th><?php echo $this->Html->link(__(h($value['clicks']['product_name'])), array('action' => 'clicks_report', $value['clicks']['product_name']));?></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("Clicks 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>