

Public Member Functions | |
| display () | |
| display ($arrParam=array()) | |
| display input Element $arrParam accept ["value"] to corresponding value | |
| display ($link=array(), $arrParam=array()) | |
| displayHide ($arrParam) | |
| displayRo ($arrParam) | |
| FormElement ($desc, $tpl) | |
| hasBeenPopped () | |
| HtmlElement () | |
| setCssError ($name) | |
| setOptions ($options) | |
| TrFormElement ($desc, $tpl, $extraInfo=array()) | |
Data Fields | |
| $cssErrorName | |
| $desc | |
| $options | |
| $template | |
| $tooltip | |
Definition at line 42 of file AjaxFilterLog.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 GetFreeIPInputTpl::display(), QuotaTpl::Display(), and TrAclFormElement::display().
| TrFormElement::display | ( | $ | arrParam = array() |
) | [inherited] |
display input Element $arrParam accept ["value"] to corresponding value
Reimplemented from FormElement.
Definition at line 890 of file FormGenerator.php.
References displayErrorCss(), and print.
00890 { 00891 if (empty($arrParam)) $arrParam = $this->options; 00892 if (!isset($this->cssErrorName)) $this->cssErrorName = $this->template->name; 00893 00894 printf('<tr><td class="label" width="%s" ', $this->firstColWidth); 00895 print displayErrorCss($this->cssErrorName); 00896 print 'style = "text-align: right;">'; 00897 00898 //if we got a tooltip, we show it 00899 if ($this->tooltip) { 00900 print "<a href=\"#\" class=\"tooltip\">".$this->desc."<span>".$this->tooltip."</span></a>"; 00901 } else { 00902 print $this->desc; 00903 } 00904 print '</td><td>'; 00905 00906 // set hidden form with old_value for each TrFormElement field 00907 if(isset($arrParam["value"])) { 00908 // if checkbox 00909 if ($arrParam["value"] == "checked") 00910 $old_value = "on"; 00911 else 00912 $old_value = $arrParam["value"]; 00913 } 00914 else { 00915 $old_value = ""; 00916 } 00917 if(is_object($this->template)) { 00918 $field_name = $this->template->name; 00919 } 00920 else if(is_array($this->template)) { 00921 $field_name = $this->template["name"]; 00922 } 00923 else { 00924 $field_name = ""; 00925 } 00926 if ($field_name) { 00927 print '<input type="hidden" name="old_'.$field_name.'" value="'.$old_value.'" />'; 00928 } 00929 00930 // display real field 00931 parent::display($arrParam); 00932 00933 if (isset($arrParam["extra"])) { 00934 print " " . $arrParam["extra"]; 00935 } 00936 print "</td></tr>"; 00937 00938 }

| LinkTrFormElement::display | ( | $ | link = array(), |
|
| $ | arrParam = array() | |||
| ) |
Definition at line 44 of file AjaxFilterLog.inc.php.
00044 { 00045 if (empty($arrParam)) $arrParam = $this->options; 00046 if (!isset($this->cssErrorName)) $this->cssErrorName = $this->template->name; 00047 00048 print '<tr><td width="40%" '; 00049 print displayErrorCss($this->cssErrorName); 00050 print 'style = "text-align: right;">'; 00051 00052 //if we got a tooltip, we show it 00053 if ($this->tooltip) { 00054 print "<a href=\"#\" class=\"tooltip\">".$this->desc."<span>".$this->tooltip."</span></a>"; 00055 } else { 00056 print $this->desc; 00057 } 00058 print '</td><td>'; 00059 print "<a href=\"".$link["value"]."\">".$link["name"]; 00060 print "</a>"; 00061 if (isset($arrParam["extra"])) { 00062 print " " . $arrParam["extra"]; 00063 } 00064 print "</td></tr>"; 00065 00066 }
| FormElement::displayHide | ( | $ | arrParam | ) | [inherited] |
| TrFormElement::displayRo | ( | $ | arrParam | ) | [inherited] |
Reimplemented from FormElement.
Definition at line 940 of file FormGenerator.php.
References displayErrorCss(), and print.
00940 { 00941 00942 printf('<tr><td width="%s" ', $this->firstColWidth); 00943 print displayErrorCss($this->cssErrorName); 00944 print 'style = "text-align: right;">'; 00945 00946 //if we got a tooltip, we show it 00947 if ($this->tooltip) { 00948 print "<a href=\"#\" class=\"tooltip\">".$this->desc."<span>".$this->tooltip."</span></a>"; 00949 } else { 00950 print $this->desc; 00951 } 00952 print '</td><td>'; 00953 00954 parent::displayRo($arrParam); 00955 00956 print '</td></tr>'; 00957 }

| FormElement::FormElement | ( | $ | desc, | |
| $ | tpl | |||
| ) | [inherited] |
Definition at line 713 of file FormGenerator.php.
References FormElement::$desc.
00713 { 00714 $this->desc = $desc; 00715 $this->template = &$tpl; 00716 $this->tooltip = False; 00717 }
| HtmlElement::hasBeenPopped | ( | ) | [inherited] |
| HtmlElement::HtmlElement | ( | ) | [inherited] |
| FormElement::setCssError | ( | $ | name | ) | [inherited] |
Definition at line 719 of file FormGenerator.php.
References $name.
00719 { 00720 $this->cssErrorName=$name; 00721 }
| HtmlElement::setOptions | ( | $ | options | ) | [inherited] |
| TrFormElement::TrFormElement | ( | $ | desc, | |
| $ | tpl, | |||
| $ | extraInfo = array() | |||
| ) | [inherited] |
TrFormElement::$cssErrorName [inherited] |
TrFormElement::$desc [inherited] |
HtmlElement::$options [inherited] |
TrFormElement::$template [inherited] |
FormElement::$tooltip [inherited] |
Definition at line 711 of file FormGenerator.php.
1.5.8