Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14518 anikendra 1
<div class="devices index">
2
	<h2><?php echo __('Devices'); ?></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('user_id'); ?></th>
7
			<th><?php echo $this->Paginator->sort('versioncode'); ?></th>
8
			<th><?php echo $this->Paginator->sort('versionname'); ?></th>
9
			<th><?php echo $this->Paginator->sort('osversion'); ?></th>
10
			<th><?php echo $this->Paginator->sort('imeinumber'); ?></th>
11
			<th><?php echo $this->Paginator->sort('manufacturer'); ?></th>
12
			<th><?php echo $this->Paginator->sort('model'); ?></th>
13
			<th><?php echo $this->Paginator->sort('brand'); ?></th>
14
			<th><?php echo $this->Paginator->sort('created'); ?></th>
15
			<th><?php echo $this->Paginator->sort('modified'); ?></th>
16
			<th class="actions"><?php echo __('Actions'); ?></th>
17
	</tr>
18
	<?php foreach ($devices as $device): ?>
19
	<tr>
20
		<td><?php echo h($device['Device']['id']); ?>&nbsp;</td>
21
		<td>
22
			<?php echo $this->Html->link($device['User']['username'], array('controller' => 'users', 'action' => 'view', $device['User']['id'])); ?>
23
		</td>
24
		<td><?php echo h($device['Device']['versioncode']); ?>&nbsp;</td>
25
		<td><?php echo h($device['Device']['versionname']); ?>&nbsp;</td>
26
		<td><?php echo h($device['Device']['osversion']); ?>&nbsp;</td>
27
		<td><?php echo h($device['Device']['imeinumber']); ?>&nbsp;</td>
28
		<td><?php echo h($device['Device']['manufacturer']); ?>&nbsp;</td>
29
		<td><?php echo h($device['Device']['model']); ?>&nbsp;</td>
30
		<td><?php echo h($device['Device']['brand']); ?>&nbsp;</td>
31
		<td><?php echo h($device['Device']['created']); ?>&nbsp;</td>
32
		<td><?php echo h($device['Device']['modified']); ?>&nbsp;</td>
33
		<td class="actions">
34
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $device['Device']['id'])); ?>
35
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $device['Device']['id'])); ?>
36
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $device['Device']['id']), null, __('Are you sure you want to delete # %s?', $device['Device']['id'])); ?>
37
		</td>
38
	</tr>
39
<?php endforeach; ?>
40
	</table>
41
	<p>
42
	<?php
43
	echo $this->Paginator->counter(array(
44
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
45
	));
46
	?>	</p>
47
	<div class="paging">
48
	<?php
49
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
50
		echo $this->Paginator->numbers(array('separator' => ''));
51
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
52
	?>
53
	</div>
54
</div>
55
<div class="actions">
56
	<h3><?php echo __('Actions'); ?></h3>
57
	<ul>
58
		<li><?php echo $this->Html->link(__('New Device'), array('action' => 'add')); ?></li>
59
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
60
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
61
	</ul>
62
</div>