|
| 1 | +<div class="companies index"> |
| 2 | + <h2><?php echo __('Companies'); ?></h2> |
| 3 | + <table cellpadding="0" cellspacing="0"> |
| 4 | + <tr> |
| 5 | + <th><?php echo $this->Paginator->sort('id'); ?></th> |
| 6 | + <th><?php echo $this->Paginator->sort('name'); ?></th> |
| 7 | + <th><?php echo $this->Paginator->sort('street'); ?></th> |
| 8 | + <th><?php echo $this->Paginator->sort('city'); ?></th> |
| 9 | + <th><?php echo $this->Paginator->sort('state'); ?></th> |
| 10 | + <th><?php echo $this->Paginator->sort('country'); ?></th> |
| 11 | + <th><?php echo $this->Paginator->sort('zip'); ?></th> |
| 12 | + <th><?php echo $this->Paginator->sort('latitude'); ?></th> |
| 13 | + <th><?php echo $this->Paginator->sort('longitude'); ?></th> |
| 14 | + <th><?php echo $this->Paginator->sort('website'); ?></th> |
| 15 | + <th><?php echo $this->Paginator->sort('user_count'); ?></th> |
| 16 | + <th><?php echo $this->Paginator->sort('facebook_id'); ?></th> |
| 17 | + <th><?php echo $this->Paginator->sort('created'); ?></th> |
| 18 | + <th><?php echo $this->Paginator->sort('updated'); ?></th> |
| 19 | + <th class="actions"><?php echo __('Actions'); ?></th> |
| 20 | + </tr> |
| 21 | + <?php foreach ($companies as $company): ?> |
| 22 | + <tr> |
| 23 | + <td><?php echo h($company['Company']['id']); ?> </td> |
| 24 | + <td><?php echo h($company['Company']['name']); ?> </td> |
| 25 | + <td><?php echo h($company['Company']['street']); ?> </td> |
| 26 | + <td><?php echo h($company['Company']['city']); ?> </td> |
| 27 | + <td><?php echo h($company['Company']['state']); ?> </td> |
| 28 | + <td><?php echo h($company['Company']['country']); ?> </td> |
| 29 | + <td><?php echo h($company['Company']['zip']); ?> </td> |
| 30 | + <td><?php echo h($company['Company']['latitude']); ?> </td> |
| 31 | + <td><?php echo h($company['Company']['longitude']); ?> </td> |
| 32 | + <td><?php echo h($company['Company']['website']); ?> </td> |
| 33 | + <td><?php echo h($company['Company']['user_count']); ?> </td> |
| 34 | + <td><?php echo h($company['Company']['facebook_id']); ?> </td> |
| 35 | + <td><?php echo h($company['Company']['created']); ?> </td> |
| 36 | + <td><?php echo h($company['Company']['updated']); ?> </td> |
| 37 | + <td class="actions"> |
| 38 | + <?php echo $this->Html->link(__('View'), array('action' => 'view', $company['Company']['id'])); ?> |
| 39 | + <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $company['Company']['id'])); ?> |
| 40 | + <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $company['Company']['id']), null, __('Are you sure you want to delete # %s?', $company['Company']['id'])); ?> |
| 41 | + </td> |
| 42 | + </tr> |
| 43 | +<?php endforeach; ?> |
| 44 | + </table> |
| 45 | + <p> |
| 46 | + <?php |
| 47 | + echo $this->Paginator->counter(array( |
| 48 | + 'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}') |
| 49 | + )); |
| 50 | + ?> </p> |
| 51 | + <div class="paging"> |
| 52 | + <?php |
| 53 | + echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled')); |
| 54 | + echo $this->Paginator->numbers(array('separator' => '')); |
| 55 | + echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled')); |
| 56 | + ?> |
| 57 | + </div> |
| 58 | +</div> |
| 59 | +<div class="actions"> |
| 60 | + <h3><?php echo __('Actions'); ?></h3> |
| 61 | + <ul> |
| 62 | + <li><?php echo $this->Html->link(__('New Company'), array('action' => 'add')); ?></li> |
| 63 | + <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li> |
| 64 | + <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li> |
| 65 | + </ul> |
| 66 | +</div> |
0 commit comments