Subversion Repositories SmartDukaan

Rev

Rev 14509 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14509 anikendra 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-3">
4
			<?php echo $this->Element('adminactions');?>
5
		</div>
6
		<div class="col-lg-9">
7
			<h2><?php echo __('Campaigns'); ?></h2>
8
			<table cellpadding="0" cellspacing="0">
9
			<tr>
10
					<th><?php echo $this->Paginator->sort('id'); ?></th>
11
					<th><?php echo $this->Paginator->sort('name'); ?></th>
12
					<th><?php echo $this->Paginator->sort('url'); ?></th>
13
					<th><?php echo $this->Paginator->sort('img_url'); ?></th>
14
					<th><?php echo $this->Paginator->sort('status'); ?></th>
14547 anikendra 15
					<th><?php echo $this->Paginator->sort('store_id'); ?></th>
16
					<th><?php echo $this->Paginator->sort('starttime'); ?></th>
17
					<th><?php echo $this->Paginator->sort('endtime'); ?></th>
14509 anikendra 18
					<th class="actions"><?php echo __('Actions'); ?></th>
19
			</tr>
20
			<?php foreach ($campaigns as $campaign): ?>
21
			<tr>
22
				<td><?php echo h($campaign['Campaign']['id']); ?>&nbsp;</td>
23
				<td><?php echo h($campaign['Campaign']['name']); ?>&nbsp;</td>
24
				<td><?php echo h($campaign['Campaign']['url']); ?>&nbsp;</td>
14547 anikendra 25
				<td><img src="<?php echo h($campaign['Campaign']['img_url']); ?>"/></td>
14509 anikendra 26
				<td><?php echo h($campaign['Campaign']['status']); ?>&nbsp;</td>
14547 anikendra 27
				<td><?php echo $stores[$campaign['Campaign']['store_id']]; ?>&nbsp;</td>
28
				<td><?php echo h($campaign['Campaign']['starttime']); ?>&nbsp;</td>
29
				<td><?php echo h($campaign['Campaign']['endtime']); ?>&nbsp;</td>
14509 anikendra 30
				<td class="actions">
31
					<?php echo $this->Html->link(__('View'), array('action' => 'view', $campaign['Campaign']['id'])); ?>
32
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $campaign['Campaign']['id'])); ?>
33
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $campaign['Campaign']['id']), null, __('Are you sure you want to delete # %s?', $campaign['Campaign']['id'])); ?>
34
				</td>
35
			</tr>
36
		<?php endforeach; ?>
37
			</table>
38
			<p>
39
			<?php
40
			echo $this->Paginator->counter(array(
41
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
42
			));
43
			?>	</p>
44
			<div class="paging">
45
			<?php
46
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
47
				echo $this->Paginator->numbers(array('separator' => ''));
48
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
49
			?>
50
			</div>
51
		</div>
52
	</div>
53
</div>