Changeset 10610
- Timestamp:
- 11/22/10 22:30:52 (2 years ago)
- Files:
-
- modules/branches/2.9/miscdests/page.miscdests.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/miscdests/page.miscdests.php
r6354 r10610 38 38 $miscdests = miscdests_list(); 39 39 40 // Make array of feature code for <SELECT> list41 $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 63 40 ?> 64 41 … … 92 69 } 93 70 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.'); 97 72 98 73 if ($extdisplay){ ?> … … 132 107 <td> 133 108 <input type="text" name="destdial" value="<?php echo (isset($destdial) ? $destdial : ''); ?>" tabindex="<?php echo ++$tabindex;?>"> 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 <?php138 foreach ($fclist as $fckey => $fcdesc) {139 ?>140 <option value="{<?php echo $fckey; ?>}"><?php echo _($fcdesc); ?></option>141 <?php142 }143 ?>144 </select>145 <?php } ?>146 109 </td> 147 110 </tr> 148 149 150 111 <tr> 151 112 <td colspan="2"><br><h6><input name="Submit" type="submit" value="<?php echo _("Submit Changes")?>" tabindex="<?php echo ++$tabindex;?>"></h6> … … 205 166 return true; 206 167 } 207 208 function fc_onchange() {209 theForm.destdial.value = theForm.fc.value;210 theForm.fc.selectedIndex = 0;211 }212 168 //--> 213 169 </script>
