Subversion Repositories SmartDukaan

Rev

Rev 20437 | Rev 20444 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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>
22
			<table cellpadding="0" cellspacing="0" class="table table-striped" >
23
			<tr>
24
 
20438 amit.gupta 25
					<th><?php echo __('sku'); ?></th>
20437 amit.gupta 26
					<th><?php echo __('source'); ?></th>
27
					<th><?php echo __('Product'); ?></th>
19877 naman 28
					<th><?php echo __('cash_back');?></th>
29
					<th><?php echo __('cash_back_status');?>
30
					<th><?php echo __('cash_back_type');?>
31
					<th><?php echo __('Action');?>
32
			</tr>
33
			<?php foreach ($cashbacks as $cashback): ?>
34
			<tr>
20438 amit.gupta 35
				<td><?php echo h($cashback['sku']); ?></td>
20437 amit.gupta 36
				<td><?php echo h($cashback['source']); ?></td>
37
				<td><?php echo h($cashback['product_name']); ?></td>
19877 naman 38
				<td><?php echo h($cashback['cash_back']); ?></td>
39
				<td><?php echo h($cashback['cash_back_status']); ?></td>
40
				<td><?php echo h($cashback['cash_back_type']); ?></td>
41
				<td class="actions">
42
					<?php //echo $this->Html->link(__('View'), array('action' => 'view', $objects['_id'])); ?>
43
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $cashback['_id']['$oid'])); ?>
44
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $cashback['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $cashback['_id']['$oid'])); ?>
45
				</td>
46
			</tr>
47
		<?php endforeach; ?>
48
 
49
			</table>			
50
		</div>
51
	</div>
52
	<ul class="pager">
53
	  	<?php if($page>1):?>
54
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
55
		<?php endif;?>
56
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
57
  	</ul>
58
</div>