Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
16755 anikendra 1
<style>
2
td.cell div { width: 100%; height: 100%; overflow:scroll; }
3
td.cell { height: 100px; }
4
</style>
16614 anikendra 5
<div class="container">
6
	<div class="row">
7
		<div class="col-lg-3">
8
			<?php echo $this->Element('adminactions');?>
9
		</div>
10
		<div class="col-lg-9">
11
			<h2><?php echo __('Appmasters'); ?></h2>
16755 anikendra 12
			<?php echo $this->element('appsearch');?>
13
			<table class="table table-striped">
16614 anikendra 14
			<tr>
15
					<th><?php echo $this->Paginator->sort('id'); ?></th>
16981 anikendra 16
					<th><?php echo $this->Paginator->sort('rank'); ?></th>
16755 anikendra 17
					<th><?php echo $this->Paginator->sort('active_offer'); ?></th>
16614 anikendra 18
					<th><?php echo $this->Paginator->sort('app_name'); ?></th>
19
					<th><?php echo $this->Paginator->sort('package_name'); ?></th>
16981 anikendra 20
					<!-- <th><?php //echo $this->Paginator->sort('os_name'); ?></th> -->
16614 anikendra 21
					<th><?php echo $this->Paginator->sort('shortDescription'); ?></th>
22
					<th><?php echo $this->Paginator->sort('longDescription'); ?></th>
23
					<th><?php echo $this->Paginator->sort('customerOneLiner'); ?></th>
24
					<th><?php echo $this->Paginator->sort('retailerOneLiner'); ?></th>
16724 anikendra 25
					<th><?php echo $this->Paginator->sort('showApp'); ?></th>
16614 anikendra 26
					<th class="actions"><?php echo __('Actions'); ?></th>
27
			</tr>
28
			<?php foreach ($appmasters as $appmaster): ?>
29
			<tr>
30
				<td><?php echo h($appmaster['Appmaster']['id']); ?>&nbsp;</td>
16981 anikendra 31
				<td><?php echo h($appmaster['Appmaster']['rank']); ?>&nbsp;</td>
16755 anikendra 32
				<td><a href="<?php echo $base_url;?>admin/app_offers/update/<?php echo $appmaster['Appmaster']['id'];?>">Edit Offer</a></td>
16614 anikendra 33
				<td><?php echo h($appmaster['Appmaster']['app_name']); ?>&nbsp;</td>
34
				<td><?php echo h($appmaster['Appmaster']['package_name']); ?>&nbsp;</td>
16981 anikendra 35
				<!-- <td><?php //echo h($appmaster['Appmaster']['os_name']); ?>&nbsp;</td> -->
16755 anikendra 36
				<td class="cell"><div><?php echo h($appmaster['Appmaster']['shortDescription']); ?></div></td>
37
				<td class="cell"><div><?php echo h($appmaster['Appmaster']['longDescription']); ?></div></td>
16614 anikendra 38
				<td><?php echo h($appmaster['Appmaster']['customerOneLiner']); ?>&nbsp;</td>
39
				<td><?php echo h($appmaster['Appmaster']['retailerOneLiner']); ?>&nbsp;</td>
16724 anikendra 40
				<td><?php echo h($appmaster['Appmaster']['showApp']); ?>&nbsp;</td>
16614 anikendra 41
				<td class="actions">
42
					<?php //echo $this->Html->link(__('View'), array('action' => 'view', $appmaster['Appmaster']['id'])); ?>
43
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $appmaster['Appmaster']['id'])); ?>
44
					<?php //echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $appmaster['Appmaster']['id']), null, __('Are you sure you want to delete # %s?', $appmaster['Appmaster']['id'])); ?>
45
				</td>
46
			</tr>
47
		<?php endforeach; ?>
48
			</table>
49
			<p>
50
			<?php
51
			echo $this->Paginator->counter(array(
52
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
53
			));
54
			?>	</p>
55
			<div class="paging">
56
			<?php
57
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
58
				echo $this->Paginator->numbers(array('separator' => ''));
59
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
60
			?>
61
			</div>
62
		</div>
63
	</div>
64
</div>