Changeset 538
- Timestamp:
- 03/02/2008 06:05:02 AM (9 months ago)
- Location:
- trunk/admin
- Files:
-
- 2 modified
-
xcache.css (modified) (1 diff)
-
xcache.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/xcache.css
r535 r538 31 31 .hitsgraph { height: 20px; margin: auto; } 32 32 .hitsgraph div { float: left; width: 2px; height: 100%; } 33 .hitsgraph div:hover { background: gray; } 33 34 .hitsgraph div div { float: none; width: 100%; } 34 35 .hitsgraph div div.barf { border: 0px solid gray; border-width: 1px 0 0 0; } -
trunk/admin/xcache.php
r535 r538 152 152 } 153 153 154 function bar_ percent($percent, $active)154 function bar_hits_percent($v, $percent, $active) 155 155 { 156 156 $r = 220 + (int) ($percent * 25); … … 158 158 $percent = (int) ($percent * 100); 159 159 $a = $active ? ' active' : ''; 160 return '<div >'160 return '<div title="' . $v . '">' 161 161 . '<div class="barf' . $a . '" style="height: ' . (100 - $percent) . '%"></div>' 162 162 . '<div class="barv' . $a . '" style="background: rgb(' . "$r,$g,$b" . '); height: ' . $percent . '%"></div>' … … 178 178 $html = array(); 179 179 foreach ($hits as $i => $v) { 180 $html[] = bar_ percent($v / $max, $i == $t);180 $html[] = bar_hits_percent($v, $v / $max, $i == $t); 181 181 } 182 182 return implode('', $html);

