Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
14509 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
			<div class="searchbar">
14539 anikendra 8
				<form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/master_datas/search/">
14509 anikendra 9
			        <div class="input-group col-xs-12 text-right" id="remote">
10
			            <input autocomplete="off" type="text" class="form-control" placeholder="Search for items" name="search" id="srch-term">
11
			            <div class="input-group-btn w25px">
12
			                <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
13
			            </div>
14
			        </div>
15
		        </form>
16
			</div>
17
			<h2><?php echo __('Master Data'); ?></h2>
18
			<table cellpadding="0" cellspacing="0" class="table table-striped">
19
			<tr>
14517 anikendra 20
					<th><?php echo __('id'); ?></th>
21
					<th><?php echo __('sku Bundle Id'); ?></th>
14509 anikendra 22
					<th><?php echo __('name'); ?></th>
23
					<th><?php echo __('category_id'); ?></th>
24
					<th><?php echo __('brand'); ?></th>
25
					<th><?php echo __('available_price'); ?></th>
26
					<th><?php echo __('Source'); ?></th>
27
					<th><?php echo __('Image'); ?></th>
28
					<!-- <th>&nbsp;</th> -->
29
			</tr>
30
			<?php foreach ($masterdata as $product): ?>
31
			<tr>
14600 anikendra 32
				<td><a href="<?php echo $base_url;?>admin/master_datas/update/<?php echo h($product['_id']); ?>"><?php echo h($product['_id']); ?></a></td>
14517 anikendra 33
				<td><?php echo h($product['skuBundleId']); ?></td>
14509 anikendra 34
				<td class="medit" id="source_product_name" data-oid="<?php echo $product['_id'];?>"><?php echo h($product['source_product_name']); ?>&nbsp;</td>
35
				<td>
36
					<?php echo $this->Html->link($categories[$product['category_id']], array('controller' => 'categories', 'action' => 'view', $product['category_id'])); ?>
37
				</td>
14517 anikendra 38
				<td><?php echo h($product['brand']); ?></td>
39
				<td class="edit" class="medit" id="available_price" data-oid="<?php echo $product['_id'];?>"><?php echo h($product['available_price']); ?></td>
14509 anikendra 40
				<td><?php echo h($storemapping[$product['source_id']]); ?></td>
14517 anikendra 41
				<td class="medit" id="thumbnail" data-oid="<?php echo $product['_id'];?>">
18411 amit.gupta 42
					<img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=100&src=<?php echo urlencode($product['thumbnail']);?>" class="img img-responsive"/>
14509 anikendra 43
				</td>
44
			</tr>
45
			<?php endforeach; ?>
46
			</table>			
47
		</div>
48
	</div>
49
	<ul class="pager">
50
	  	<?php if($page>1):?>
51
	    <li><a href="?page=<?php echo $page-1;?>&search=<?php echo $search;?>">Previous</a></li>
52
		<?php endif;?>
53
	    <li><a href="?page=<?php echo $page+1;?>&search=<?php echo $search;?>">Next</a></li>
54
  	</ul>
55
</div>