Your IP : 216.73.216.240


Current Path : /home/juvelize/www/administrator/components/com_myrssreader/views/statistics/tmpl/
Upload File :
Current File : /home/juvelize/www/administrator/components/com_myrssreader/views/statistics/tmpl/default.php

<?php 
/**
* @package      My RSS Reader
* @copyright    Copyright (C) 2010 FalsinSoft. All rights reserved.
* @license      GNU/GPL
* @website      http://falsinsoft-joomla.blogspot.com
* @email        falsinsoft@gmail.com
* 
*/

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

?>    

<form action="index.php" method="post" name="adminForm">
<div id="editcell">
    <table class="adminlist" width="100%">
    <thead>
    <tr>
    <th>
        <?php echo JText::_('COM_MYRSSREADER_STATISTICS_RSSLIST'); ?>
    </th>
    <th width="100">
        <?php echo JText::_('COM_MYRSSREADER_STATISTICS_LASTCHECK'); ?>
    </th> 
    <th width="20">
        <?php echo JText::_('COM_MYRSSREADER_STATISTICS_NEWFEEDS'); ?>
    </th> 
    <th width="20">
        <?php echo JText::_('COM_MYRSSREADER_STATISTICS_TOTALFEEDS'); ?>
    </th> 
    <th width="20">
        <?php echo JText::_('COM_MYRSSREADER_STATISTICS_ERRORS'); ?>
    </th> 
    </tr>         
    </thead>
	<tbody>
    <?php
    for($current_time = time(), $i = 0, $n = count($this->rss_list); $i < $n; $i++)
    {
        $rss_item = $this->rss_list[$i];
        		
		if($rss_item->last_check == '0000-00-00 00:00:00')
		{
			$last_check = JText::_('COM_MYRSSREADER_STATISTICS_NOTCHECKEDYET');
		}
		else
		{
			$time_difference    = ($current_time - strtotime($rss_item->last_check));
			$hours_difference   = intval($time_difference / 3600);
			$minutes_difference = intval(($time_difference - ($hours_difference * 3600)) / 60);
			
			$last_check = floatval($hours_difference) + floatval($minutes_difference / 100);
			$last_check = sprintf('%0.2f', floatval($last_check));
			$last_check .= '  '.JText::_('COM_MYRSSREADER_STATISTICS_HOURSAGO');
		}
		
		$title_style = ($rss_item->published == 0) ? 'style="text-decoration: line-through;"' : '';
		
        echo "\t<tr>\n";
        echo "\t<td><span ".$title_style.">".$rss_item->title."</span></td>\n";        
		echo "\t<td align=\"center\">".$last_check."</td>\n";
		echo "\t<td align=\"center\">".$rss_item->last_feeds_number."</td>\n";
		echo "\t<td align=\"center\">".$rss_item->total_feeds_number."</td>\n";
		echo "\t<td align=\"center\">".$rss_item->check_errors."</td>\n";
        echo "\t</tr>\n";
    }
    ?>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="10">
				<?php echo $this->pagination->getListFooter(); ?>
			</td>
		</tr>
	</tfoot>
	</table>	
	<?php echo $this->model->ShowDonationAdvise(); ?>
</div>

<input type="hidden" name="option" value="com_myrssreader" />
<input type="hidden" name="task" value="statistics" />
<?php echo JHTML::_('form.token'); ?>
</form>