| 
<?php defined('_JEXEC') or die('Restricted access'); ?>
<form action="<?php echo JRoute::_( 'index.php' );?>" method="post" name="adminForm">
 <div id="editcell">
 <table>
 <tr>
 <td colspan="3" align="left" width="100%">
 <?php echo JText::_( 'Filter' ); ?>:
 <input type="text" name="search" id="search" value="<?php echo $lists['search'];?>" class="text_area" onchange="document.adminForm.submit();" />
 <button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
 <button onclick="document.getElementById('search').value='';this.form.getElementById('filter_catid').value='0';this.form.getElementById('filter_state').value='';this.form.submit();"><?php echo JText::_( 'Filter Reset' ); ?></button>
 </td>
 </tr>
 </table>
 <table class="adminlist">
 <thead>
 <tr>
 <th width="5">
 <?php echo JHTML::_('grid.sort', 'ID', 'id', $this->lists[1], $this->lists[0] ); ?>
 </th>
 <th width="20">
 <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" />
 </th>
 <th>
 <?php echo JHTML::_('grid.sort', 'Greetings', 'greeting', $this->lists[1], $this->lists[0] ); ?>
 </th>
 </tr>
 </thead>
 <?php
 $k = 0;
 for ($i=0, $n=count( $this->items ); $i < $n; $i++)
 {
 $row =& $this->items[$i];
 $checked = JHTML::_( 'grid.id', $i, $row->id );
 $link = JRoute::_( 'index.php?option=com_hellos&controller=hellos&task=edit&cid[]='. $row->id );
 ?>
 <tr class="<?php echo "row$k"; ?>">
 <td>
 <?php echo $row->id; ?>
 </td>
 <td>
 <?php echo $checked; ?>
 </td>
 <td>
 <a href="<?php echo $link; ?>"><?php echo $row->greeting; ?></a>
 </td>
 </tr>
 <?php
 $k = 1 - $k;
 }
 ?>
 <tfoot>
 <tr>
 <td colspan="3"><?php echo $this->pagination->getListFooter(); ?></td>
 </tr>
 </tfoot>
 </table>
 </div>
 <input type="hidden" name="option" value="com_hellos" />
 <input type="hidden" name="task" value="" />
 <input type="hidden" name="boxchecked" value="0" />
 <input type="hidden" name="controller" value="hellos" />
 <input type="hidden" name="filter_order" value="<?php echo $this->lists[0]; ?>" />
 <input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists[1]; ?>" />
 <?php echo JHTML::_( 'form.token' ); ?>
 </form>
 |