Subversion Repositories SmartDukaan

Rev

Rev 14394 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="container">
        <div class="row">
                <div class="col-lg-12">
                        <h3>List of registered users</h3>
                        <?php if(!empty($users)):?>
                        <table class="table table-striped">
                                <thead>
                                        <tr>
                                                <th>Email</th>
                                                <th>Name</th>
                                                <th>Group</th>
                                                <th>Created</th>
                                                <th>Actions</th>
                                        </tr>
                                </thead>
                                <tbody>
                                <?php foreach($users AS $user):?>
                                        <tr>
                                                <td><?php echo $user['User']['email'];?></td>
                                                <td><?php echo $user['User']['first_name'];?></td>
                                                <td><?php echo $groups[$user['User']['group_id']];?></td>
                                                <td><?php echo $user['User']['created'];?></td>
                                                <td class="actions">
                                                        <?php echo $this->Html->link(__('View'), array('action' => 'view', $user['User']['id'])); ?>
                                                        <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $user['User']['id'])); ?>
                                                </td>
                                        </tr>
                                <?php endforeach;?>
                                </tbody>
                        </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>
                        <?php endif;?>
                </div>          
        </div>
</div>