Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
13646 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">
14517 anikendra 7
			<?php echo $this->element('adminsearch');?>
13646 anikendra 8
			<h2><?php echo __('Sku Schemes'); ?></h2>
9
			<table cellpadding="0" cellspacing="0">
10
			<tr>
15813 anikendra 11
					<!-- <th><?php //echo __('sku'); ?></th> -->
14098 anikendra 12
					<th><?php echo __('Name'); ?></th>
13
					<!-- <th><?php //echo __('startDate'); ?></th> -->
14561 anikendra 14
					<th><?php echo __('Bundle Id'); ?></th>
14098 anikendra 15
					<th><?php echo __('schemeAmount'); ?></th>
13646 anikendra 16
					<th class="actions"><?php echo __('Actions'); ?></th>
17
			</tr>
18
			<?php foreach ($skuschemes as $skuscheme): ?>
14517 anikendra 19
			<?php 
20
			if(!is_array($skuscheme)){
21
				$skuscheme = json_decode($skuscheme,1);
22
			}
14098 anikendra 23
			?>
13646 anikendra 24
			<tr>
15813 anikendra 25
				<!-- <td><?php //echo h($skuscheme['sku']); ?>&nbsp;</td> -->
14098 anikendra 26
				<td><?php echo h($skuscheme['source_product_name']); ?>&nbsp;</td>				
27
				<!-- <td><?php //echo date('d-m-Y',$skuscheme['startDate']/1000); ?>&nbsp;</td> -->
14561 anikendra 28
				<td><?php echo $skuscheme['skuBundleId']; ?>&nbsp;</td>
14098 anikendra 29
				<td class="edit" id="schemeAmount" data-oid="<?php echo $skuscheme['_id']['$oid'];?>" ><?php echo h($skuscheme['schemeAmount']); ?></td>
13646 anikendra 30
				<td class="actions">
14098 anikendra 31
					<?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $skuscheme['_id']['$oid'])); ?>
13646 anikendra 32
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $skuscheme['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $skuscheme['_id']['$oid'])); ?>
33
				</td>
34
			</tr>
35
		<?php endforeach; ?>
36
			</table>			
37
		</div>
13637 anikendra 38
	</div>
14098 anikendra 39
	<nav>
40
	  <ul class="pager">
41
	  	<?php if($page>1):?>
42
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
43
		<?php endif;?>
44
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
45
	  </ul>
46
	</nav>
13646 anikendra 47
</div>