cvs: peardoc /en/package/html/html-template-flexy/element html-template-flexy-element.xml

From: Date: Sat, 02 Oct 2004 16:57:06 +0000
Subject: cvs: peardoc /en/package/html/html-template-flexy/element html-template-flexy-element.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4926@lists.php.net to get a copy of this message
arnaud Sat Oct 2 12:57:06 2004 EDT Modified files: /peardoc/en/package/html/html-template-flexy/element html-template-flexy-element.xml Log: * fix #2343 * examples now have valid XHTML http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml?r1=1.8&r2=1.9&ty=u Index: peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml diff -u peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.8 peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.9 --- peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.8 Sat Oct 2 12:50:36 2004 +++ peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml Sat Oct 2 12:57:06 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry id="package.html.html-template-flexy.element.html-template-flexy-element"> <refnamediv> <refname>new HTML_Template_Flexy_Element</refname> @@ -220,7 +220,7 @@ // select options $elements['test_select'] = new HTML_Template_Flexy_Element; $elements['test_select']->setOptions( array( - '123' => 'a select option' + '123' => 'a select option', '1234' => 'another select option' )); $elements['test_select']->setValue('1234'); @@ -238,7 +238,7 @@ $elements['test_radio']->setValue('yes'); -$form->output(new StdClass, $elements); +$form->outputObject(new StdClass, $elements); // in the example below, the new data you have added is to the existing attributes @@ -250,28 +250,26 @@ <title>template example</title> <programlisting role="html"> <![CDATA[ -<BODY> - <FORM name="XXXX"> +<body> + <form name="xxxx"> - <INPUT name="test" length="12"> + <input name="test" length="12"> - <TEXTAREA name="test_textarea"></TEXTAREA> + <textarea name="test_textarea"></textarea> - <SELECT name="test_select"></SELECT> + <select name="test_select"></select> <input name="test_checkbox" type="checkbox" value="1"> - <input name="test_checkbox_array[]" type="checkbox" value="1">1<BR> - <input name="test_checkbox_array[]" type="checkbox" value="2">2<BR> - <input name="test_checkbox_array[]" type="checkbox" value="3">3<BR> + <input name="test_checkbox_array[]" type="checkbox" value="1" />1<br /> + <input name="test_checkbox_array[]" type="checkbox" value="2" />2<br /> + <input name="test_checkbox_array[]" type="checkbox" value="3" />3<br /> - <input name="test_radio" type="radio" value="yes">yes<BR> - <input name="test_radio" type="radio" value="no">no<BR> + <input name="test_radio" type="radio" id="yes" value="yes" />yes<br /> + <input name="test_radio" type="radio" id="no" value="no" />no<br /> - </FORM> -</BODY> - - + </form> +</body> ]]> </programlisting> </example> @@ -281,32 +279,31 @@ <title>output from the Template</title> <programlisting role="html"> <![CDATA[ -<BODY> - <FORM name="XXXX"> +<body> + <form name="xxxx"> - ******<INPUT name="test" length="12" class="bold" value="Fred">!!!!!! + ******<input name="test" length="12" class="bold" value="fred">!!!!!! - <TEXTAREA name="test_textarea">Blogs</TEXTAREA> + <textarea name="test_textarea">blogs</textarea> - <SELECT name="test_select"> + <select name="test_select"> <option value="123">a selection option</option> <option value="1234" selected>another selection option</option> - </SELECT> + </select> <input name="test_checkbox" type="checkbox" value="1" checked> - <input name="test_checkbox_array[]" type="checkbox" value="1" checked>1<BR> - <input name="test_checkbox_array[]" type="checkbox" value="2" checked>2<BR> - <input name="test_checkbox_array[]" type="checkbox" value="3">3<BR> + <input name="test_checkbox_array[]" type="checkbox" value="1" checked>1<br /> + <input name="test_checkbox_array[]" type="checkbox" value="2" checked>2<br /> + <input name="test_checkbox_array[]" type="checkbox" value="3">3<br /> - <input name="test_radio" type="radio" value="yes" checked>yes<BR> - <input name="test_radio" type="radio" value="no">no<BR> + <input name="test_radio" type="radio" id="yes" value="yes" checked>yes<br /> + <input name="test_radio" type="radio" id="no" value="no">no<br /> - </FORM> -</BODY> - + </form> +</body> ]]> </programlisting> </example> @@ -333,4 +330,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file

« previous php.pear.doc (#4926) next »