Changeset 11029

Show
Ignore:
Timestamp:
01/19/11 21:45:43 (2 years ago)
Author:
p_lindheimer
Message:

test tweaks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/core/page.advancedsettings.php

    r11026 r11029  
    66  } 
    77 
    8   // TODO: provide error info if errors were detected 
    9   //       change to json so we can send back info like what it was updated to 
    10   //       and other useful stuff 
    11   // 
    128  if($var['action'] === 'setkey') { 
    139    header("Content-type: application/json");  
     
    4238  echo '<div id="main_page">'; 
    4339  echo "<h2>"._("FreePBX Advanced Settings")."</h2>"; 
    44   echo '<p>'._("<b>IMPORTANT:</b> Use extreme caution when making changes!").'</p>'._("Some of these settings can render your system inoperable. You are urged to backup before making any changes. There may be more settings available then are currently shown. You can increase the of visible settings by changing the AS_DISPLAY_DETAIL_LEVEL under Advanced Settings Details. The settings shown at higher levels are less commonly use and can be more risky to change. Once you have made a change you must save it by checking the green check box that appears. You can restore to default settings by clicking on the icon to the right of the values."); 
     40  echo '<p>'._("<b>IMPORTANT:</b> Use extreme caution when making changes!").'</p>'._("Some of these settings can render your system inoperable. You are urged to backup before making any changes. There may be more settings available then are currently shown. You can increase the of visible settings by changing the 'Display Detail Level under Advanced Settings Details. The settings shown at higher levels are less commonly use and are more risky to change. Once changed you must save the setting by checking the green check box that appears. You can restore the default setting by clicking on the icon to the right of the values."); 
    4541 
    4642  $conf = $freepbx_conf->get_conf_settings(); 
     
    5652  foreach ($conf as $c){ 
    5753 
    58     // TODO: localization by module here, put in the gettext with the module info and try that first like other places 
    59     // 
    6054    if ($c['level'] > $display_level || $c['hidden'] && !$display_hidden || $c['readonly'] && !$display_readonly) { 
    6155      continue; 
     
    139133    echo '</td>'; 
    140134    if(!$c['readonly']){ 
    141       //echo '<td><input type="image" class="adv_set_default" src="images/default-option.png" data-key="'.$c['keyword'].'" data-default="'.$c['defaultval'].'" name="default" title="'._('Revert to Default').'"></td>'; 
    142135      echo '<td><input type="image" class="adv_set_default" src="images/default-option.png" data-key="'.$c['keyword'].'" data-default="'.$c['defaultval'].'" title="'._('Revert to Default').'"' 
    143136        . 'data-type="' . (($c['type'] == CONF_TYPE_BOOL) ? 'BOOL' : '') . '" '  
     
    153146  echo '</table>'; 
    154147 
    155 // Ugly, but I need to display the whole help text within the page     
     148// Provide enough padding at the bottom (<br />) so that the tooltip from the last setting does not get cut off. 
    156149?> 
    157150<br /><br /> <br />