Changeset 371 in svn for trunk/admin/xcache.tpl.php


Ignore:
Timestamp:
2007-05-05T10:30:14Z (8 years ago)
Author:
Xuefer
Message:

fixed #86, enhancement in admin page, remove/edit variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/xcache.tpl.php

    r363 r371  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    2 <html xmlns="http://www.w3.org/1999/xhtml">
    3 <head>
    4 <?php
    5 echo <<<HEAD
    6     <meta http-equiv="Content-Type" content="text/html; charset=$charset" />
    7     <meta http-equiv="Content-Language" content="$lang" />
    8     <script type="text/javascript" src="tablesort.js" charset="$charset"></script>
    9 HEAD;
    10 ?>
    11 
    12     <link rel="stylesheet" type="text/css" href="xcache.css" />
    13     <title><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></title>
    14 </head>
    15 
    16 <body>
    17 <h1><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></h1>
     1<?php include("header.tpl.php"); ?>
    182<a href="help.php" target="_blank" id="help"><?php echo _T("Help") ?> &raquo;</a>
    193<span class="switcher"><?php echo switcher("type", $types); ?></span>
     
    143127        ?>
    144128
     129    <form action="" method="post">
    145130    <table cellspacing="0" cellpadding="4" class="cycles entrys" width="100%">
    146131        <col />
    147132        <col />
     133        <col />
    148134        <col align="right" />
    149135        <col align="right" />
     
    167153        ?>
    168154
     155            <?php if (!$isphp) { ?>
     156            <th width="20">R</th>
     157            <?php } ?>
    169158            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Cache'); ?></a></th>
    170159            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('entry'); ?></a></th>
     
    210199            }
    211200
     201            if (!$isphp) {
     202                echo <<<ENTRY
     203                    <td><input type="checkbox" name="remove[]" value="{$name}"/></td>
     204ENTRY;
     205                $uname = urlencode($entry['name']);
     206                $namelink = "<a href=\"edit.php?name=$uname\">$name</a>";
     207            }
     208            else {
     209                $namelink = $name;
     210            }
     211
    212212            echo <<<ENTRY
    213213            <td>{$entry['cache_name']} {$i}</td>
    214             <td>{$name}</td>
     214            <td>{$namelink}</td>
    215215            <td int="{$entry['hits']}">{$entry['hits']}</td>
    216216            <td int="{$entry['refcount']}">{$entry['refcount']}</td>
     
    248248
    249249    </table>
     250    <input type="submit" value="<?php echo _T("Remove Selected"); ?>">
     251    </form>
    250252<?php
    251253    }
     
    262264}
    263265?>
    264 <div class="footnote">
    265 <?php echo <<<EOS
    266 Powered By: XCache {$xcache_version}, {$xcache_modules}
    267 EOS;
    268 ?>
    269 </div>
    270 
    271 </body>
    272 </html>
     266<?php include("footer.tpl.php"); ?>
Note: See TracChangeset for help on using the changeset viewer.