Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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']); ?>&nbsp;</td>
42
		<td><?php echo h($user['User']['facebook_id']); ?>&nbsp;</td>
43
		<td><?php echo h($user['User']['twitter_id']); ?>&nbsp;</td>
44
		<td><?php echo h($user['User']['first_name']); ?>&nbsp;</td>
45
		<td><?php echo h($user['User']['last_name']); ?>&nbsp;</td>
46
		<td><?php echo h($user['User']['zipcode']); ?>&nbsp;</td>
47
		<td><?php echo h($user['User']['dob']); ?>&nbsp;</td>
48
		<td><?php echo h($user['User']['username']); ?>&nbsp;</td>
49
		<td><?php echo h($user['User']['email']); ?>&nbsp;</td>
50
		<td><?php echo h($user['User']['password']); ?>&nbsp;</td>
51
		<td><?php echo h($user['User']['gender']); ?>&nbsp;</td>
52
		<td><?php echo h($user['User']['address_1']); ?>&nbsp;</td>
53
		<td><?php echo h($user['User']['address_2']); ?>&nbsp;</td>
54
		<td><?php echo h($user['User']['city']); ?>&nbsp;</td>
55
		<td><?php echo h($user['User']['state']); ?>&nbsp;</td>
56
		<td><?php echo h($user['User']['country']); ?>&nbsp;</td>
57
		<td><?php echo h($user['User']['user_timezone']); ?>&nbsp;</td>
58
		<td><?php echo h($user['User']['auth_token']); ?>&nbsp;</td>
59
		<td><?php echo h($user['User']['twitter_token']); ?>&nbsp;</td>
60
		<td><?php echo h($user['User']['twitter_secret']); ?>&nbsp;</td>
61
		<td><?php echo h($user['User']['twitter_screen_name']); ?>&nbsp;</td>
62
		<td><?php echo h($user['User']['status']); ?>&nbsp;</td>
63
		<td><?php echo h($user['User']['created']); ?>&nbsp;</td>
64
		<td><?php echo h($user['User']['modified']); ?>&nbsp;</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']); ?>&nbsp;</td>
69
		<td><?php echo h($user['User']['activation_code']); ?>&nbsp;</td>
70
		<td><?php echo h($user['User']['password_reset']); ?>&nbsp;</td>
71
		<td><?php echo h($user['User']['plan']); ?>&nbsp;</td>
72
		<td><?php echo h($user['User']['demo_valid_till']); ?>&nbsp;</td>
73
		<td><?php echo h($user['User']['premium_valid_till']); ?>&nbsp;</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>