| 19877 |
naman |
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 |
<form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/itemcashbacks/index">
|
|
|
8 |
<div class="input-group col-xs-6 text-left">
|
|
|
9 |
Search By:
|
|
|
10 |
<input type="radio" name="type" value="sku"/>SkuId
|
|
|
11 |
<input type="radio" name="type" value="skuBundleId"/>SkuBundleId
|
|
|
12 |
</div>
|
|
|
13 |
<div class="input-group col-xs-6 text-right" id="remote">
|
|
|
14 |
<input autocomplete="off" type="text" class="form-control" placeholder="Search for item" name="search" id="srch-term">
|
|
|
15 |
<div class="input-group-btn w25px">
|
|
|
16 |
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
|
|
|
17 |
</div>
|
|
|
18 |
</div>
|
|
|
19 |
</form>
|
|
|
20 |
|
|
|
21 |
<h2><?php echo __('Item Cashbacks'); ?></h2>
|
| 20444 |
amit.gupta |
22 |
<form class="navbar-form" name="cache" action="<?php echo $base_url;?>admin/itemcashbacks">
|
|
|
23 |
<input type="submit" name="clear-cache" value="Clear Cache"/>
|
|
|
24 |
<?php if(isset($clear){
|
|
|
25 |
echo '<div>'.$clear.'</div>';
|
|
|
26 |
}
|
|
|
27 |
?>
|
|
|
28 |
</form>
|
| 19877 |
naman |
29 |
<table cellpadding="0" cellspacing="0" class="table table-striped" >
|
|
|
30 |
<tr>
|
|
|
31 |
|
| 20438 |
amit.gupta |
32 |
<th><?php echo __('sku'); ?></th>
|
| 20437 |
amit.gupta |
33 |
<th><?php echo __('source'); ?></th>
|
|
|
34 |
<th><?php echo __('Product'); ?></th>
|
| 20444 |
amit.gupta |
35 |
<th><?php echo __('Cashback');?></th>
|
|
|
36 |
<th><?php echo __('Status');?>
|
|
|
37 |
<th><?php echo __('Type');?>
|
| 19877 |
naman |
38 |
<th><?php echo __('Action');?>
|
|
|
39 |
</tr>
|
|
|
40 |
<?php foreach ($cashbacks as $cashback): ?>
|
|
|
41 |
<tr>
|
| 20438 |
amit.gupta |
42 |
<td><?php echo h($cashback['sku']); ?></td>
|
| 20437 |
amit.gupta |
43 |
<td><?php echo h($cashback['source']); ?></td>
|
|
|
44 |
<td><?php echo h($cashback['product_name']); ?></td>
|
| 19877 |
naman |
45 |
<td><?php echo h($cashback['cash_back']); ?></td>
|
|
|
46 |
<td><?php echo h($cashback['cash_back_status']); ?></td>
|
|
|
47 |
<td><?php echo h($cashback['cash_back_type']); ?></td>
|
|
|
48 |
<td class="actions">
|
|
|
49 |
<?php //echo $this->Html->link(__('View'), array('action' => 'view', $objects['_id'])); ?>
|
|
|
50 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $cashback['_id']['$oid'])); ?>
|
|
|
51 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $cashback['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $cashback['_id']['$oid'])); ?>
|
|
|
52 |
</td>
|
|
|
53 |
</tr>
|
|
|
54 |
<?php endforeach; ?>
|
|
|
55 |
|
|
|
56 |
</table>
|
|
|
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
<ul class="pager">
|
|
|
60 |
<?php if($page>1):?>
|
|
|
61 |
<li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
|
|
|
62 |
<?php endif;?>
|
|
|
63 |
<li><a href="?page=<?php echo $page+1;?>">Next</a></li>
|
|
|
64 |
</ul>
|
|
|
65 |
</div>
|