Changeset 1363

Show
Ignore:
Timestamp:
08/31/08 15:13:36 (4 years ago)
Author:
networkfusion
Message:

* Updated some table row elements to support Odd/Even? CSS. This also closes #382

Location:
trunk/wifidog-auth
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/CHANGELOG

    r1362 r1363  
    11# $Id$ 
     22008-08-31 Robin Jones 
     3        * Updated some table row elements to support Odd/Even CSS. This also closes #382 
     4 
    252008-08-28 Benoit Grégoire  <bock@step.polymtl.ca> 
    36        * Fix #492 
  • trunk/wifidog-auth/wifidog/admin/templates/user_log.html

    r1169 r1363  
    2020</tr> 
    2121{section name=i loop=$users_array} 
    22 <tr> 
     22<tr class="{cycle values="odd,even"}"> 
    2323                     
    2424 
  • trunk/wifidog-auth/wifidog/classes/DependenciesList.php

    r1308 r1363  
    138138           $html .= "<th>"._("Information")."</th>\n"; 
    139139           $html .= "</tr>\n"; 
    140  
     140            
     141           $even_odd =  "odd"; 
    141142           foreach ($components as $dependency) { 
    142                $html .= "<tr>\n"; 
     143               $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even';         
     144               $html .= "<tr class=" . $even_odd . ">\n"; 
    143145               $websiteUrl = $dependency->getWebsiteURL(); 
    144146               $component_key = $dependency->getId(); 
  • trunk/wifidog-auth/wifidog/classes/StatisticReport/NodeStatus.php

    r1253 r1363  
    102102                $db->execSql("SELECT node_id, name, (CURRENT_TIMESTAMP-last_heartbeat_timestamp) AS since_last_heartbeat, last_heartbeat_ip, CASE WHEN ((CURRENT_TIMESTAMP-last_heartbeat_timestamp) < interval '5 minutes') THEN true ELSE false END AS is_up, creation_date FROM nodes WHERE node_id = '{$node_id}'", $rows, false); 
    103103 
    104                 $html .= ($rows[0]['is_up'] == 't') ? "<tr class='even'>" : "<tr class='red'>"; 
     104                $html .= ($rows[0]['is_up'] == 't') ? "<tr class='even up'>" : "<tr class='even down'>"; 
    105105                $html .= "  <th>"._("WifiDog status")."</th>"; 
    106106                $html .= "  <td>"; 
    107                 $html .= ($rows[0]['is_up'] == 't') ? "UP" : "<span class='red'>DOWN</span>"; 
     107                $html .= ($rows[0]['is_up'] == 't') ? "UP" : "<span class='down'>DOWN</span>"; 
    108108                $html .= "</td>"; 
    109109                $html .= "<tr class='odd'>";