Ignore:
Timestamp:
2012-07-27T09:17:42+02:00 (3 years ago)
Author:
Xuefer
Message:

refactor: move htdocs, bin, lib for easier installation

File:
1 moved

Legend:

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

    r1052 r1053  
    1 <?php include("header.tpl.php"); ?>
     1<?php include("../common/header.tpl.php"); ?>
     2<div class="switcher"><?php echo switcher("type", $listTypes); ?></div>
    23<div id="help">
    34    <a href="help.php"><?php echo _("Help") ?> &raquo;</a>
    45</div>
    5 <div class="switcher"><?php echo switcher("type", $types); ?></div>
    66<?php
    77$a = new Cycle('class="col1"', 'class="col2"');
     
    215215            $hits     = number_format($entry['hits']);
    216216            $size     = size($entry['size']);
    217             $class_cnt = number_format($entry['class_cnt']);
    218             $function_cnt = number_format($entry['function_cnt']);
    219             if ($isphp) {
    220                 $phprefcount = number_format($entry['phprefcount']);
    221                 $file_size   = size($entry['file_size']);
     217            if ($isphp) {
     218                $class_cnt    = number_format($entry['class_cnt']);
     219                $function_cnt = number_format($entry['function_cnt']);
     220                $phprefcount  = number_format($entry['phprefcount']);
     221                $file_size    = size($entry['file_size']);
    222222            }
    223223
     
    231231            }
    232232
    233             if (!$isphp) {
     233            if ($isphp) {
     234                $namelink = $name;
    234235                echo <<<ENTRY
    235                     <td><input type="checkbox" name="remove[]" value="{$name}"/></td>
     236                <td>{$entry['cache_name']} {$i}</td>
     237ENTRY;
     238            }
     239            else {
     240                echo <<<ENTRY
     241                    <td><label><input type="checkbox" name="remove[]" value="{$name}"/>{$entry['cache_name']} {$i}</label></td>
    236242ENTRY;
    237243                $uname = urlencode($entry['name']);
    238244                $namelink = "<a href=\"edit.php?name=$uname\">$name</a>";
    239245            }
    240             else {
    241                 $namelink = $name;
    242             }
    243246
    244247            echo <<<ENTRY
    245             <td>{$entry['cache_name']} {$i}</td>
    246248            <td>{$namelink}</td>
    247249            <td align="right" int="{$entry['hits']}">{$entry['hits']}</td>
     
    299301}
    300302?>
    301 <?php include("footer.tpl.php"); ?>
     303<?php include("../common/footer.tpl.php"); ?>
Note: See TracChangeset for help on using the changeset viewer.