| Line 2... |
Line 2... |
| 2 |
<div class="row">
|
2 |
<div class="row">
|
| 3 |
<div class="col-lg-3">
|
3 |
<div class="col-lg-3">
|
| 4 |
<?php echo $this->Element('adminactions');?>
|
4 |
<?php echo $this->Element('adminactions');?>
|
| 5 |
</div>
|
5 |
</div>
|
| 6 |
<div class="col-lg-9">
|
6 |
<div class="col-lg-9">
|
| - |
|
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>
|
| 7 |
<h2><?php echo __('Dealer Prices'); ?></h2>
|
20 |
<h2><?php echo __('Dealer Prices'); ?></h2>
|
| 8 |
<table class="table table-striped">
|
21 |
<table class="table table-striped">
|
| 9 |
<tr>
|
22 |
<tr>
|
| 10 |
<th><?php echo __('sku'); ?></th>
|
23 |
<th><?php echo __('sku'); ?></th>
|
| 11 |
<th><?php echo __('Brand'); ?></th>
|
24 |
<th><?php echo __('Brand'); ?></th>
|
| 12 |
<th><?php echo __('Name'); ?></th>
|
25 |
<th><?php echo __('Name'); ?></th>
|
| 13 |
<th><?php echo __('dp'); ?></th>
|
26 |
<th><?php echo __('dp'); ?></th>
|
| 14 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
27 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
| 15 |
</tr>
|
28 |
</tr>
|
| 16 |
<?php foreach ($dealerprices as $dp): ?>
|
29 |
<?php foreach ($dealerprices as $dp): ?>
|
| - |
|
30 |
<?php
|
| - |
|
31 |
if(!is_array($dp)){
|
| 17 |
<?php $dp = json_decode($dp,1);?>
|
32 |
$dp = json_decode($dp,1);
|
| 18 |
<?php //debug($dp);?>
|
33 |
}?>
|
| 19 |
<tr>
|
34 |
<tr>
|
| 20 |
<td><?php echo h($dp['sku']); ?> </td>
|
35 |
<td><?php echo h($dp['sku']); ?> </td>
|
| 21 |
<td><?php echo h($dp['brand']); ?> </td>
|
36 |
<td><?php echo h($dp['brand']); ?> </td>
|
| 22 |
<td id="source_product_name" data-oid="<?php echo $dp['_id']['$oid'];?>" ><?php echo h($dp['source_product_name']); ?></td>
|
37 |
<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>
|
38 |
<td class="edit" id="dp" data-oid="<?php echo $dp['_id']['$oid'];?>" ><?php echo h($dp['dp']); ?></td>
|
| 24 |
<td class="actions">
|
39 |
<td class="actions">
|
| 25 |
<?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $dp['_id']['$oid'])); ?>
|
40 |
<?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'])); ?>
|
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'])); ?>
|
| 27 |
</td>
|
42 |
</td>
|
| 28 |
</tr>
|
43 |
</tr>
|
| 29 |
<?php endforeach; ?>
|
44 |
<?php endforeach; ?>
|
| 30 |
</table>
|
45 |
</table>
|
| 31 |
</div>
|
46 |
</div>
|