Changeset 10610

Show
Ignore:
Timestamp:
11/22/10 22:30:52 (2 years ago)
Author:
p_lindheimer
Message:

remove the feature code select box since now they are provided by Feature Code Admin module re #4653

Files:

Legend:

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

    r6354 r10610  
    3838$miscdests = miscdests_list(); 
    3939 
    40 // Make array of feature code for <SELECT> list 
    41 $featurecodes = featurecodes_getAllFeaturesDetailed(); 
    42 if (isset($featurecodes)) { 
    43   foreach ($featurecodes as $item) { 
    44     $moduledesc =isset($item['moduledescription'])?_($item['moduledescription']):null; 
    45     $moduleena = ($item['moduleenabled'] == 1 ? true : false); 
    46     if ($moduleena) { 
    47       $featureena = ($item['featureenabled'] == 1 ? true : false); 
    48       if ($featureena) { 
    49         $featureid = $item['modulename'] . ':' . $item['featurename']; 
    50         $featuredesc = _($item['featuredescription']); 
    51          
    52         $featurecodedefault = (isset($item['defaultcode']) ? $item['defaultcode'] : ''); 
    53         $featurecodecustom = (isset($item['customcode']) ? $item['customcode'] : ''); 
    54         $featureactualcode = ($featurecodecustom != '' ? $featurecodecustom : $featurecodedefault); 
    55          
    56         $fclist[$featureid] = $featuredesc." ($featureactualcode)"; 
    57       } 
    58     } 
    59   } 
    60   asort($fclist); 
    61 } 
    62  
    6340?> 
    6441 
     
    9269  } 
    9370 
    94   $helptext = _("Misc Destinations are for adding destinations that can be used by other FreePBX modules, generally used to route incoming calls. If you want to create feature codes that can be dialed by internal users and go to various destinations, please see the <strong>Misc Applications</strong> module."); 
    95  
    96  
     71  $helptext = _("Misc Destinations are for adding destinations that can be used by other FreePBX modules, generally used to route incoming calls. If you want to create feature codes that can be dialed by internal users and go to various destinations, please see the <strong>Misc Applications</strong> module.").' '._('If you need access to a Feature Code, such as *98 to dial voicemail or a Time Condition toggle, these destinations are now provided as Feature Code Admin destinations. For upgrade compatibility, if you previously had configured such a destination, it will still work but the Feature Code short cuts select list is not longer provided.'); 
    9772   
    9873    if ($extdisplay){ ?> 
     
    132107    <td> 
    133108      <input type="text" name="destdial" value="<?php echo (isset($destdial) ? $destdial : ''); ?>" tabindex="<?php echo ++$tabindex;?>">&nbsp;&nbsp; 
    134       <?php if (isset($fclist)) { ?> 
    135       <select id="fc" onchange="fc_onchange();" tabindex="<?php echo ++$tabindex;?>"> 
    136       <option value="">--<?php echo _("featurecode shortcuts"); ?>--</option> 
    137       <?php 
    138       foreach ($fclist as $fckey => $fcdesc) { 
    139         ?> 
    140         <option value="{<?php echo $fckey; ?>}"><?php echo _($fcdesc); ?></option> 
    141         <?php 
    142       } 
    143       ?> 
    144       </select> 
    145       <?php } ?> 
    146109    </td> 
    147110  </tr> 
    148  
    149    
    150111  <tr> 
    151112    <td colspan="2"><br><h6><input name="Submit" type="submit" value="<?php echo _("Submit Changes")?>" tabindex="<?php echo ++$tabindex;?>"></h6> 
     
    205166  return true; 
    206167} 
    207  
    208 function fc_onchange() { 
    209   theForm.destdial.value = theForm.fc.value; 
    210   theForm.fc.selectedIndex = 0; 
    211 } 
    212168//--> 
    213169</script>