Subversion Repositories SmartDukaan

Rev

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

<div class="container">
        <div class="row">
                <div class="col-lg-3">
                        <?php echo $this->Element('adminactions');?>
                </div>
                <div class="col-lg-9">
                        <div class="searchbar">
                                <form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/master_datas/search/">
                                <div class="input-group col-xs-12 text-right" id="remote">
                                    <input autocomplete="off" type="text" class="form-control" placeholder="Search for items" name="search" id="srch-term">
                                    <div class="input-group-btn w25px">
                                        <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
                                    </div>
                                </div>
                        </form>
                        </div>
                        <h2><?php echo __('Master Data'); ?></h2>
                        <table cellpadding="0" cellspacing="0" class="table table-striped">
                        <tr>
                                        <th><?php echo __('id'); ?></th>
                                        <th><?php echo __('sku Bundle Id'); ?></th>
                                        <th><?php echo __('name'); ?></th>
                                        <th><?php echo __('category_id'); ?></th>
                                        <th><?php echo __('brand'); ?></th>
                                        <th><?php echo __('available_price'); ?></th>
                                        <th><?php echo __('Source'); ?></th>
                                        <th><?php echo __('Image'); ?></th>
                                        <!-- <th>&nbsp;</th> -->
                        </tr>
                        <?php foreach ($masterdata as $product): ?>
                        <tr>
                                <td><a href="<?php echo $base_url;?>admin/master_datas/update/<?php echo h($product['_id']); ?>"><?php echo h($product['_id']); ?></a></td>
                                <td><?php echo h($product['skuBundleId']); ?></td>
                                <td class="medit" id="source_product_name" data-oid="<?php echo $product['_id'];?>"><?php echo h($product['source_product_name']); ?>&nbsp;</td>
                                <td>
                                        <?php echo $this->Html->link($categories[$product['category_id']], array('controller' => 'categories', 'action' => 'view', $product['category_id'])); ?>
                                </td>
                                <td><?php echo h($product['brand']); ?></td>
                                <td class="edit" class="medit" id="available_price" data-oid="<?php echo $product['_id'];?>"><?php echo h($product['available_price']); ?></td>
                                <td><?php echo h($storemapping[$product['source_id']]); ?></td>
                                <td class="medit" id="thumbnail" data-oid="<?php echo $product['_id'];?>">
                                        <img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=100&src=<?php echo urlencode($product['thumbnail']);?>" class="img img-responsive"/>
                                </td>
                        </tr>
                        <?php endforeach; ?>
                        </table>                        
                </div>
        </div>
        <ul class="pager">
                <?php if($page>1):?>
            <li><a href="?page=<?php echo $page-1;?>&search=<?php echo $search;?>">Previous</a></li>
                <?php endif;?>
            <li><a href="?page=<?php echo $page+1;?>&search=<?php echo $search;?>">Next</a></li>
        </ul>
</div>