Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15901 anikendra 1
<div class="container">
2
  <div class="row">
3
    <div class="col-lg-12 table-responsive">
4
    <?php if(isset($clicks_count)) :?>
5
    <div class="searchbar">
6
    <form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/reports/productviews_report/search">
7
      <div class="input-group col-xs-6 text-left">
8
            Date<input type="date" name="date" value="Date"/>
9
            &nbsp;&nbsp;&nbsp;
10
      <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
11
        </div>
12
        </form>
13
      </div>
14
    </div>    
15
    </div>
16
    <?php else : ?>
17
      <div>
18
        <h2>Product Searched For: <?php echo($map[$product]['name'])?></h2>
19
      </div>
20
    <?php endif; ?>
21
 
22
    <div class="table-responsive">
23
    <table id="example" class="display table table-striped" cellspacing="0" width="70%">
24
      <?php if(isset($clicks_count)) {?>
25
      <tr>
26
        <th ><?php echo h('Brand'); ?></th>
27
        <th ><?php echo h("Product Name"); ?></th>
28
        <th><?php echo h("View Count"); ?></th>
29
        <th><?php echo h("Unique User Count"); ?></th>
30
 
31
      </tr>
32
      <?php foreach ($clicks_count as $key => $value) :?>
33
        <tr>
34
          <th><?php echo h($map[$value[0]['skuBundleId']]['brand']);?></th>
35
          <th><?php echo $this->Html->link(__(h($map[$value[0]['skuBundleId']]['name'])), array('action' => 'productviews_report', $value[0]['skuBundleId']));?></th> 
36
          <th><?php echo h($value[0]['count']);?></th>
37
          <th><?php echo h($value[0]['countUserId']);?></th>
38
        </tr>
39
      <?php endforeach ?>
40
      <?php } else{ ?>
41
      <tr>
42
        <th ><?php echo h("Date"); ?></th>
43
        <th><?php echo h("View Count"); ?></th>
44
        <th><?php echo h("Unique User Count"); ?></th>
45
      </tr>
46
      <?php foreach ($product_count as $key => $value) :?>
47
        <tr>
48
          <th><?php echo h($value[0]['date']);?></th>
49
          <th><?php echo h($value[0]['count']);?></th>
50
          <th><?php echo h($value[0]['countUserId']);?></th>
51
        </tr>
52
        <?php endforeach ?>
53
      <?php }?>
54
      </table>                
55
    </div>    
56
  </div>
57
</div>