Subversion Repositories SmartDukaan

Rev

Rev 17597 | 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">
                                        
                        <h2><?php echo __('Object 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 __('Action')?></th>
                        </tr>
                        <?php foreach ($objects as $objects): ?>
                        <tr>
                                
                                <td><?php echo h($objects['_id']); ?></td>
                                <td><?php echo h($objects['name']); ?></td>
                                <td class="actions">
                                        <?php //echo $this->Html->link(__('View'), array('action' => 'view', $objects['_id'])); ?>
                                        <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $objects['_id'])); ?>
                                        <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $objects['_id']), null, __('Are you sure you want to delete # %s?', $objects['_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>