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>
16549 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 __('App Offers'); ?></h2>
16593 anikendra 12
			<?php echo $this->element('appsearch');?>
16755 anikendra 13
			<?php echo $this->element('appfilter');?>
16549 anikendra 14
			<table class="table table-striped">
15
			<tr>
16
					<th><?php echo $this->Paginator->sort('id'); ?></th>
17
					<th><?php echo $this->Paginator->sort('affiliate_id'); ?></th>
16614 anikendra 18
					<th><?php echo $this->Paginator->sort('appmaster_id'); ?></th>
16549 anikendra 19
					<th><?php echo $this->Paginator->sort('affiliate_offer_id'); ?></th>
20
					<th><?php echo $this->Paginator->sort('offer_price'); ?></th>
21
					<th><?php echo $this->Paginator->sort('override_payout'); ?></th>
22
					<th><?php echo $this->Paginator->sort('overriden_payout'); ?></th>
23
					<th><?php echo $this->Paginator->sort('user_payout'); ?></th>
24
					<th><?php echo $this->Paginator->sort('app_name'); ?></th>
25
					<th><?php echo $this->Paginator->sort('promoImage'); ?></th>
26
					<th><?php echo $this->Paginator->sort('description'); ?></th>
16704 anikendra 27
					<th><?php echo $this->Paginator->sort('shortDescription'); ?></th>
28
					<!-- <th><?php echo $this->Paginator->sort('finalShortDescription'); ?></th> -->
29
					<th><?php echo $this->Paginator->sort('longDescription'); ?></th>
30
					<!-- <th><?php echo $this->Paginator->sort('finalLongDescription'); ?></th> -->
16549 anikendra 31
					<th><?php echo $this->Paginator->sort('link'); ?></th>
32
					<th><?php echo $this->Paginator->sort('downloads'); ?></th>
33
					<th><?php echo $this->Paginator->sort('ratings'); ?></th>
16704 anikendra 34
					<!-- <th><?php echo $this->Paginator->sort('retailer_tagline'); ?></th> -->
35
					<!-- <th><?php echo $this->Paginator->sort('customer_tagline'); ?></th> -->
16549 anikendra 36
					<th><?php echo $this->Paginator->sort('offer_active'); ?></th>
37
					<th><?php echo $this->Paginator->sort('offerCategory'); ?></th>
17025 anikendra 38
					<!-- <th><?php //echo $this->Paginator->sort('priority'); ?></th> -->
16549 anikendra 39
					<th><?php echo $this->Paginator->sort('show'); ?></th>
16755 anikendra 40
					<th><?php echo $this->Paginator->sort('location'); ?></th>
16724 anikendra 41
					<th><?php echo $this->Paginator->sort('offerCondition','Offer Text'); ?></th>
16549 anikendra 42
					<th class="actions"><?php echo __('Actions'); ?></th>
43
			</tr>
44
			<?php foreach ($appOffers as $appOffer): ?>
45
			<tr>
46
				<td><?php echo h($appOffer['AppOffer']['id']); ?>&nbsp;</td>
47
				<td><?php echo h($appOffer['AppOffer']['affiliate_id']); ?>&nbsp;</td>
16614 anikendra 48
				<td><?php echo $this->Html->link(__('Master'), array('controller' => 'appmasters', 'action' => 'edit',$appOffer['AppOffer']['appmaster_id'])); ?>
16549 anikendra 49
				<td><?php echo h($appOffer['AppOffer']['affiliate_offer_id']); ?>&nbsp;</td>
50
				<td><?php echo h($appOffer['AppOffer']['offer_price']); ?>&nbsp;</td>
51
				<td><?php echo h($appOffer['AppOffer']['override_payout']); ?></td>
52
				<td><?php echo h($appOffer['AppOffer']['overriden_payout']); ?></td>
53
				<td><?php echo h($appOffer['AppOffer']['user_payout']); ?></td>
54
				<td><?php echo h($appOffer['AppOffer']['app_name']); ?>&nbsp;</td>
55
				<td><img src="<?php echo ($appOffer['AppOffer']['promoImage']); ?>" width="80"/></td>
16755 anikendra 56
				<td class="cell"><div><?php echo h($appOffer['AppOffer']['description']); ?></div></td>
16709 anikendra 57
				<td><?php echo h($appOffer['AppOffer']['shortDescription']); ?>&nbsp;</td>
58
				<!-- <td><?php echo h($appOffer['AppOffer']['finalShortDescription']); ?>&nbsp;</td> -->
16755 anikendra 59
				<td class="cell"><div><?php echo h($appOffer['AppOffer']['longDescription']); ?></div></td>
16709 anikendra 60
				<!-- <td><?php echo h($appOffer['AppOffer']['finalLongDescription']); ?>&nbsp;</td> -->
16549 anikendra 61
				<td><?php echo h($appOffer['AppOffer']['link']); ?>&nbsp;</td>
62
				<td><?php echo h($appOffer['AppOffer']['downloads']); ?>&nbsp;</td>
63
				<td><?php echo h($appOffer['AppOffer']['ratings']); ?>&nbsp;</td>
16709 anikendra 64
				<!-- <td><?php echo h($appOffer['AppOffer']['retailer_tagline']); ?>&nbsp;</td> -->
65
				<!-- <td><?php echo h($appOffer['AppOffer']['customer_tagline']); ?>&nbsp;</td> -->
16549 anikendra 66
				<td><?php echo h($appOffer['AppOffer']['offer_active']); ?>&nbsp;</td>
67
				<td><?php echo h($appOffer['AppOffer']['offerCategory']); ?>&nbsp;</td>
17025 anikendra 68
				<!-- <td><?php //echo h($appOffer['AppOffer']['priority']); ?>&nbsp;</td> -->
16549 anikendra 69
				<td><?php echo h($appOffer['AppOffer']['show']); ?>&nbsp;</td>
16755 anikendra 70
				<td><?php echo h($appOffer['AppOffer']['location']); ?>&nbsp;</td>
16704 anikendra 71
				<td><?php echo h($appOffer['AppOffer']['offerCondition']); ?>&nbsp;</td>
16549 anikendra 72
				<td class="actions">
73
					<?php //echo $this->Html->link(__('View'), array('action' => 'view', $appOffer['AppOffer']['id'])); ?>
74
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $appOffer['AppOffer']['id'])); ?>
75
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $appOffer['AppOffer']['id']), null, __('Are you sure you want to delete # %s?', $appOffer['AppOffer']['id'])); ?>
76
				</td>
77
			</tr>
78
		<?php endforeach; ?>
79
			</table>
80
			<p>
81
			<?php
82
			echo $this->Paginator->counter(array(
83
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
84
			));
85
			?>	</p>
86
			<div class="paging">
87
			<?php
88
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
89
				echo $this->Paginator->numbers(array('separator' => ''));
90
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
91
			?>
92
			</div>
93
		</div>
94
	</div>
95
</div>