| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: admin.cache.html.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @subpackage Cache 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // no direct access 16 defined( '_JEXEC' ) or die( 'Restricted access' ); 17 18 /** 19 * HTML View class for the Cache component 20 * 21 * @static 22 * @package Joomla 23 * @subpackage Cache 24 * @since 1.5 25 */ 26 class CacheView 27 { 28 29 /** 30 * Displays the cache 31 * 32 * @param array An array of records 33 * @param string The URL option 34 */ 35 function displayCache(&$rows, &$client, &$page) 36 { 37 ?> 38 <form action="index.php" method="post" name="adminForm"> 39 <table class="adminlist" cellspacing="1"> 40 <thead> 41 <tr> 42 <th class="title" width="10"> 43 <?php echo JText::_( 'Num' ); ?> 44 </th> 45 <th width="20"> 46 <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows );?>);" /> 47 </th> 48 <th class="title" nowrap="nowrap"> 49 <?php echo JText::_( 'Cache Group' ); ?> 50 </th> 51 <th width="5%" align="center" nowrap="nowrap"> 52 <?php echo JText::_( 'Number of Files' ); ?> 53 </th> 54 <th width="10%" align="center"> 55 <?php echo JText::_( 'Size' ); ?> 56 </th> 57 </tr> 58 </thead> 59 <tfoot> 60 <tr> 61 <td colspan="6"> 62 <?php echo $page->getListFooter(); ?> 63 </td> 64 </tr> 65 </tfoot> 66 <tbody> 67 <?php 68 $rc = 0; 69 for ($i = 0, $n = count($rows); $i < $n; $i ++) { 70 $row = & $rows[$i]; 71 ?> 72 <tr class="<?php echo "row$rc"; ?>" > 73 <td> 74 <?php echo $page->getRowOffset( $i ); ?> 75 </td> 76 <td> 77 <input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->group; ?>" onclick="isChecked(this.checked);" /> 78 </td> 79 <td> 80 <span class="bold"> 81 <?php echo $row->group; ?> 82 </span> 83 </td> 84 <td align="center"> 85 <?php echo $row->count; ?> 86 </td> 87 <td align="center"> 88 <?php echo $row->size ?> 89 </td> 90 </tr> 91 <?php 92 $rc = 1 - $rc; 93 } 94 ?> 95 </tbody> 96 </table> 97 98 <input type="hidden" name="task" value="" /> 99 <input type="hidden" name="boxchecked" value="0" /> 100 <input type="hidden" name="option" value="com_cache" /> 101 <input type="hidden" name="client" value="<?php echo $client->id;?>" /> 102 <?php echo JHTML::_( 'form.token' ); ?> 103 </form> 104 <?php 105 } 106 function showPurgeExecute(){ 107 ?> 108 <form action="index.php" method="post" name="adminForm"> 109 <table class="adminlist" cellspacing="1"> 110 <thead> 111 <tr> 112 <th align="left" style="text-align: left;"> 113 <?php echo JText::_( 'Purge expired items' ); ?> 114 </th> 115 </tr> 116 </thead> 117 <tr> 118 <td align="left"> 119 <?php echo JText::_( 'Click on the Purge expired icon in the toolbar to delete all expired cache files. Note: Cache files that are still current will not be deleted.'); ?> <br /> 120 <span style="font-weight: bold"><?php echo JText::_( 'WARNING: This can be resource intensive on sites with large number of items!' ); ?></span> 121 </td> 122 </tr> 123 </table> 124 <input type="hidden" name="task" value="" /> 125 <input type="hidden" name="option" value="com_cache" /> 126 <?php echo JHTML::_( 'form.token' ); ?> 127 </form> 128 <?php 129 } 130 function purgeSuccess(){ 131 ?> 132 <form action="index.php" method="post" name="adminForm"> 133 <table class="adminlist" cellspacing="1"> 134 <thead> 135 <tr> 136 <th align="left" style="text-align: left;"> 137 <?php echo JText::_( 'Success!' ); ?> 138 </th> 139 </tr> 140 </thead> 141 <tr> 142 <td align="left"> 143 <?php echo JText::_( 'Expired items have been purged' ); ?> 144 </td> 145 </tr> 146 </table> 147 <input type="hidden" name="task" value="" /> 148 <input type="hidden" name="option" value="com_cache" /> 149 <?php echo JHTML::_( 'form.token' ); ?> 150 </form> 151 <?php 152 } 153 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |