Subversion Repositories SmartDukaan

Rev

Rev 15718 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
15718 manas 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/clicks_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($product)?></h2>
19
      </div>
20
    <?php } ?>
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("Clicks Count"); ?></th>
15723 manas 29
        <th><?php echo h("Unique User Count"); ?></th>
30
 
15718 manas 31
      </tr>
32
      <?php foreach ($clicks_count as $key => $value) :?>
33
        <tr>
34
          <th><?php echo h($value['clicks']['brand']);?></th>
35
<!--           <th><?php echo h($value['clicks']['product_name']);?></th> -->
36
<th><?php echo $this->Html->link(__(h($value['clicks']['product_name'])), array('action' => 'clicks_report', $value['clicks']['product_name']));?></th> 
37
          <th><?php echo h($value[0]['count']);?></th>
15723 manas 38
          <th><?php echo h($value[0]['countUserId']);?></th>
15718 manas 39
        </tr>
40
      <?php endforeach ?>
41
      <?php } else{ ?>
42
      <tr>
43
        <th ><?php echo h("Date"); ?></th>
44
        <th><?php echo h("Clicks Count"); ?></th>
15723 manas 45
        <th><?php echo h("Unique User Count"); ?></th>
15718 manas 46
      </tr>
47
      <?php foreach ($product_count as $key => $value) :?>
48
        <tr>
49
          <th><?php echo h($value[0]['date']);?></th>
50
          <th><?php echo h($value[0]['count']);?></th>
15723 manas 51
          <th><?php echo h($value[0]['countUserId']);?></th>
15718 manas 52
        </tr>
53
        <?php endforeach ?>
54
      <?php }?>
55
      </table>                
56
    </div>    
57
  </div>
58
</div>