Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="container">
        <div class="row">
                <div class="col-lg-12 table-responsive">

                        <h3><?php if(!empty($date_to) || !empty($date_from)){echo __('Activations ')."($date_from     to    $date_to)";}else{}?></h3>
                        <form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/callhistories/activations">

                        <div class="input-group col-xs-6 text-left">
                                Date From<input type="date" name="date_from" value="Date"/>
                                Date To<input type="date" name="date_to" value="Date"/>
                    <div class="input-group-btn w25px">
                        <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
                    </div>
            </div>
                <br><br>
            </form>
                        <h3><?php if(sizeof($activations)==0) {echo h("No result");} else{?></h3>
                        <?php foreach ($activations as $activation): ?>
                        <?php $count+=$activation[0]['count'];?>
                        <?php endforeach; ?>
                        <h4><?php echo __('Total Activations '); ?> <?php echo h($count);?></h4>
                         <table class="table table-striped">
                        <tr>
                                        <th><?php echo __('Name'); ?></th>
                                        <th><?php echo __('Total Activations'); ?></th>
                        </tr>
                        <?php foreach ($agentActivations as $agentActivation): ?>

                        <tr>
                                <td><?php echo h($agentActivation['a']['name']); ?>&nbsp;</td>                          
                                <td><?php echo h($agentActivation[0]['count']); ?>&nbsp;</td>
                        </tr>
                        <?php endforeach; ?>
                        </table>                                
                        <?php }?>
                </div>
        </div>
</div>
<script type="text/javascript">
function reload(){
        document.location = '/admin/reports/activations';
}
</script>