Changeset 5903
- Timestamp:
- 07/04/08 11:16:00 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/components.class.php
r5398 r5903 1 1 <?php 2 // TODO: * Test 'processfunctions' 2 // This is a global to be used by gettabindex() 3 // 4 $_guielement_tabindex = 1; 3 5 4 6 class component { … … 274 276 275 277 function generateconfigpage() { 278 276 279 $htmlout = ''; 277 280 $formname = "frm_$this->_compname"; … … 312 315 $htmlout .= "\t<tr>\n"; 313 316 $htmlout .= "\t\t<td colspan=\"2\">"; 314 $htmlout .= "<h5>" . _($section) . "< /h5><hr>";317 $htmlout .= "<h5>" . _($section) . "<hr></h5>"; 315 318 $htmlout .= "</td>\n"; 316 319 $htmlout .= "\t</tr>\n"; … … 448 451 return $this->_javascript; 449 452 } 453 function gettabindex() { 454 global $_guielement_tabindex; 455 return $_guielement_tabindex; 456 } 457 function settabindex($new_tab) { 458 global $_guielement_tabindex; 459 $_guielement_tabindex = $new_tab; 460 } 450 461 } 451 462 … … 560 571 561 572 $maxlength = ($maxchars > 0) ? " maxlength=\"$maxchars\"" : ''; 562 $this->html_input = "<input type=\"text\" name=\"$this->_elemname\" id=\"$this->_elemname\"$maxlength value=\"" . htmlentities($this->currentvalue) . "\">"; 573 $tabindex = guielement::gettabindex(); 574 $this->html_input = "<input type=\"text\" name=\"$this->_elemname\" id=\"$this->_elemname\"$maxlength tabindex=$tabindex value=\"" . htmlentities($this->currentvalue) . "\">"; 563 575 } 564 576 } … … 572 584 573 585 $maxlength = ($maxchars > 0) ? " maxlength=\"$maxchars\"" : ''; 574 $this->html_input = "<input type=\"password\" name=\"$this->_elemname\" id=\"$this->_elemname\"$maxlength value=\"" . htmlentities($this->currentvalue) . "\">"; 586 $tabindex = guielement::gettabindex(); 587 $this->html_input = "<input type=\"password\" name=\"$this->_elemname\" id=\"$this->_elemname\"$maxlength tabindex=$tabindex value=\"" . htmlentities($this->currentvalue) . "\">"; 575 588 } 576 589 } … … 597 610 $onchange = ($onchange != '') ? " onchange=\"$onchange\"" : ''; 598 611 599 $output .= "\n\t\t\t<select name=\"$this->_elemname\" id=\"$this->_elemname\"$onchange>\n"; 612 $tabindex = guielement::gettabindex(); 613 $output .= "\n\t\t\t<select name=\"$this->_elemname\" id=\"$this->_elemname\" tabindex=$tabindex $onchange >\n"; 600 614 // include blank option if required 601 615 if ($canbeempty) … … 637 651 $itemchecked = ($currentvalue == $itemvalue) ? ' checked=checked' : ''; 638 652 639 $output .= "<input type=\"radio\" name=\"$this->_elemname\" id=\"$this->_elemname\" value=\"$this->_elemname=$itemvalue\"$itemchecked/>$itemtext \n"; 653 $tabindex = guielement::gettabindex(); 654 $output .= "<input type=\"radio\" name=\"$this->_elemname\" id=\"$this->_elemname\" tabindex=$tabindex value=\"$this->_elemname=$itemvalue\"$itemchecked/>$itemtext \n"; 640 655 } 641 656 return $output; … … 662 677 // this effectivly creates the template using the html_text 663 678 // we would expect the $html_text to be set by the child class 664 679 665 680 $output = ''; 666 681
