you can use a table with simple sections with:
https://www.datatables.net/
Here is an example:
:
<?php
class ExampleController extends Zend_Controller_Action
{
public function init()
{
}
public function indexAction()
{
$this->view->headTitle()->append('Example');
$example = new Application_Model_ExampleMapper();
$this->view->entries = $example->fetchAll();
}
}
:
<script>
$(document).ready(function() {
$('#example').dataTable();
} );
</script>
<table class="display dataTable" id="exampledtable" >
<thead>
<tr>
<th>ID</th>
<th>Field1</th>
<th>Field2</th>
<th>Field3</th>
</tr>
</thead>
<tbody><?php foreach ($this->entries as $entry): ?>
<tr>
<td><?php echo $this->escape($entry->ID) ?></td>
<td><?php echo $this->escape($entry->field1) ?></td>
<td><?php echo $this->escape($entry->field2) ?></td>
<td><?php echo $this->escape($entry->field3) ?></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
source
share