Changeset 6767
- Timestamp:
- 09/17/08 19:21:08 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.5/amp_conf/htdocs/admin/components.class.php
r6756 r6767 3 3 // 4 4 $_guielement_tabindex = 1; 5 $_guielement_formfields = 0; 5 6 6 7 class component { … … 354 355 $tabindex = guielement::gettabindex(); 355 356 // End of table 356 $htmlout .= "\t<tr>\n"; 357 $htmlout .= "\t\t<td colspan=\"2\">"; 358 $htmlout .= "<h6>"; 359 $htmlout .= "<input name=\"Submit\" type=\"submit\" tabindex=\"$tabindex\" value=\""._("Submit")."\">"; 360 $htmlout .= "</h6>"; 361 $htmlout .= "</td>\n"; 362 $htmlout .= "\t</tr>\n"; 357 358 // Don't put a submit button if there were not form fields generated 359 // 360 if (guielement::getformfields()) { 361 $htmlout .= "\t<tr>\n"; 362 $htmlout .= "\t\t<td colspan=\"2\">"; 363 $htmlout .= "<h6>"; 364 $htmlout .= "<input name=\"Submit\" type=\"submit\" tabindex=\"$tabindex\" value=\""._("Submit")."\">"; 365 $htmlout .= "</h6>"; 366 $htmlout .= "</td>\n"; 367 $htmlout .= "\t</tr>\n"; 368 } 363 369 $htmlout .= "</table><!-- end of table $formname -->\n\n"; 364 370 … … 473 479 $_guielement_tabindex = $new_tab; 474 480 } 481 function incrementfields() { 482 global $_guielement_formfields; 483 $_guielement_formfields++; 484 } 485 function getformfields() { 486 global $_guielement_formfields; 487 return $_guielement_formfields; 488 } 475 489 } 476 490 … … 524 538 // this will be the html that makes up the input element 525 539 $this->html_input = ''; 540 guielement::incrementfields(); 526 541 } 527 542
