Changeset 1083

Show
Ignore:
Timestamp:
05/13/2008 06:32:49 PM (2 years ago)
Author:
DarTar
Message:

alternate rows and styling, refs #1

Location:
trunk/handlers
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/handlers/referrers/referrers.php

    r1076 r1083  
    163163$refdel = NULL;                                                 # referrer records deleted 
    164164$bladd = NULL;                                                  # blacklist records added 
     165$r = 1;                                                                 # row counter 
    165166 
    166167// ------------------------------------- 
     
    574575                echo '<thead>'; 
    575576                echo '<tr><th class="hits" scope="col">'.LIST_HEAD_HITS.'</th>'; 
    576                 if ($isAdmin) echo '<th class="action" scope="col">'.LIST_HEAD_ACTION.'</th>'; 
     577                if ($isAdmin) echo '<th class="action c2" scope="col">'.LIST_HEAD_ACTION.'</th>'; 
    577578                echo '<th class="refs" scope="col">'.$refshead.'</th></tr>'."\n"; 
    578579                echo '</thead>'."\n"; 
     
    590591                                $ref    = $this->htmlspecialchars_ent($referrer['referrer']); 
    591592                        } 
    592                         echo '<tr>'; 
     593                        echo '<tr'.(($r%2)? '' : ' class="alt"').'>'."\n"; #enable alternate row color                  echo '<td class="hits">'.$hits.'</td>'; 
    593594                        echo '<td class="hits">'.$hits.'</td>'; 
    594                         if ($isAdmin) echo '<td class="action">'.sprintf($blacklink,$ref,$redir).'</td>'; 
     595                        if ($isAdmin) echo '<td class="action c2">'.sprintf($blacklink,$ref,$redir).'</td>'; 
    595596                        if ($sites) 
    596597                        { 
     
    602603                        } 
    603604                        echo '</tr>'."\n"; 
     605                        $r++; 
    604606                } 
    605607 
  • trunk/handlers/review_blacklist/review_blacklist.php

    r1073 r1083  
    6060$loggedin = ($isAdmin) ? TRUE : (bool)$this->GetUser(); 
    6161$pre = $this->config['table_prefix']; 
     62$r = 1;                                                                 # row counter 
    6263 
    6364$queryd = ''; 
     
    289290                echo '<table id="reflist" class="data" summary="'.$summary.'">'."\n"; 
    290291                echo '<thead>'; 
    291                 if ($isAdmin) echo '<th class="action" scope="col">'.LIST_HEAD_ACTION.'</th>'; 
     292                if ($isAdmin) echo '<th class="action c2" scope="col">'.LIST_HEAD_ACTION.'</th>'; 
    292293                echo '<th class="refs" scope="col">'.$refshead.'</th></tr>'."\n"; 
    293294                echo '</thead>'."\n"; 
     
    296297                { 
    297298                        $ref    = $this->htmlspecialchars_ent($spammer['spammer']); 
    298                         echo '<tr>'; 
    299                         if ($isAdmin) echo '<td class="action">'.sprintf($removelink,$ref).'</td>'; 
     299                        echo '<tr'.(($r%2)? '' : ' class="alt"').'>'."\n"; #enable alternate row color                  echo '<td class="hits">'.$hits.'</td>'; 
     300                        if ($isAdmin) echo '<td class="action c2">'.sprintf($removelink,$ref).'</td>'; 
    300301                        echo '<td class="refs">'.$ref.'</td>'; 
    301302                        echo '</tr>'."\n"; 
     303                        $r++; 
    302304                } 
    303305                echo '</tbody>'."\n"; 
     
    307309        { 
    308310                echo '<h4 id="'.$idResult.'">'.$result.'</h4>'."\n"; 
    309                 echo '<p><em>'.NONE_NOTE.'</em></p>'."\n"; 
     311                echo '<p><em class="error">'.NONE_NOTE.'</em></p>'."\n"; 
    310312        } 
    311313}