File: View/Reports/admin_index.ctp

Recommend this page to a friend!
  Classes of Andraž  >  pingvincek  >  View/Reports/admin_index.ctp  >  Download  
File: View/Reports/admin_index.ctp
Role: Example script
Content type: text/plain
Description: Example script
Class: pingvincek
Manage a site for organizing dates between people
Author: By
Last change:
Date: 2 years ago
Size: 1,790 bytes


Class file image Download
<div class="users index">
    <h2>Prijave neprimernih profilov</h2>
echo $this->Paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%')
    <table cellpadding="0" cellspacing="0">
            <th><?php echo $this->Paginator->sort('user_id'); ?></th>
            <th><?php echo $this->Paginator->sort('message'); ?></th>
            <th><?php echo $this->Paginator->sort('created'); ?></th>
= 0;
        foreach (
$reports as $report):
$class = null;
            if (
$i++ % 2 == 0)
$class = ' class="altrow"';
<tr<?php echo $class; ?>>
                    <?php echo $this->Html->link($report['Report']['user_id'], array('controller' => 'users', 'action' => 'view', $report['Report']['user_id'], 'admin' => FALSE)); ?>
                    <?php echo $this->Html->link($report['Report']['message'], array('action' => 'view', $report['Report']['id'])); ?>
                    <?php echo $this->Time->format($format = 'H:i:s d-m-Y', $report['Report']['created']); ?>
        <?php endforeach; ?>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< ' . __('previous'), array(), null, array('class' => 'disabled')); ?>
| <?php echo $this->Paginator->numbers(); ?>
<?php echo $this->Paginator->next(__('next') . ' >>', array(), null, array('class' => 'disabled')); ?>

For more information send a message to info at phpclasses dot org.