Subversion Repositories SmartDukaan

Rev

Rev 14517 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14099 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">
7
			<h2><?php echo __('Dealer Prices'); ?></h2>
8
			<table class="table table-striped">
9
			<tr>
10
					<th><?php echo __('sku'); ?></th>
11
					<th><?php echo __('Brand'); ?></th>
12
					<th><?php echo __('Name'); ?></th>
13
				 	<th><?php echo __('dp'); ?></th> 
14
					<th class="actions"><?php echo __('Actions'); ?></th>
15
			</tr>			
16
			<?php foreach ($dealerprices as $dp): ?>
17
			<?php $dp = json_decode($dp,1);?>
18
			<?php //debug($dp);?>
19
			<tr>
20
				<td><?php echo h($dp['sku']); ?>&nbsp;</td>
21
				<td><?php echo h($dp['brand']); ?>&nbsp;</td>				
22
				<td id="source_product_name" data-oid="<?php echo $dp['_id']['$oid'];?>" ><?php echo h($dp['source_product_name']); ?></td>
23
				<td class="edit" id="dp" data-oid="<?php echo $dp['_id']['$oid'];?>" ><?php echo h($dp['dp']); ?></td>
24
				<td class="actions">
25
					<?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $dp['_id']['$oid'])); ?>
26
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $dp['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $dp['_id']['$oid'])); ?>
27
				</td>
28
			</tr>
29
		<?php endforeach; ?>
30
			</table>			
31
		</div>
32
	</div>
33
	<nav>
34
	  <ul class="pager">
35
	  	<?php if($page>1):?>
36
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
37
		<?php endif;?>
38
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
39
	  </ul>
40
	</nav>
41
</div>