Changeset 3120
- Timestamp:
- 11/20/06 14:26:56 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/components.class.php
r3119 r3120 47 47 default: 48 48 $this->_guielems_middle[$section][$sortorder][] = $guielem; 49 if (!isset($placement)) { 50 $this->_guielems_middle[$section]['placement'] = $sortorder; 51 } else { 52 $this->_guielems_middle[$section]['placement'] = $placement; 49 if (!isset($this->_guielems_middle[$section]['placement'])) { 50 if (!isset($placement)) { 51 $this->_guielems_middle[$section]['placement'] = $sortorder; 52 } else { 53 $this->_guielems_middle[$section]['placement'] = $placement; 54 } 53 55 } 54 56 break; freepbx/trunk/amp_conf/htdocs/admin/modules/core/functions.inc.php
r3064 r3120 2315 2315 } 2316 2316 if ( $extdisplay ) { 2317 $currentcomponent->addguielem($section, new gui_hidden('extension', $extdisplay) );2317 $currentcomponent->addguielem($section, new gui_hidden('extension', $extdisplay), 2); 2318 2318 } else { 2319 $currentcomponent->addguielem($section, new gui_textbox('extension', $extdisplay, 'User Extension', 'The extension number to dial to reach this user.', '!isInteger()', $msgInvalidExtNum, false) );2319 $currentcomponent->addguielem($section, new gui_textbox('extension', $extdisplay, 'User Extension', 'The extension number to dial to reach this user.', '!isInteger()', $msgInvalidExtNum, false), 3); 2320 2320 } 2321 2321 if ( $display != 'extensions' ) { … … 2327 2327 2328 2328 $section = 'Extension Options'; 2329 $currentcomponent->addguielem($section, new gui_textbox('directdid', $directdid, 'Direct DID', "The direct DID that is associated with this extension. The DID should be in the same format as provided by the provider (e.g. full number, 4 digits for 10x4, etc).<br><br>Format should be: <b>XXXXXXXXXX</b><br><br>Leave this field blank to disable the direct DID feature for this extension. All non-numeric characters will be stripped.") );2329 $currentcomponent->addguielem($section, new gui_textbox('directdid', $directdid, 'Direct DID', "The direct DID that is associated with this extension. The DID should be in the same format as provided by the provider (e.g. full number, 4 digits for 10x4, etc).<br><br>Format should be: <b>XXXXXXXXXX</b><br><br>Leave this field blank to disable the direct DID feature for this extension. All non-numeric characters will be stripped."), 3); 2330 2330 $currentcomponent->addguielem($section, new gui_textbox('didalert', $didalert, 'DID Alert Info', "Alert Info can be used for distinctive ring on SIP phones. Set this value to the desired Alert Info to be sent to the phone when this DID is called. Leave blank to use default values. Will have no effect if no Direct DID is set")); 2331 2331 $currentcomponent->addguielem($section, new gui_textbox('outboundcid', $outboundcid, 'Outbound CID', "Overrides the caller id when dialing out a trunk. Any setting here will override the common outbound caller id set in the Trunks admin.<br><br>Format: <b>\"caller name\" <#######></b><br><br>Leave this field blank to disable the outbound callerid feature for this user.", '!isCallerID()', $msgInvalidOutboundCID, true)); … … 2337 2337 $section = 'Fax Handling'; 2338 2338 $wait = (isset($wait) ? $wait : '0'); 2339 $currentcomponent->addguielem($section, new gui_selectbox('faxexten', $currentcomponent->getoptlist('faxdestoptions'), $faxexten, 'Fax Extension', "Select 'system' to have the system receive and email faxes.<br><br>The freePBX default is defined in General Settings.", false) );2339 $currentcomponent->addguielem($section, new gui_selectbox('faxexten', $currentcomponent->getoptlist('faxdestoptions'), $faxexten, 'Fax Extension', "Select 'system' to have the system receive and email faxes.<br><br>The freePBX default is defined in General Settings.", false), 4); 2340 2340 $currentcomponent->addguielem($section, new gui_textbox('faxemail', $faxemail, 'Fax Email', "Email address is used if 'system' has been chosen for the fax extension above.<br><br>Leave this blank to use the freePBX default in General Settings")); 2341 2341 $currentcomponent->addguielem($section, new gui_selectbox('answer', $currentcomponent->getoptlist('faxdetecttype'), $answer, 'Fax Detection Type', "Selecting Zaptel or NVFax will immediately answer the call and play ringing tones to the caller for the number of seconds in Pause below. Use NVFax on SIP or IAX trunks.", false)); … … 2344 2344 $section = 'Privacy'; 2345 2345 $privacyman = (isset($privacyman) ? $privacyman : '0'); 2346 $currentcomponent->addguielem($section, new gui_selectbox('privacyman', $currentcomponent->getoptlist('privyn'), $privacyman, 'Privacy Manager', "If no Caller ID is sent, Privacy Manager will asks the caller to enter their 10 digit phone number. The caller is given 3 attempts.", false) );2346 $currentcomponent->addguielem($section, new gui_selectbox('privacyman', $currentcomponent->getoptlist('privyn'), $privacyman, 'Privacy Manager', "If no Caller ID is sent, Privacy Manager will asks the caller to enter their 10 digit phone number. The caller is given 3 attempts.", false), 4); 2347 2347 2348 2348 } … … 2588 2588 2589 2589 if ( $devoptarr['level'] == 0 || ($extdisplay && $devoptarr['level'] == 1) ) { // editing to show advanced as well 2590 $currentcomponent->addguielem($section, new gui_textbox($devopname, $devoptcurrent, $devopt, '', $devoptjs, $devoptfailmsg) );2590 $currentcomponent->addguielem($section, new gui_textbox($devopname, $devoptcurrent, $devopt, '', $devoptjs, $devoptfailmsg), 4); 2591 2591 } else { // add so only basic 2592 $currentcomponent->addguielem($section, new gui_hidden($devopname, $devoptcurrent) );2592 $currentcomponent->addguielem($section, new gui_hidden($devopname, $devoptcurrent), 4); 2593 2593 } 2594 2594
