

Public Member Functions | |
| display () | |
| display ($arrParam) | |
| display input Element $arrParam accept ["value"] to corresponding value | |
| displayHide ($arrParam) | |
| displayRo ($arrParam) | |
| Read Only display function. | |
| getFreeIPInputTpl () | |
| hasBeenPopped () | |
| HtmlElement () | |
| InputTpl ($name, $regexp= '/.+/') | |
| IPInputTpl ($name) | |
| setOptions ($options) | |
| setSize ($size) | |
Data Fields | |
| $name | |
| $options | |
Definition at line 59 of file network.inc.php.
| HtmlElement::display | ( | ) | [inherited] |
Reimplemented in SimpleNavBar, AjaxNavBar, AjaxFilter, NoLocationTpl, SingleLocationTpl, AjaxFilterLocation, AjaxLocation, DisplayFile, TabWidget, ModuleTitleElement, TitleElement, SelectElement, TrTitleElement, AjaxLogNavBar, and AjaxFilterLog.
Definition at line 1916 of file PageGenerator.php.
Referenced by display(), QuotaTpl::Display(), and TrAclFormElement::display().
| GetFreeIPInputTpl::display | ( | $ | arrParam | ) |
display input Element $arrParam accept ["value"] to corresponding value
Reimplemented from InputTpl.
Definition at line 65 of file network.inc.php.
References $subnet, $zone, HtmlElement::display(), and print.
00065 { 00066 parent::display($arrParam); 00067 $zone = $arrParam["zone"]; 00068 $ajaxurl = $arrParam["ajaxurl"]; 00069 if (empty($arrParam["subnet"])) { 00070 $subnet = ''; 00071 } else { 00072 $subnet = $arrParam["subnet"]; 00073 } 00074 print ' 00075 00076 <script type="text/javascript"> 00077 00078 function setZoneFreeAddress(t) { 00079 $("ipaddress").value = t.responseText; 00080 if (! ($("ipaddress").validate()) ) $("ipaddress").value = ""; 00081 new Effect.Highlight("ipaddress", 00082 { duration: 1.0 }); 00083 } 00084 00085 </script> 00086 00087 <input type="button" class="btnPrimary" onclick="new Ajax.Request(\'main.php?module=network&submod=network&action=' . $ajaxurl . '\', {method: \'get\', parameters: \'zone=' . $zone . '&subnet=' . $subnet . '¤t=\' + $F(\'ipaddress\'), onSuccess:setZoneFreeAddress});" value="' . _T("Get next free IP address") . '"> 00088 '; 00089 00090 }

| AbstractTpl::displayHide | ( | $ | arrParam | ) | [inherited] |
Reimplemented in CheckboxTpl, and MultipleInputTpl.
Definition at line 611 of file FormGenerator.php.
00611 { 00612 print '<div style="color: #C00;">' . _("unavailable") . '</div>'; 00613 print '<input type="hidden" value="'.$arrParam["value"].'" name="'.$this->name.'" />'; 00614 }
| AbstractTpl::displayRo | ( | $ | arrParam | ) | [inherited] |
Read Only display function.
Reimplemented in FileTpl, ImageTpl, CheckboxTpl, MultipleInputTpl, and QuotaTpl.
Definition at line 606 of file FormGenerator.php.
00606 { 00607 print $arrParam["value"]; 00608 print '<input type="hidden" value="'.$arrParam["value"].'" name="'.$this->name.'" />'; 00609 }
| GetFreeIPInputTpl::getFreeIPInputTpl | ( | ) |
Definition at line 61 of file network.inc.php.
References IPInputTpl::IPInputTpl().
00061 { 00062 parent::IPInputTpl("ipaddress"); 00063 }

| HtmlElement::hasBeenPopped | ( | ) | [inherited] |
| HtmlElement::HtmlElement | ( | ) | [inherited] |
| InputTpl::InputTpl | ( | $ | name, | |
| $ | regexp = '/.+/' | |||
| ) | [inherited] |
Definition at line 242 of file FormGenerator.php.
References AbstractTpl::$name.
Referenced by HostIpListInputTpl::HostIpListInputTpl(), HostnameInputTpl::HostnameInputTpl(), MXRecordInputTpl::MXRecordInputTpl(), NetbiosInputTpl::NetbiosInputTpl(), NetbiosUppercaseInputTpl::NetbiosUppercaseInputTpl(), NetmaskInputTpl::NetmaskInputTpl(), QuotaTpl::QuotaTpl(), and SimpleNetmaskInputTpl::SimpleNetmaskInputTpl().
00242 { 00243 $this->name = $name; 00244 $this->regexp = $regexp; 00245 $this->fieldType = "text"; 00246 $this->size = '23'; 00247 }
| IPInputTpl::IPInputTpl | ( | $ | name | ) | [inherited] |
Definition at line 322 of file FormGenerator.php.
Referenced by getFreeIPInputTpl().
00322 { 00323 $this->InputTpl($name, '/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/'); 00324 }
| HtmlElement::setOptions | ( | $ | options | ) | [inherited] |
| InputTpl::setSize | ( | $ | size | ) | [inherited] |
AbstractTpl::$name [inherited] |
Reimplemented in TextareaTpl, and RadioTpl.
Definition at line 595 of file FormGenerator.php.
Referenced by CheckboxTpl::CheckboxTpl(), FileTpl::FileTpl(), getSubnetOptions(), getSubnetStatements(), HostIpListInputTpl::HostIpListInputTpl(), HostnameInputTpl::HostnameInputTpl(), ImageTpl::ImageTpl(), InputTpl::InputTpl(), MultipleInputTpl::MultipleInputTpl(), MXRecordInputTpl::MXRecordInputTpl(), NetbiosInputTpl::NetbiosInputTpl(), NetbiosUppercaseInputTpl::NetbiosUppercaseInputTpl(), NetmaskInputTpl::NetmaskInputTpl(), QuotaTpl::QuotaTpl(), and SimpleNetmaskInputTpl::SimpleNetmaskInputTpl().
HtmlElement::$options [inherited] |
1.5.8