GetFreeIPInputTpl Class Reference

Inheritance diagram for GetFreeIPInputTpl:

Inheritance graph
[legend]
Collaboration diagram for GetFreeIPInputTpl:

Collaboration graph
[legend]

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

Detailed Description

Definition at line 59 of file network.inc.php.


Member Function Documentation

HtmlElement::display (  )  [inherited]

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 . '&current=\' + $F(\'ipaddress\'), onSuccess:setZoneFreeAddress});" value="' . _T("Get next free IP address") . '">
00088 ';
00089 
00090     }

Here is the call graph for this function:

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     }

Here is the call graph for this function:

HtmlElement::hasBeenPopped (  )  [inherited]

Definition at line 1912 of file PageGenerator.php.

01912                              {
01913         return True;
01914     }

HtmlElement::HtmlElement (  )  [inherited]

Definition at line 1904 of file PageGenerator.php.

01904                            {
01905         $this->options = array();
01906     }

InputTpl::InputTpl ( name,
regexp = '/.+/' 
) [inherited]

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]

Definition at line 1908 of file PageGenerator.php.

01908                                   {
01909         $this->options = $options;
01910     }

InputTpl::setSize ( size  )  [inherited]

Definition at line 249 of file FormGenerator.php.

00249                             {
00250         $this->size = $size;
00251     }


Field Documentation

AbstractTpl::$name [inherited]

HtmlElement::$options [inherited]

Definition at line 1902 of file PageGenerator.php.

Referenced by getSubnetOptions().


The documentation for this class was generated from the following file:

Generated on Tue May 4 11:48:10 2010 for MMC web interface by  doxygen 1.5.8