|
CVS: phpwiki/lib HtmlElement.php,1.45,1.46: msg#00148web.wiki.phpwiki.checkins
Update of /cvsroot/phpwiki/phpwiki/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27594/lib Modified Files: HtmlElement.php Log Message: added label Index: HtmlElement.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/HtmlElement.php,v retrieving revision 1.45 retrieving revision 1.46 diff -u -2 -b -p -d -r1.45 -r1.46 --- HtmlElement.php 10 Jan 2005 18:05:56 -0000 1.45 +++ HtmlElement.php 25 Jan 2005 06:50:33 -0000 1.46 @@ -367,4 +367,8 @@ class HTML extends HtmlElement { return $el->_init2(func_get_args()); } + function label (/*...*/) { + $el = new HtmlElement('label'); + return $el->_init2(func_get_args()); + } /****************************************/ @@ -416,5 +420,5 @@ HTML::_setTagProperty(HTMLTAG_ACCEPTS_IN . 'abbr acronym cite code dfn em kbd samp strong var ' //%phrase . 'a img object embed br script map q sub sup span bdo '//%special - . 'button input label option select textarea ' //%formctl + . 'button input label option select textarea label ' //%formctl // %block elements which contain inline content @@ -464,5 +468,5 @@ function HiddenInputs ($query_args, $pfx foreach ($query_args as $key => $val) { - if (in_array($key,$exclude)) continue; + if (in_array($key, $exclude)) continue; $name = $pfx ? $pfx . "[$key]" : $key; if (is_array($val)) @@ -487,5 +491,5 @@ function JavaScript ($js, $script_args = $default_script_args = array(//'version' => 'JavaScript', // not xhtml conformant 'type' => 'text/javascript'); - $script_args = $script_args ? array_merge($default_script_args,$script_args) + $script_args = $script_args ? array_merge($default_script_args, $script_args) : $default_script_args; if (empty($js)) @@ -532,4 +536,7 @@ function IfJavaScript($if_content = fals /** $Log$ + Revision 1.46 2005/01/25 06:50:33 rurban + added label + Revision 1.45 2005/01/10 18:05:56 rurban php5 case-sensitivity ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS: phpwiki/tests/unit test.php,1.35,1.36: 00148, Reini Urban |
|---|---|
| Next by Date: | CVS: phpwiki/lib EditToolbar.php,NONE,1.1: 00148, Reini Urban |
| Previous by Thread: | CVS: phpwiki/tests/unit test.php,1.35,1.36i: 00148, Reini Urban |
| Next by Thread: | CVS: phpwiki/lib EditToolbar.php,NONE,1.1: 00148, Reini Urban |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |