Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
17597 naman 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
 
8
			<h2><?php echo __('Object Data'); ?></h2>
9
			<table cellpadding="0" cellspacing="0" class="table table-striped" >
10
			<tr>
11
 
12
					<th><?php echo __('id'); ?></th>
13
					<th><?php echo __('name'); ?></th>
14
					<th><?php echo __('Action')?></th>
15
			</tr>
16
			<?php foreach ($objects as $objects): ?>
17
			<tr>
18
 
19
				<td><?php echo h($objects['_id']); ?></td>
20
				<td><?php echo h($objects['name']); ?></td>
21
				<td class="actions">
17688 naman 22
					<?php //echo $this->Html->link(__('View'), array('action' => 'view', $objects['_id'])); ?>
17597 naman 23
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $objects['_id'])); ?>
24
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $objects['_id']), null, __('Are you sure you want to delete # %s?', $objects['_id'])); ?>
25
				</td>
26
			</tr>
27
		<?php endforeach; ?>
28
 
29
			</table>			
30
		</div>
31
	</div>
32
	<ul class="pager">
33
	  	<?php if($page>1):?>
34
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
35
		<?php endif;?>
36
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
37
  	</ul>
38
</div>