<?php 
/*------------------------------------------------------------------------
# com_guru
# ------------------------------------------------------------------------
# author    iJoomla
# copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.ijoomla.com
# Technical Support:  Forum - http://www.ijoomla.com/forum/index/
-------------------------------------------------------------------------*/

defined( '_JEXEC' ) or die( 'Restricted access' );

$doc =JFactory::getDocument();


$k = 0;
$n = count ($this->reminds);

?>

	<div class="clearfix"></div>
    <div class="well well-minimized">
		<?php echo JText::_("GURU_SYSTEMEMAILS_SETTINGS_DESCRIPTION"); ?>
	</div>

            <form action="<?php echo JUri::root() ?>administrator/index.php"  id="adminForm" name="adminForm" method="post">
                <div class="clearfix"> </div>
                <div id="editcell" >
                    <table class="table table-striped adminlist table-bordered">
                        <thead>
                            <tr>
                                <th width="5">
                                    <input type="checkbox" onclick="Joomla.checkAll(this)" name="toggle" value="" />
                                    <span class="lbl"></span>
                                </th>
                                
                                <th width="20">
                                    <?php echo JText::_('GURU_ID');?>
                                </th>
                                <th>
                                    <?php echo JText::_('GURU_NAME');?>
                                </th>
                                <th>
                                    <?php echo JText::_('VIEWPACKAGETERMS');?>
                                </th>
                                <th class="text-center">
                                    <?php echo JText::_('VIEWPLUGPUBLISH');?>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
            <?php 
                for ($i = 0; $i < $n; $i++):
                $remind = $this->reminds[$i];
                $id = $remind->id;
                $checked = JHTML::_('grid.id', $i, $id);
                $link = JRoute::_("index.php?option=com_guru&controller=guruSubremind&task=edit&cid[]=" . $id);
                $published = guruAdminViewguruSubremind::approve($remind, $i );
            ?>
                <tr class="row<?php echo $k;?>"> 
                    <td>
                        <?php echo $checked;?>
                       	<span class="lbl"></span>
                    </td>
                    <td>
                        <?php echo $id;?>
                    </td>		
                    <td>
                        <a class="a_guru" href="<?php echo $link;?>" ><?php echo $remind->name;?></a>
                    </td>		
                    <td>
                        <?php 
                            $remind->term = JText::_('GURU_REM_EXP' . $remind->term);
                            echo $remind->term; 
                        ?>
                    </td>	
                    
                    <td class="text-center">
                        <?php echo $published; ?>
                    </td>	
                </tr>
            <?php 
                    $k = 1 - $k;
                endfor;
            ?>            
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="5">
                                	<div id="filter-bar" class="btn-toolbar">
                                        <div class="btn-group pull-left hidden-phone">
                                            <label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label>
                                            <?php echo $this->pagination->getLimitBox(); ?>
                                        </div>
                                     </div>
                                    <?php echo $this->pagination->getListFooter(); ?>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
                
                <input type="hidden" name="option" value="com_guru" />
                <input type="hidden" name="task" value="" />
                <input type="hidden" name="boxchecked" value="0" />
                <input type="hidden" name="controller" value="guruSubremind" />
                <input type="hidden" name="old_limit" value="<?php echo JFactory::getApplication()->input->get("limitstart"); ?>" />
            </form>
           
<script language="javascript">

</script>