Subversion Repositories SmartDukaan

Rev

Rev 17298 | 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">
                                <form class="navbar-form" role="search" method="GET" name="search">
                                <div class="input-group col-xs-12 text-right" id="remote">
                                    <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-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
                                    </div>
                                </div>
                        </form>
                        </div>
                        <h3>Browsing history</h3>
                        <table class="table table-striped">
                                <tr>
                                        <th>Time<?php //echo $this->Paginator->sort('time'); ?></th>
                                        <th>UserId<?php //echo $this->Paginator->sort('user_id'); ?></th>
                                        <th>Url<?php //echo $this->Paginator->sort('url'); ?></th>                                      
                                        <th>Ip<?php //echo $this->Paginator->sort('ip'); ?></th>
                                </tr>
                                <?php if(!empty($userUrls)):?>
                                        <?php foreach ($userUrls as $url): ?>
                                        <tr>    
                                                <td><?php echo date('d-m-Y H:i:s',$url['created']/1000); ?></td>
                                                <!-- <td><?php //echo h($url['UserUrl']['id']); ?>&nbsp;</td> -->
                                                <td>
                                                        <?php echo $this->Html->link($url['email'].' ('.$url['user_id'].')', array('controller' => 'user_urls', 'action' => 'by', $url['user_id'])); ?>
                                                </td>
                                                <td><?php echo h($url['url']); ?></td>                                  
                                                <td><?php echo h($url['ip']); ?></td>                                   
                                        </tr>
                                <?php endforeach; ?>
                        <?php endif;?>
                        </table>
                        <p>
                                <?php
                                /*echo $this->Paginator->counter(array(
                                'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
                                ));*/
                                ?>      
                        </p>
                        <div class="paging">
                        <?php
                                /*echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
                                echo $this->Paginator->numbers(array('separator' => ''));
                                echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));*/
                        ?>
                        </div>
                        <nav>
                          <ul class="pager">
                            <?php if($page>1):?><li><a href="<?php echo '?page='.($page-1);?><?php if(isset($q)):?>&q=<?php echo $q;?><?php endif;?>">Previous</a></li><?php endif;?>
                            <li><a href="<?php echo '?page='.($page+1);?><?php if(isset($q)):?>&q=<?php echo $q;?><?php endif;?>">Next</a></li>
                          </ul>
                        </nav>
                </div>
        </div>
</div>