<?php

/**
* @version 2.7.18
* @package Joomla 2.5
* @subpackage DT Register
* @copyright Copyright (C) 2006 DTH Development
* @copyright contact dthdev@dthdevelopment.com
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/

  $rModel = $this->getModel('reminder');
  
  $reminders = $rModel->table->find();
  
?>
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist">
<tr>
  <th>
     <?php echo JText::_('DT_ID');?>
  </th>
  <th>
     <?php echo JText::_('DT_SUBJECT');?>
  </th>
  <th>
    <?php echo JText::_('DT_DAYS');?>
  </th>
  <th>
  	<?php echo JText::_('DT_ACTION');?>
  </th>
</tr>
<?php
$k = 0;
if(is_array($reminders))
foreach($reminders as $reminder) {
?>
<tr class="<?php echo "row$k"; ?>">
  <td>
    <?php echo $reminder->id; ?>
  </td>
  <td>
  <?php echo $reminder->subject; ?>
  </td>
  <td>
  <?php echo $reminder->timer; ?>
  </td>
  
   <td>
     <a class="colorbox" title="<?php echo JText::_('DT_EDIT_REMINDER');?>" href="index.php?option=com_dtregister&controller=reminder&task=edit&tmpl=component&id=<?php echo $reminder->id; ?>"><img src="components/com_dtregister/assets/images/edit.jpg" style="height:16px; width:16px; border: 0px; padding-left:3px" /></a>&nbsp;
     
      <a class="colorbox" title="<?php echo JText::_('DT_REMOVE_REMINDER');?>" href="index.php?option=com_dtregister&controller=reminder&task=remove&tmpl=component&id=<?php echo $reminder->id; ?>"><img src="components/com_dtregister/assets/images/delete.jpg" style="height:16px; width:16px; border: 0px; padding-left:3px" /></a>
  </td>
</tr>
<?php	
 $k = 1 - $k;
}

?>
</table>