1
0
Fork 0

added legends

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@527 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent fe7a0393ac
commit 1c102240f4

@ -78,6 +78,12 @@ $strings = array(
=> '建议参考',
'GC'
=> 'GC',
'Legends:'
=> '图例:',
'Used Blocks'
=> '已用块',
'Free Blocks'
=> '未用块',
'Total'
=> '总共',
'Cache'

@ -78,6 +78,12 @@ $strings = array(
=> '建議參考',
'GC'
=> 'GC',
'Legends:'
=> '图例:',
'Used Blocks'
=> '已用块',
'Free Blocks'
=> '未用块',
'Total'
=> '总共',
'Cache'

@ -21,7 +21,7 @@ form {margin: 0; padding: 0}
.percent { height: 3px; margin-bottom: 1px; background: gray; border: 1px solid gray; }
.percent div { float: left; height: 100%; }
.percent .pvalue { background: limegreen; }
.pvalue { background: limegreen; }
.blocksgraph { height: 16px; }
.blocksgraph div { float: left; height: 3px; width: 4px; border: solid gray; border-width: 0 0px 1px 0; }
@ -39,3 +39,6 @@ form {margin: 0; padding: 0}
dl { overflow: hidden; }
dt { font-weight: bold; clear: both; float: left; width: 100px; text-align: right; margin: 0; }
dd { margin: 0; }
.blockarea { overflow: hidden; _width: 1px; }
div.legend { float: left; border: 1px solid gray; font: 12px/12px monospace; }
div.legendtitle { float: left; padding: 2px; padding-right: 10px; font: 12px/12px monospace; }

@ -130,7 +130,16 @@ EOS;
</tr>
<?php } ?>
</table>
<div style="clear: both">&nbsp;</div>
<div class="blockarea legends">
<div class="legendtitle"><?php echo _T('Legends:'); ?></div>
<div class="legend pvalue">&nbsp;&nbsp;</div>
<div class="legendtitle"><?php echo _T(isset($free_graph_width) ? '% Free' : '% Used'); ?></div>
<div class="legend" style="background: rgb(0,0,255)">&nbsp;&nbsp;</div>
<div class="legendtitle"><?php echo _T(isset($free_graph_width) ? 'Free Blocks' : 'Used Blocks'); ?></div>
<div class="legend" style="background: rgb(255,0,0)">&nbsp;&nbsp;</div>
<div class="legendtitle"><?php echo _T('Hits'); ?></div>
<div>
</div>
<?php
if ($cachelist) {

Loading…
Cancel
Save