Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15403 manish.sha 1
<div class="offers index">
2
	<h2><?php echo __('Offers'); ?></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('starttime'); ?></th>
7
			<th><?php echo $this->Paginator->sort('endtime'); ?></th>
8
			<th><?php echo $this->Paginator->sort('url'); ?></th>
9
			<th><?php echo $this->Paginator->sort('title'); ?></th>
10
			<th><?php echo $this->Paginator->sort('description'); ?></th>
11
			<th><?php echo $this->Paginator->sort('category'); ?></th>
12
			<th><?php echo $this->Paginator->sort('img730x150'); ?></th>
13
			<th><?php echo $this->Paginator->sort('img482x234'); ?></th>
14
			<th><?php echo $this->Paginator->sort('img720x280'); ?></th>
15
			<th><?php echo $this->Paginator->sort('img540x210'); ?></th>
16
			<th><?php echo $this->Paginator->sort('img360x140'); ?></th>
17
			<th><?php echo $this->Paginator->sort('img270x105'); ?></th>
18
			<th><?php echo $this->Paginator->sort('created'); ?></th>
19
			<th><?php echo $this->Paginator->sort('modified'); ?></th>
20
			<th class="actions"><?php echo __('Actions'); ?></th>
21
	</tr>
22
	<?php foreach ($offers as $offer): ?>
23
	<tr>
24
		<td><?php echo h($offer['Offer']['id']); ?>&nbsp;</td>
25
		<td><?php echo h($offer['Offer']['starttime']); ?>&nbsp;</td>
26
		<td><?php echo h($offer['Offer']['endtime']); ?>&nbsp;</td>
27
		<td><?php echo h($offer['Offer']['url']); ?>&nbsp;</td>
28
		<td><?php echo h($offer['Offer']['title']); ?>&nbsp;</td>
29
		<td><?php echo h($offer['Offer']['description']); ?>&nbsp;</td>
30
		<td><?php echo h($offer['Offer']['category']); ?>&nbsp;</td>
31
		<td><?php echo h($offer['Offer']['img730x150']); ?>&nbsp;</td>
32
		<td><?php echo h($offer['Offer']['img482x234']); ?>&nbsp;</td>
33
		<td><?php echo h($offer['Offer']['img720x280']); ?>&nbsp;</td>
34
		<td><?php echo h($offer['Offer']['img540x210']); ?>&nbsp;</td>
35
		<td><?php echo h($offer['Offer']['img360x140']); ?>&nbsp;</td>
36
		<td><?php echo h($offer['Offer']['img270x105']); ?>&nbsp;</td>
37
		<td><?php echo h($offer['Offer']['created']); ?>&nbsp;</td>
38
		<td><?php echo h($offer['Offer']['modified']); ?>&nbsp;</td>
39
		<td class="actions">
40
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $offer['Offer']['id'])); ?>
41
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $offer['Offer']['id'])); ?>
42
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $offer['Offer']['id']), null, __('Are you sure you want to delete # %s?', $offer['Offer']['id'])); ?>
43
		</td>
44
	</tr>
45
<?php endforeach; ?>
46
	</table>
47
	<p>
48
	<?php
49
	echo $this->Paginator->counter(array(
50
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
51
	));
52
	?>	</p>
53
	<div class="paging">
54
	<?php
55
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
56
		echo $this->Paginator->numbers(array('separator' => ''));
57
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
58
	?>
59
	</div>
60
</div>
61
<div class="actions">
62
	<h3><?php echo __('Actions'); ?></h3>
63
	<ul>
64
		<li><?php echo $this->Html->link(__('New Offer'), array('action' => 'add')); ?></li>
65
	</ul>
66
</div>