Changeset 526 for trunk/admin/xcache.tpl.php
- Timestamp:
- 02/18/2008 01:28:31 PM (10 months ago)
- Files:
-
- 1 modified
-
trunk/admin/xcache.tpl.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/xcache.tpl.php
r522 r526 31 31 <th><?php echo _T('Size'); ?></th> 32 32 <th><?php echo _T('Avail'); ?></th> 33 <th><?php echo _T( '%'); ?></th>33 <th><?php echo _T(isset($free_graph_width) ? '% Free' : '% Used'); ?></th> 34 34 <th><?php echo _T('Clear'); ?></th> 35 35 <th><?php echo _T('Compiling'); ?></th> … … 54 54 echo " 55 55 <tr ", $a->next(), ">"; 56 $pavail = (int) ($ci['avail'] / $ci['size'] * 100); 57 $pused = 100 - $pavail; 58 59 $w = $free_graph_width; 56 $pvalue = (int) ($ci['avail'] / $ci['size'] * 100); 57 $pempty = 100 - $pvalue; 58 if (!isset($free_graph_width)) { 59 // swap 60 $tmp = $pvalue; 61 $pvalue = $pempty; 62 $pempty = $tmp; 63 } 64 65 $w = $graph_width; 60 66 $tdwidth = $w + 2; 61 67 if (empty($ci['istotal'])) { 62 68 $graph = freeblock_to_graph($ci['free_blocks'], $ci['size']); 63 $ freeblockgraph = "<div class=\"freeblockgraph\" style=\"width: {$w}px\">{$graph}</div>";69 $blocksgraph = "<div class=\"blocksgraph\" style=\"width: {$w}px\">{$graph}</div>"; 64 70 } 65 71 else { 66 $ freeblockgraph = '';72 $blocksgraph = ''; 67 73 } 68 74 … … 90 96 <td title="{$ci['size']}">{$ci_size}</td> 91 97 <td title="{$ci['avail']}">{$ci_avail}</td> 92 <td title="{$p avail} %" width="{$tdwidth}"98 <td title="{$pvalue} %" width="{$tdwidth}" 93 99 ><div class="percent" style="width: {$w}px" 94 ><div style="width: {$p avail}%" class="pavail"></div95 ><div style="width: {$p used}%" class="pused"></div100 ><div style="width: {$pvalue}%" class="pvalue"></div 101 ><div style="width: {$pempty}%" class="pempty"></div 96 102 ></div 97 >{$ freeblockgraph}</td>103 >{$blocksgraph}</td> 98 104 <td 99 105 ><form method="post"

