Ticket #3368: page.index.php.patch

File page.index.php.patch, 2.3 kB (added by Nick_Lewis, 3 years ago)
  • page.index.php

    old new  
    280280function show_sysinfo() { 
    281281  global $sysinfo; 
    282282  global $astinfo; 
    283   $out = "<h3>"._("Uptime")."</h3></br>"; 
    284   $out .= '<table>'; 
     283  $out = "<h3>"._("Uptime")."</h3><br />"; 
     284  $out .= '<table summary="system information table">'; 
    285285  /* 
    286286  $out .= '<tr><th>Distro:</th><td>'.$sysinfo->distro().'</td></tr>'; 
    287287  $out .= '<tr><th>Kernel:</th><td>'.$sysinfo->kernel().'</td></tr>'; 
     
    404404       
    405405      $domid = "notify_item_".str_replace(' ','_',$item['module']).'_'.str_replace(' ','_',$item['id']); 
    406406       
     407      $out .= "\n"; 
    407408      $out .= '<li id="'.$domid.'" '; 
    408409      if (isset($notify_classes[$item['level']])) { 
    409410        $out .= ' class="'.$notify_classes[$item['level']].'"'; 
    410411      } 
    411412      $out .= '><div>'; 
    412  
    413       $out .= '<h4 class="syslog_text">'; 
     413       
     414      $out .= '<div class="syslog_text">'; 
     415      $out .= '<h4>'; 
    414416      $out .= '<span><img src="images/'.$notify_classes[$item['level']].'.png" alt="'.$notify_descriptions[$item['level']].'" title="'.$notify_descriptions[$item['level']].'" width="16" height="16" border="0" />&nbsp;'; 
    415417      $out .= $item['display_text'].'</span>'; 
     418      $out .= '</h4>'; 
     419      $out .= "\n"; 
    416420      $out .= '<div class="notification_buttons">'; 
    417421      if (isset($item['candelete']) && $item['candelete']) { 
    418422        $out .= '<a class="notify_ignore_btn" title="'._('Delete this').'" '. 
     
    425429                '<img src="'.dirname($_SERVER['PHP_SELF']).'/images/notify_delete.png" width="16" height="16" border="0" alt="'._('Ignore this').'" /></a>'; 
    426430      } 
    427431      $out .= '</div>'; 
    428       $out .= '</h4>'; 
    429        
     432      $out .= '</div>'; 
     433      $out .= "\n"; 
    430434      $out .= '<div class="syslog_detail">'; 
    431435      $out .= nl2br($item['extended_text']); 
    432436      $out .= '<br/><span>'.sprintf('Added %s ago', time_string(time() - $item['timestamp'])).'<br/>'. 
     
    498502if (!$quietmode) { 
    499503  ?> 
    500504   
    501   <script language="javascript"> 
     505  <script type="text/javascript"> 
    502506  $(document).ready(function(){ 
    503507    $.ajaxTimeout( 20000 ); 
    504508    scheduleInfoUpdate(); 
     
    509513   
    510514  function makeSyslogClickable() { 
    511515    $('#syslog h4 span').click(function() { 
    512       $(this).parent().next('div').slideToggle('fast'); 
     516      $(this).parent().parent().next('div').slideToggle('fast'); 
    513517    }); 
    514518  } 
    515519