Skip to content

Commit

Permalink
show item list in a table
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoOnTheEarth committed Feb 21, 2014
1 parent f6b0e0b commit 2821531
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions administrator/components/com_blog/views/items/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,33 @@
method="post"
name="adminForm"
id="adminForm">
<?php
var_dump($this->items);
?>
<table class="table table-bordered">
<thead>
<tr>
<th>
Title
</th>
<th>
Id
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->items as $i => $item): ?>
<tr>
<td>
<a href="<?php echo JRoute::_('index.php?option=com_blog&task=item.edit&id=' . $item->id); ?>">
<?php echo $this->escape($item->title); ?>
</a>
</td>
<td>
<?php echo $item->id; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>

<input type="hidden" name="option" value="com_blog"/>
<input type="hidden" name="task" value=""/>
<?php echo JHtml::_('form.token'); ?>
Expand Down

0 comments on commit 2821531

Please sign in to comment.