Subversion Repositories SmartDukaan

Rev

Rev 13646 | Rev 14517 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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