Subversion Repositories SmartDukaan

Rev

Rev 14509 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14098 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">
14509 anikendra 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>
14098 anikendra 17
			<h2><?php echo __('Master Data'); ?></h2>
18
			<table cellpadding="0" cellspacing="0" class="table table-striped">
19
			<tr>
20
					<!-- <th><?php echo __('id'); ?></th> -->
21
					<th><?php echo __('name'); ?></th>
22
					<th><?php echo __('category_id'); ?></th>
23
					<th><?php echo __('brand'); ?></th>
24
					<th><?php echo __('available_price'); ?></th>
25
					<th><?php echo __('Source'); ?></th>
26
					<th><?php echo __('Image'); ?></th>
27
					<!-- <th>&nbsp;</th> -->
28
			</tr>
29
			<?php foreach ($masterdata as $product): ?>
30
			<tr>
31
				<!-- <td><?php echo h($product['MasterData']['id']); ?>&nbsp;</td> -->
32
				<td class="medit" id="source_product_name" data-oid="<?php echo $product['MasterData']['id'];?>"><?php echo h($product['MasterData']['source_product_name']); ?>&nbsp;</td>
33
				<td>
34
					<?php echo $this->Html->link($categories[$product['MasterData']['category_id']], array('controller' => 'categories', 'action' => 'view', $product['MasterData']['category_id'])); ?>
35
				</td>
36
				<td><?php echo h($product['MasterData']['brand']); ?></td>
37
				<td class="edit" class="medit" id="available_price" data-oid="<?php echo $product['MasterData']['id'];?>"><?php echo h($product['MasterData']['available_price']); ?></td>
38
				<td><?php echo h($storemapping[$product['MasterData']['source_id']]); ?></td>
39
				<td class="medit" id="thumbnail" data-oid="<?php echo $product['MasterData']['id'];?>">
14509 anikendra 40
					<img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=100&src=<?php echo $product['MasterData']['thumbnail'];?>" class="img img-responsive"/>
14098 anikendra 41
				</td>
42
				<!-- <td><?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $product['MasterData']['id'])); ?></td> -->
43
			</tr>
44
		<?php endforeach; ?>
45
			</table>			
46
		</div>
47
	</div>
48
	<ul class="pager">
49
	  	<?php if($page>1):?>
50
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
51
		<?php endif;?>
52
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
53
  	</ul>
54
</div>