Changeset 1071
- Timestamp:
- 07/28/2012 08:03:59 PM (10 months ago)
- Files:
-
- 1 modified
-
trunk/htdocs/cacher/cacher.tpl.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/cacher/cacher.tpl.php
r1068 r1071 154 154 ?> 155 155 156 <form action="" method="post">156 <form action="" method="post"> 157 157 <table cellspacing="0" cellpadding="4" class="cycles entries"> 158 158 <caption><?php echo _("{$cachelist['type_name']} $listname"); ?></caption> 159 <?php160 echo "161 <tr ", $a->next(), ">";162 ?>163 164 <?php 159 <?php 160 $class = $a->next(); 161 echo <<<TR 162 <tr {$class}> 163 164 TR; 165 165 if ($isphp) { 166 166 echo … … 209 209 ?> 210 210 </tr> 211 <?php211 <?php 212 212 foreach ($entries as $i => $entry) { 213 echo " 214 <tr ", $a->next(), ">"; 213 $class = $a->next(); 214 echo <<<TR 215 <tr $class> 216 217 TR; 215 218 $name = htmlspecialchars($entry['name']); 216 219 $hits = number_format($entry['hits']); … … 235 238 $namelink = $name; 236 239 echo <<<ENTRY 237 <td>{$entry['cache_name']} {$i}</td> 240 <td>{$entry['cache_name']} {$i}</td> 241 238 242 ENTRY; 239 243 } 240 244 else { 241 245 echo <<<ENTRY 242 <td><label><input type="checkbox" name="remove[]" value="{$name}"/>{$entry['cache_name']} {$i}</label></td> 246 <td><label><input type="checkbox" name="remove[]" value="{$name}"/>{$entry['cache_name']} {$i}</label></td> 247 243 248 ENTRY; 244 249 $uname = urlencode($entry['name']); … … 250 255 <td align="right" int="{$entry['hits']}">{$entry['hits']}</td> 251 256 <td align="right" int="{$entry['size']}">{$size}</td> 257 252 258 ENTRY; 253 259 if ($isphp) { 254 260 $refcount = number_format($entry['refcount']); 255 261 echo <<<ENTRY 256 <td align="right" int="{$entry['refcount']}">{$entry['refcount']}</td> 257 <td align="right" int="{$entry['phprefcount']}">{$phprefcount}</td> 258 <td align="right" int="{$entry['class_cnt']}">{$class_cnt}</td> 259 <td align="right" int="{$entry['function_cnt']}">{$function_cnt}</td> 260 <td align="right" int="{$entry['file_size']}">{$file_size}</td> 261 <td align="right" int="{$entry['file_mtime']}">{$file_mtime}</td> 262 <td align="right" int="{$entry['refcount']}">{$entry['refcount']}</td> 263 <td align="right" int="{$entry['phprefcount']}">{$phprefcount}</td> 264 <td align="right" int="{$entry['class_cnt']}">{$class_cnt}</td> 265 <td align="right" int="{$entry['function_cnt']}">{$function_cnt}</td> 266 <td align="right" int="{$entry['file_size']}">{$file_size}</td> 267 <td align="right" int="{$entry['file_mtime']}">{$file_mtime}</td> 268 262 269 ENTRY; 263 270 if (isset($entry['file_inode'])) { 264 271 echo <<<ENTRY 265 <td align="right" int="{$entry['file_device']}">{$entry['file_device']}</td> 266 <td align="right" int="{$entry['file_inode']}">{$entry['file_inode']}</td> 272 <td align="right" int="{$entry['file_device']}">{$entry['file_device']}</td> 273 <td align="right" int="{$entry['file_inode']}">{$entry['file_inode']}</td> 274 267 275 ENTRY; 268 276 } … … 272 280 <td align="right" int="{$entry['atime']}">{$atime}</td> 273 281 <td align="right" int="{$entry['ctime']}">{$ctime}</td> 282 274 283 ENTRY; 275 284 if ($listname == 'Deleted') { 276 echo <<<ENTRY 277 <td align="right" int="{$entry['dtime']}">{$dtime}</td> 278 ENTRY; 279 } 280 281 echo " 285 echo <<<ENTRY 286 <td align="right" int="{$entry['dtime']}">{$dtime}</td> 287 288 ENTRY; 289 } 290 291 echo <<<TR 282 292 </tr> 283 "; 293 294 TR; 284 295 } 285 296 ?> 286 287 297 </table> 288 <?php if (!$isphp) { ?>298 <?php if (!$isphp) { ?> 289 299 <input type="submit" value="<?php echo _("Remove Selected"); ?>"> 290 <?php } ?>291 </form>300 <?php } ?> 301 </form> 292 302 <?php 293 303 } … … 297 307 if (ini_get("xcache.test")) { 298 308 ?> 299 <form method="post" action="" 300 ><div301 /><input type="submit" name="coredump" value="Test coredump" class="submit" onclick="return confirm('<?php echo $l_confirm ?>');"302 /></div303 ></form>309 <form method="post" action=""> 310 <div> 311 <input type="submit" name="coredump" value="Test coredump" class="submit" onclick="return confirm('<?php echo $l_confirm ?>');" /> 312 </div> 313 </form> 304 314 <?php 305 315 }

