Changeset 1076 in svn for trunk


Ignore:
Timestamp:
2012-07-29T08:07:42+02:00 (3 years ago)
Author:
Xuefer
Message:

fix cycle color

Location:
trunk/htdocs/cacher/sub
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/cacher/sub/entrylist.tpl.php

    r1074 r1076  
    55<?php
    66
    7 $class = $cycleClass->next();
    87echo <<<TR
    9         <tr {$class}>
     8        <tr>
    109
    1110TR;
  • trunk/htdocs/cacher/sub/summary.tpl.php

    r1074 r1076  
    22<table cellspacing="0" cellpadding="4" class="cycles caches">
    33    <caption><?php echo _('Caches'); ?></caption>
    4     <tr <?php echo $cycleClass->next(); ?>>
     4    <tr>
    55    <?php echo
    66        th(N_("cache.cache"))
     
    3636    $l_confirm = _('Sure?');
    3737    foreach ($cacheinfos as $i => $ci) {
    38         echo "
    39         <tr ", $cycleClass->next(), ">";
     38        $class = $cycleClass->next();
     39        echo <<<TR
     40    <tr {$class}>
     41
     42TR;
    4043        $pvalue = (int) ($ci['avail'] / $ci['size'] * 100);
    4144        $pempty = 100 - $pvalue;
     
    121124        <td align="right">{$ci['deleted']}</td>
    122125        <td align="right">{$ci['gc']}</td>
     126
    123127EOS;
    124 
    125             $cycleClass->reset();
    126             ?>
     128        ?>
    127129    </tr>
    128     <?php } ?>
     130<?php } ?>
    129131</table>
    130132<div class="blockarea legends">
Note: See TracChangeset for help on using the changeset viewer.