Changeset 108
- Timestamp:
- 08/27/2006 12:54:34 PM (7 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 modified
-
xcache.css (modified) (1 diff)
-
xcache.tpl.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/xcache.css
r107 r108 10 10 .freeblocks { float: left; margin-right: 4px;} 11 11 form {margin: 0; padding: 0} 12 .percent { border: 1px solid gray; width: 90%; } 13 .percent .v { background: black; font-size: 1px; line-height: 11px;} 12 .percent { border: 1px solid black; width: 80%; height: 100%; } 13 .percent div { font-size: 1px; line-height: 1px; width: 100%;} 14 .percent .pavail { background: blue; } 14 15 .switcher, h1 { text-align: center; display: block; } 15 16 .switcher * { color: blue; } -
trunk/admin/xcache.tpl.php
r107 r108 44 44 <th>Size</th> 45 45 <th>Avail</th> 46 <th> Used</th>46 <th>%</th> 47 47 <th>Clear</th> 48 48 <th>Compiling</th> … … 59 59 foreach ($cacheinfos as $i => $ci) { 60 60 echo " 61 <tr ", $a->next(), ">"; 61 <tr ", $a->next(), " height=\"20\">"; 62 $pavail = (int) ($ci['avail'] / $ci['size'] * 100); 63 $pused = 100 - $pavail; 64 62 65 $ci = number_formats($ci, $numkeys); 63 66 $ci['compiling'] = $ci['type'] == $type_php ? ($ci['compiling'] ? 'yes' : 'no') : '-'; 64 67 $ci['can_readonly'] = $ci['can_readonly'] ? 'yes' : 'no'; 65 66 $percent = (int) (($ci['size'] - $ci['avail']) / $ci['size'] * 100);67 68 echo <<<EOS 68 69 <th>{$ci['cache_name']}</th> … … 70 71 <td>{$ci['size']}</td> 71 72 <td>{$ci['avail']}</td> 72 <td ><div class="percent"><div style="width: $percent%" class="v"> </div></div></td>73 <td title="{$pavail} %"><div class="percent"><div style="height: {$pused}%" class="pused"> </div><div style="height: {$pavail}%" class="pavail"> </div></div></td> 73 74 <td> 74 75 <form method="post">

