| 12345 |
anikendra |
1 |
<div class="users index">
|
|
|
2 |
<h2><?php echo __('Users'); ?></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('facebook_id'); ?></th>
|
|
|
7 |
<th><?php echo $this->Paginator->sort('twitter_id'); ?></th>
|
|
|
8 |
<th><?php echo $this->Paginator->sort('first_name'); ?></th>
|
|
|
9 |
<th><?php echo $this->Paginator->sort('last_name'); ?></th>
|
|
|
10 |
<th><?php echo $this->Paginator->sort('zipcode'); ?></th>
|
|
|
11 |
<th><?php echo $this->Paginator->sort('dob'); ?></th>
|
|
|
12 |
<th><?php echo $this->Paginator->sort('username'); ?></th>
|
|
|
13 |
<th><?php echo $this->Paginator->sort('email'); ?></th>
|
|
|
14 |
<th><?php echo $this->Paginator->sort('password'); ?></th>
|
|
|
15 |
<th><?php echo $this->Paginator->sort('gender'); ?></th>
|
|
|
16 |
<th><?php echo $this->Paginator->sort('address_1'); ?></th>
|
|
|
17 |
<th><?php echo $this->Paginator->sort('address_2'); ?></th>
|
|
|
18 |
<th><?php echo $this->Paginator->sort('city'); ?></th>
|
|
|
19 |
<th><?php echo $this->Paginator->sort('state'); ?></th>
|
|
|
20 |
<th><?php echo $this->Paginator->sort('country'); ?></th>
|
|
|
21 |
<th><?php echo $this->Paginator->sort('user_timezone'); ?></th>
|
|
|
22 |
<th><?php echo $this->Paginator->sort('auth_token'); ?></th>
|
|
|
23 |
<th><?php echo $this->Paginator->sort('twitter_token'); ?></th>
|
|
|
24 |
<th><?php echo $this->Paginator->sort('twitter_secret'); ?></th>
|
|
|
25 |
<th><?php echo $this->Paginator->sort('twitter_screen_name'); ?></th>
|
|
|
26 |
<th><?php echo $this->Paginator->sort('status'); ?></th>
|
|
|
27 |
<th><?php echo $this->Paginator->sort('created'); ?></th>
|
|
|
28 |
<th><?php echo $this->Paginator->sort('modified'); ?></th>
|
|
|
29 |
<th><?php echo $this->Paginator->sort('group_id'); ?></th>
|
|
|
30 |
<th><?php echo $this->Paginator->sort('active'); ?></th>
|
|
|
31 |
<th><?php echo $this->Paginator->sort('activation_code'); ?></th>
|
|
|
32 |
<th><?php echo $this->Paginator->sort('password_reset'); ?></th>
|
|
|
33 |
<th><?php echo $this->Paginator->sort('plan'); ?></th>
|
|
|
34 |
<th><?php echo $this->Paginator->sort('demo_valid_till'); ?></th>
|
|
|
35 |
<th><?php echo $this->Paginator->sort('premium_valid_till'); ?></th>
|
|
|
36 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
|
|
37 |
</tr>
|
|
|
38 |
<?php
|
|
|
39 |
foreach ($users as $user): ?>
|
|
|
40 |
<tr>
|
|
|
41 |
<td><?php echo h($user['User']['id']); ?> </td>
|
|
|
42 |
<td><?php echo h($user['User']['facebook_id']); ?> </td>
|
|
|
43 |
<td><?php echo h($user['User']['twitter_id']); ?> </td>
|
|
|
44 |
<td><?php echo h($user['User']['first_name']); ?> </td>
|
|
|
45 |
<td><?php echo h($user['User']['last_name']); ?> </td>
|
|
|
46 |
<td><?php echo h($user['User']['zipcode']); ?> </td>
|
|
|
47 |
<td><?php echo h($user['User']['dob']); ?> </td>
|
|
|
48 |
<td><?php echo h($user['User']['username']); ?> </td>
|
|
|
49 |
<td><?php echo h($user['User']['email']); ?> </td>
|
|
|
50 |
<td><?php echo h($user['User']['password']); ?> </td>
|
|
|
51 |
<td><?php echo h($user['User']['gender']); ?> </td>
|
|
|
52 |
<td><?php echo h($user['User']['address_1']); ?> </td>
|
|
|
53 |
<td><?php echo h($user['User']['address_2']); ?> </td>
|
|
|
54 |
<td><?php echo h($user['User']['city']); ?> </td>
|
|
|
55 |
<td><?php echo h($user['User']['state']); ?> </td>
|
|
|
56 |
<td><?php echo h($user['User']['country']); ?> </td>
|
|
|
57 |
<td><?php echo h($user['User']['user_timezone']); ?> </td>
|
|
|
58 |
<td><?php echo h($user['User']['auth_token']); ?> </td>
|
|
|
59 |
<td><?php echo h($user['User']['twitter_token']); ?> </td>
|
|
|
60 |
<td><?php echo h($user['User']['twitter_secret']); ?> </td>
|
|
|
61 |
<td><?php echo h($user['User']['twitter_screen_name']); ?> </td>
|
|
|
62 |
<td><?php echo h($user['User']['status']); ?> </td>
|
|
|
63 |
<td><?php echo h($user['User']['created']); ?> </td>
|
|
|
64 |
<td><?php echo h($user['User']['modified']); ?> </td>
|
|
|
65 |
<td>
|
|
|
66 |
<?php echo $this->Html->link($user['Group']['name'], array('controller' => 'groups', 'action' => 'view', $user['Group']['id'])); ?>
|
|
|
67 |
</td>
|
|
|
68 |
<td><?php echo h($user['User']['active']); ?> </td>
|
|
|
69 |
<td><?php echo h($user['User']['activation_code']); ?> </td>
|
|
|
70 |
<td><?php echo h($user['User']['password_reset']); ?> </td>
|
|
|
71 |
<td><?php echo h($user['User']['plan']); ?> </td>
|
|
|
72 |
<td><?php echo h($user['User']['demo_valid_till']); ?> </td>
|
|
|
73 |
<td><?php echo h($user['User']['premium_valid_till']); ?> </td>
|
|
|
74 |
<td class="actions">
|
|
|
75 |
<?php echo $this->Html->link(__('View'), array('action' => 'view', $user['User']['id'])); ?>
|
|
|
76 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $user['User']['id'])); ?>
|
|
|
77 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id'])); ?>
|
|
|
78 |
</td>
|
|
|
79 |
</tr>
|
|
|
80 |
<?php endforeach; ?>
|
|
|
81 |
</table>
|
|
|
82 |
<p>
|
|
|
83 |
<?php
|
|
|
84 |
echo $this->Paginator->counter(array(
|
|
|
85 |
'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
|
|
|
86 |
));
|
|
|
87 |
?> </p>
|
|
|
88 |
|
|
|
89 |
<div class="paging">
|
|
|
90 |
<?php
|
|
|
91 |
echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
|
|
|
92 |
echo $this->Paginator->numbers(array('separator' => ''));
|
|
|
93 |
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
|
|
|
94 |
?>
|
|
|
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
<div class="actions">
|
|
|
98 |
<h3><?php echo __('Actions'); ?></h3>
|
|
|
99 |
<ul>
|
|
|
100 |
<li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?></li>
|
|
|
101 |
<li><?php echo $this->Html->link(__('List Groups'), array('controller' => 'groups', 'action' => 'index')); ?> </li>
|
|
|
102 |
<li><?php echo $this->Html->link(__('New Group'), array('controller' => 'groups', 'action' => 'add')); ?> </li>
|
|
|
103 |
<li><?php echo $this->Html->link(__('List Profiles'), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
|
|
|
104 |
<li><?php echo $this->Html->link(__('New Profile'), array('controller' => 'profiles', 'action' => 'add')); ?> </li>
|
|
|
105 |
<li><?php echo $this->Html->link(__('List Publishers'), array('controller' => 'publishers', 'action' => 'index')); ?> </li>
|
|
|
106 |
<li><?php echo $this->Html->link(__('New Publisher'), array('controller' => 'publishers', 'action' => 'add')); ?> </li>
|
|
|
107 |
</ul>
|
|
|
108 |
</div>
|