- md5
- d56448320d0ec40bca4a5977f42a2d2a
- sha1
- 8663ac7189e5f160ab9da62048d0fce91fa0c1ad
- sha256
- 2947ec695a740349fa885d53a76548556da1681a4313586ef2345c2008955ecc
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
<?php
/**
* @version $Id: admin.cache.html.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @subpackage Cache
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
/**
* HTML View class for the Cache component
*
* @static
* @package Joomla
* @subpackage Cache
* @since 1.5
*/
class CacheView
{
/**
* Displays the cache
*
* @param array An array of records
* @param string The URL option
*/
function displayCache(&$rows, &$client, &$page)
{
?>
<form action="index.php" method="post" name="adminForm">
<table class="adminlist" cellspacing="1">
<thead>
<tr>
<th class="title" width="10">
<?php echo JText::_( 'Num' ); ?>
</th>
<th width="20">
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows );?>);" />
</th>
<th class="title" nowrap="nowrap">
<?php echo JText::_( 'Cache Group' ); ?>
</th>
<th width="5%" align="center" nowrap="nowrap">
<?php echo JText::_( 'Number of Files' ); ?>
</th>
<th width="10%" align="center">
<?php echo JText::_( 'Size' ); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="6">
<?php echo $page->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody>
<?php
$rc = 0;
for ($i = 0, $n = count($rows); $i < $n; $i ++) {
$row = & $rows[$i];
?>
<tr class="<?php echo "row$rc"; ?>" >
<td>
<?php echo $page->getRowOffset( $i ); ?>
</td>
<td>
<input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->group; ?>" onclick="isChecked(this.checked);" />
</td>
<td>
<span class="bold">
<?php echo $row->group; ?>
</span>
</td>
<td align="center">
<?php echo $row->count; ?>
</td>
<td align="center">
<?php echo $row->size ?>
</td>
</tr>
<?php
$rc = 1 - $rc;
}
?>
</tbody>
</table>
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="option" value="com_cache" />
<input type="hidden" name="client" value="<?php echo $client->id;?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
}
}
The same content is in 5 releases, Joomla 1.5.4 to 1.5.8. See them all, or every version of this file.