Changeset 7222

Show
Ignore:
Timestamp:
11/04/08 13:59:44 (3 years ago)
Author:
mickecarlsson
Message:

Closes #3368 fixes various errors in css, html and javascript

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/htdocs/admin/common/mainstyle.css

    r7061 r7222  
    231231  width: 180px; 
    232232  font-size:12px; 
    233   background-color: none
     233  background-color: transparent
    234234} 
    235235#login_message a:link { 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/functions.inc.php

    r7139 r7222  
    393393      $extext = _("The following commands failed with the listed error"); 
    394394      foreach ($error_arr as $item) { 
    395         $extext .= "<br>".$item[0]." (".$item[1].")"; 
     395        $extext .= "<br />".$item[0]." (".$item[1].")"; 
    396396      } 
    397397      $nt->add_error('cron_manager', 'EXECFAIL', $text, $extext, '', true, true); 
     
    14171417  $results = $db->$type($sql,$fetchmode); 
    14181418  if(DB::IsError($results)) { 
    1419     die_freepbx($results->getDebugInfo() . "SQL - <br> $sql" ); 
     1419    die_freepbx($results->getDebugInfo() . "SQL - <br /> $sql" ); 
    14201420  } 
    14211421  return $results; 
     
    20292029    $selectHtml .=  '<select name="'.$cat_identifier.$i.'" onfocus="document.getElementById(\''.$radioid.'\').checked = true; this.form.goto'.$i.'.value=\''.$cat.'\';">'; 
    20302030    $selectHtml .= $options;   
    2031     $selectHtml .=  "</select><br>\n"; 
     2031    $selectHtml .=  "</select><br />\n"; 
    20322032 
    20332033    if ($checked) $foundone = true; 
     
    23112311  $cnt = count($diff_modules); 
    23122312  if ($cnt) { 
    2313     $extext = _("The following new modules are available for download. Click delete icon on the right to remove this notice.")."<br>"; 
     2313    $extext = _("The following new modules are available for download. Click delete icon on the right to remove this notice.")."<br />"; 
    23142314    foreach ($diff_modules as $mod) { 
    2315       $extext .= $mod['rawname']." (".$mod['version'].")<br>"; 
     2315      $extext .= $mod['rawname']." (".$mod['version'].")<br />"; 
    23162316    } 
    23172317    $notifications->add_notice('freepbx', 'NEWMODS', sprintf(_('%s New modules are available'),$cnt), $extext, '', $reset_value, true); 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/views/freepbx.php

    r6844 r7222  
    4040 
    4141?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
     42<!-- should also validate ok with DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/xhtml1-transitional.dtd" --> 
    4243<html> 
    4344 
    4445<head> 
    4546  <title><?php  echo _($title) ?></title> 
    46   <meta http-equiv="Content-Type" content="text/html"
    47   <link href="common/mainstyle.css" rel="stylesheet" type="text/css"
     47  <meta http-equiv="Content-Type" content="text/html" /
     48  <link href="common/mainstyle.css" rel="stylesheet" type="text/css" /
    4849<?php if (isset($use_nav_background) && $use_nav_background) { ?> 
    4950  <style type="text/css"> 
     
    5556  </style> 
    5657<?php } ?> 
    57   <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico"
     58  <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico" /
    5859  <!--[if IE]> 
    59   <link href="common/ie.css" rel="stylesheet" type="text/css"
     60  <link href="common/ie.css" rel="stylesheet" type="text/css" /
    6061  <![endif]-->   
    61   <meta http-equiv="Content-Type" content="text/html;charset=utf-8"
     62  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /
    6263<?php  
    6364  // check if in the amp configuration the user has set that 
     
    6970      ($amp_conf["ALTERNATIVE_CSS"] == "yes") || 
    7071      ($amp_conf["ALTERNATIVE_CSS"] == "true")) 
    71       echo "\t<link href=\"common/mainstyle-alternative.css\" rel=\"stylesheet\" type=\"text/css\">"; 
     72      echo "\t<link href=\"common/mainstyle-alternative.css\" rel=\"stylesheet\" type=\"text/css\" />"; 
    7273  } 
    7374 
    7475  if (isset($module_name)) { 
    7576    if (is_file('modules/'.$module_name.'/'.$module_name.'.css')) { 
    76       echo "\t".'<link href="'.$_SERVER['PHP_SELF'].'?handler=file&amp;module='.$module_name.'&amp;file='.$module_name.'.css" rel="stylesheet" type="text/css">'."\n"; 
     77      echo "\t".'<link href="'.$_SERVER['PHP_SELF'].'?handler=file&amp;module='.$module_name.'&amp;file='.$module_name.'.css" rel="stylesheet" type="text/css" />'."\n"; 
    7778    } 
    7879    if (isset($module_page) && ($module_page != $module_name) && is_file('modules/'.$module_name.'/'.$module_page.'.css')) { 
    79       echo "\t".'<link href="'.$_SERVER['PHP_SELF'].'?handler=file&amp;module='.$module_name.'&amp;file='.$module_page.'.css" rel="stylesheet" type="text/css">'."\n"; 
     80      echo "\t".'<link href="'.$_SERVER['PHP_SELF'].'?handler=file&amp;module='.$module_name.'&amp;file='.$module_page.'.css" rel="stylesheet" type="text/css" />'."\n"; 
    8081    } 
    8182    if (is_file('modules/'.$module_name.'/'.$module_name.'.js')) { 
     
    157158  $help_args = "?freepbx_version=".urlencode($version); 
    158159  if (isset($_REQUEST['display'])) { 
    159     $help_args .= "&freepbx_menuitem=".urlencode($_REQUEST['display']); 
     160    $help_args .= "&amp;freepbx_menuitem=".urlencode($_REQUEST['display']); 
    160161  } 
    161162   
     
    170171  print_sub_tool( _("Recordings"), "../recordings/index.php"  ,0, NULL, "ari" ); 
    171172  print_sub_tool( _("Help"), "http://www.freepbx.org/freepbx-help-system$help_args"  ,0, NULL, "help" ); 
    172   echo "<li class=\"last\"><a >&nbsp</a></li>"; 
     173  echo "<li class=\"last\"><a>&nbsp;</a></li>"; 
    173174  echo "\t\t</ul>\n"; 
    174175 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/views/freepbx_admin.php

    r7210 r7222  
    6060    } 
    6161  } 
    62   echo "<li class=\"last\"><a><span> </span></a></li>"; 
     62  echo "<li class=\"last\"><a><span>&nbsp;</span></a></li>"; 
    6363  echo "</ul>\n"; 
    6464   
     
    189189  <?php 
    190190  echo '<a target="_blank" href="http://www.freepbx.org"><img id="footer_logo" src="images/freepbx_small.png" alt="FreePBX&reg;"/></a>'; 
    191   echo '<h3>'.'Freedom to Connect<sup>&reg</sup>'.'</h3>'; 
     191  echo '<h3>'.'Freedom to Connect<sup>&reg;</sup>'.'</h3>'; 
    192192  echo "\t\t".sprintf(_('%s is a registered trademark of %s'), 
    193193       '<a href="http://www.freepbx.org" target="_blank">'._('FreePBX').'</a>', 
  • freepbx/branches/2.5/amp_conf/htdocs/admin/views/freepbx_reload.php

    r4993 r7222  
    33    /* 
    44    $.blockUI($('#reloadBox')[0], { width: '400px' }); 
    5     $(document.body).append('<div style="width:100%; height:100%; background:#ccc; opacity:50%;"></div>');  
     5    $(document.body).append("<div style=\"width:100%; height:100%; background:#ccc; opacity:50%;\"><\/div>");  
    66    */ 
    77     
     
    6464            } else { 
    6565              // there was a problem 
    66               var responsetext = '<h3>' + data.message + '</h3>  <div class="moreinfo">'; 
     66              var responsetext = '<h3>' + data.message + "<\/h3>" + '<div class="moreinfo">'; 
    6767 
    68               responsetext += '<p><pre>' + data.retrieve_conf + '</pre></p>'
     68              responsetext += '<p><pre>' + data.retrieve_conf + "<\/pre><\/p>"
    6969                         
    7070              if (data.num_errors) { 
    71                 responsetext += '<p>' + data.num_errors + ' <?php echo _(' error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.'); ?></p>'
     71                responsetext += '<p>' + data.num_errors + ' <?php echo _(' error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.'); ?> ' + "<\/p>"
    7272              } 
    7373             
    74               responsetext += '</div>'
    75                               '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="<?php echo _('Close'); ?>" />&nbsp;<?php echo _('Close'); ?></a>'
    76                               '&nbsp;&nbsp;&nbsp;<a id="reload_retry_btn" href="#" onclick="run_reload();"><img src="images/arrow_rotate_clockwise.png" height="16" width="16" border="0" alt="<?php echo _('Retry'); ?>" />&nbsp;<?php echo _('Retry'); ?></a> </div>'
     74              responsetext += "<\/div>"
     75                              '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="<?php echo _('Close'); ?>" />&nbsp;<?php echo _('Close'); ?>' + "<\/a>"
     76                              '&nbsp;&nbsp;&nbsp;<a id="reload_retry_btn" href="#" onclick="run_reload();"><img src="images/arrow_rotate_clockwise.png" height="16" width="16" border="0" alt="<?php echo _('Retry'); ?>" />&nbsp;<?php echo _('Retry'); ?>' + "<\/a> <\/div>"
    7777 
    7878              $('#reload_response').html(responsetext); 
     
    8686          error: function(reqObj, status) { 
    8787            $('#reload_response').html( 
    88               '<p><?php echo _('Error: Did not receive valid response from server'); ?></p>' +  
    89               '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="<?php echo _('Close'); ?>" />&nbsp;<?php echo _('Close'); ?></a></div>' 
     88              '<p><?php echo _('Error: Did not receive valid response from server'); ?>' + "<\/p>" +  
     89              '<div class="buttons"><a id="reload_response_close_btn" href="#" onclick="freepbx_stop_reload();"><img src="images/cancel.png" height="16" width="16" border="0" alt="<?php echo _('Close'); ?>" />&nbsp;<?php echo _('Close'); ?>' + "<\/a><\/div>" 
    9090            ); 
    9191            $("#reload_reloading").slideUp(150, function() { 
  • modules/branches/2.6/dashboard/dashboard.css

    r4721 r7222  
    3535.infobox h3 { 
    3636  color: white; 
    37   margin-bottom:2
     37  margin-bottom:2px
    3838  margin-top:3px; 
    3939} 
  • modules/branches/2.6/dashboard/page.index.php

    r6990 r7222  
    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>'; 
     
    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']])) { 
     
    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']) { 
     
    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']); 
     
    499503  ?> 
    500504   
    501   <script language="javascript"> 
     505  <script type="text/javascript"> 
    502506  $(document).ready(function(){ 
    503507    $.ajaxTimeout( 20000 ); 
     
    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  }