Subversion Repositories SmartDukaan

Rev

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

<div class="container">
        <div class="row">
                <div class="col-lg-12 table-responsive">
                        <div class="searchbar">
                                <?php echo $this->Form->create('Report');?>
                                <!-- <form class="navbar-form" role="search" method="GET" name="search"> -->
                                <div class="input-group col-xs-12 text-left" id="remote">
                                        <?php echo $this->Form->input('date',array('type'=>'date'));?>
                                    <!-- <input autocomplete="off" type="text" class="form-control" placeholder="Search for url" name="q" id="srch-term" value="<?php if(isset($q)){echo $q;}?>">                       -->
                                    <div class="input-group-btn w25px">
                                        <button class="btn btn-xs btn-default" type="submit">Submit</button>
                                        <button class="btn btn-xs btn-default" type="reset" onclick="reload()">Reset</button>
                                    </div>
                                </div>
                               <?php echo $this->Form->end();?>
                        <!-- </form> -->
                        </div>
                        <h3><?php echo __('Activations '); ?> <?php echo "($date)";?></h3>
                        <?php foreach ($activations as $activation): ?>
                        <?php $count+=$activation[0]['count'];?>
                        <?php endforeach; ?>
                        <h4><?php echo __('Total Activations '); ?> <?php echo h($count);?></h4>
                        <?php foreach ($agentActivations as $agentActivation): ?>
                        <td><?php echo h($agentActivation['a']['name'].'('.$agentActivation[0]['count'].')'); ?></td>
                        <?php endforeach; ?>    
                        <table class="table table-striped">
                        <tr>
                                        <th><?php echo __('date'); ?></th>
                                        <th><?php echo __('referrer'); ?></th>
                                        <th><?php echo __('utm_campaign'); ?></th>
                                        <th><?php echo __('name'); ?></th>
                                        <th><?php echo __('city'); ?></th>
                                        <th><?php echo __('count'); ?></th>
                        </tr>
                        <?php foreach ($activations as $activation): ?>
                        <tr>
                                <td><?php echo h($activation[0]['date']); ?>&nbsp;</td>                         
                                <td><?php echo h($activation['users']['referrer']); ?>&nbsp;</td>
                                <td><?php echo h($activation['users']['utm_campaign']); ?>&nbsp;</td>
                                <td><?php echo h($activation[1]); ?>&nbsp;</td>
                                <td><?php echo h($activation[2]); ?>&nbsp;</td>
                                <td><?php echo h($activation[0]['count']); ?>&nbsp;</td>
                        </tr>
                        <?php endforeach; ?>
                        </table>                                                
                </div>
        </div>
</div>
<script type="text/javascript">
function reload(){
        document.location = '/admin/reports/activations';
}
</script>