Ignore:
Timestamp:
2012-07-29T07:06:57+02:00 (2 years ago)
Author:
moo
Message:

htdocs: split template

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/cacher/listentries.tpl.php

    r1072 r1074  
    11<?php include("../common/header.tpl.php"); ?> 
    2 <div class="switcher"><?php echo switcher("type", $listTypes); ?></div> 
    3 <div id="help"> 
    4     <a href="help.php"><?php echo _("Help") ?> &raquo;</a> 
    5 </div> 
     2<div class="switcher"><?php echo switcher("do", $listTypes); ?></div> 
    63<?php 
    7 include "./cacher.summary.tpl.php"; 
    8 if ($cachelist) { 
    9     $isphp = $cachelist['type'] == $type_php; 
    10     ob_start($config['path_nicer']); 
    114 
    12     $listName = 'Cached'; 
    13     $entries = $cachelist['cache_list']; 
    14     include "./cacher.entrylist.tpl.php"; 
     5include "./sub/summary.tpl.php"; 
     6$isphp = $cachelist['type'] == 'listphp'; 
     7ob_start($config['path_nicer']); 
    158 
    16     $listName = 'Deleted'; 
    17     $entries = $cachelist['deleted_list']; 
    18     include "./cacher.entrylist.tpl.php"; 
     9$listName = 'Cached'; 
     10$entries = $cachelist['cache_list']; 
     11include "./sub/entrylist.tpl.php"; 
    1912 
    20     ob_end_flush(); 
    21     unset($isphp); 
    22 } 
     13$listName = 'Deleted'; 
     14$entries = $cachelist['deleted_list']; 
     15include "./sub/entrylist.tpl.php"; 
    2316 
    24 if ($moduleinfo) { 
    25     if (ini_get("xcache.test")) { 
    26 ?> 
    27 <form method="post" action=""> 
    28     <div> 
    29         <input type="submit" name="coredump" value="Test coredump" class="submit" onclick="return confirm('<?php echo _('Sure?'); ?>');" /> 
    30     </div> 
    31 </form> 
    32 <?php 
    33     } 
    34     $t_moduleinfo = _("Module Info"); 
    35     echo <<<HTML 
    36 <h2>$t_moduleinfo</h2> 
    37 <div class="phpinfo">$moduleinfo</div> 
    38 HTML; 
    39 } 
     17ob_end_flush(); 
     18unset($isphp); 
     19 
    4020?> 
    4121<?php include("../common/footer.tpl.php"); ?> 
Note: See TracChangeset for help on using the changeset viewer.