Changeset 3349
- Timestamp:
- 12/18/06 01:06:42 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php
r3224 r3349 649 649 ($checked? 'CHECKED=CHECKED' : '').' /> '; 650 650 $selectHtml .= '<label for="'.$radioid.'">'._($displayname['displayname']).':</label> '; 651 if ($checked) { $goto = $mod; }651 if ($checked) { $gotomod = $mod; } 652 652 $selectHtml .= '<select name="'.$mod.$i.'" onfocus="document.getElementById(\''.$radioid.'\').checked = true; this.form.goto'.$i.'.value=\''.$mod.'\';">'; 653 653 $selectHtml .= $options; … … 664 664 $selectHtml .= '<a href="#" class="info"> '._("Custom App<span><br>ADVANCED USERS ONLY<br><br>Uses Goto() to send caller to a custom context.<br><br>The context name <b>MUST</b> contain the word 'custom' and should be in the format custom-context , extension , priority. Example entry:<br><br><b>custom-myapp,s,1</b><br><br>The <b>[custom-myapp]</b> context would need to be created and included in extensions_custom.conf</span>").'</a>:'; 665 665 $selectHtml .= '<input type="text" size="15" name="custom'.$i.'" value="'.(strpos($goto,'custom') === false ? '' : $goto).'" onfocus="document.getElementById(\''.$radioid.'\').checked = true;" />'; 666 $selectHtml .= "\n<input type='hidden' name='goto$i' value='$goto'>"; 666 $gotomod = isset($gotomod)?$gotomod:'custom'; 667 $selectHtml .= "\n<input type='hidden' name='goto$i' value='$gotomod'>"; 667 668 668 669 //close off our row
