Subversion Repositories SmartDukaan

Rev

Rev 14099 | Rev 14584 | Go to most recent revision | Details | Compare with Previous | 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">
14517 anikendra 7
			<div class="searchbar">
8
				<form class="navbar-form" role="search" method="GET" name="search" action="searchdp">
9
					<div class="input-group col-xs-6 text-left">
10
						Search By Sku :<input type="hidden" name="type" value="sku" />
11
					</div>
12
			        <div class="input-group col-xs-6 text-right" id="remote">
13
			            <input autocomplete="off" type="text" class="form-control" placeholder="Search for items" name="search" id="srch-term">
14
			            <div class="input-group-btn w25px">
15
			                <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
16
			            </div>
17
			        </div>
18
			    </form>
19
			</div>
14099 anikendra 20
			<h2><?php echo __('Dealer Prices'); ?></h2>
21
			<table class="table table-striped">
22
			<tr>
23
					<th><?php echo __('sku'); ?></th>
24
					<th><?php echo __('Brand'); ?></th>
25
					<th><?php echo __('Name'); ?></th>
26
				 	<th><?php echo __('dp'); ?></th> 
27
					<th class="actions"><?php echo __('Actions'); ?></th>
28
			</tr>			
29
			<?php foreach ($dealerprices as $dp): ?>
14517 anikendra 30
			<?php 
31
			if(!is_array($dp)){
32
				$dp = json_decode($dp,1);
33
			}?>
14099 anikendra 34
			<tr>
35
				<td><?php echo h($dp['sku']); ?>&nbsp;</td>
36
				<td><?php echo h($dp['brand']); ?>&nbsp;</td>				
37
				<td id="source_product_name" data-oid="<?php echo $dp['_id']['$oid'];?>" ><?php echo h($dp['source_product_name']); ?></td>
38
				<td class="edit" id="dp" data-oid="<?php echo $dp['_id']['$oid'];?>" ><?php echo h($dp['dp']); ?></td>
39
				<td class="actions">
40
					<?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $dp['_id']['$oid'])); ?>
14517 anikendra 41
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'deletedp', $dp['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $dp['_id']['$oid'])); ?>
14099 anikendra 42
				</td>
43
			</tr>
44
		<?php endforeach; ?>
45
			</table>			
46
		</div>
47
	</div>
48
	<nav>
49
	  <ul class="pager">
50
	  	<?php if($page>1):?>
51
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
52
		<?php endif;?>
53
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
54
	  </ul>
55
	</nav>
56
</div>