Subversion Repositories SmartDukaan

Rev

Rev 14539 | 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 __('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><?php echo h($product['MasterData']['id']); ?>&nbsp;</td> -->
                                <td class="medit" id="source_product_name" data-oid="<?php echo $product['MasterData']['id'];?>"><?php echo h($product['MasterData']['source_product_name']); ?>&nbsp;</td>
                                <td>
                                        <?php echo $this->Html->link($categories[$product['MasterData']['category_id']], array('controller' => 'categories', 'action' => 'view', $product['MasterData']['category_id'])); ?>
                                </td>
                                <td><?php echo h($product['MasterData']['brand']); ?></td>
                                <td class="edit" class="medit" id="available_price" data-oid="<?php echo $product['MasterData']['id'];?>"><?php echo h($product['MasterData']['available_price']); ?></td>
                                <td><?php echo h($storemapping[$product['MasterData']['source_id']]); ?></td>
                                <td class="medit" id="thumbnail" data-oid="<?php echo $product['MasterData']['id'];?>">
                                        <img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=100&src=<?php echo $product['MasterData']['thumbnail'];?>" class="img img-responsive"/>
                                </td>
                                <!-- <td><?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $product['MasterData']['id'])); ?></td> -->
                        </tr>
                <?php endforeach; ?>
                        </table>                        
                </div>
        </div>
        <ul class="pager">
                <?php if($page>1):?>
            <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
                <?php endif;?>
            <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
        </ul>
</div>