cvs: peardoc /en/package/html/html-table faq.xml

From: Date: Sat, 21 Oct 2006 11:00:17 +0000
Subject: cvs: peardoc /en/package/html/html-table faq.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8647@lists.php.net to get a copy of this message
wiesemann Sat Oct 21 11:00:17 2006 UTC Modified files: /peardoc/en/package/html/html-table faq.xml Log: - "17" is a bad example here - add an example for the result http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-table/faq.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/html/html-table/faq.xml diff -u peardoc/en/package/html/html-table/faq.xml:1.1 peardoc/en/package/html/html-table/faq.xml:1.2 --- peardoc/en/package/html/html-table/faq.xml:1.1 Sat Oct 21 10:46:07 2006 +++ peardoc/en/package/html/html-table/faq.xml Sat Oct 21 11:00:17 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.html.html-table.faq"> <refnamediv> <refname>FAQ</refname> @@ -25,19 +25,32 @@ <answer> <para> Here is an example on how to set the attribute string - <literal>id="17"</literal> for the <literal>thead</literal> tag. For the - other two tags the procedure is similar. + <literal>id="header"</literal> for the <literal>thead</literal> tag. For + the other two tags the procedure is similar. </para> <programlisting role="php"> <![CDATA[ $table = new HTML_Table(); // [...] $thead =& $table->getHeader(); -$thead->setAttributes(array('id' => '17')); +$thead->setAttributes(array('id' => 'header')); // [...] $table->display(); ]]> </programlisting> + <para> + This would give the following result: + </para> + <programlisting role="php"> + <![CDATA[ +<table> + <thead id="header"> + [...] + </thead> + [...] +</table> + ]]> + </programlisting> </answer> </qandaentry> </qandaset>

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