cvs: peardoc /en/package/html/html-table intro.xml
| From: | Alexander Merz | Date: | Tue, 07 Feb 2006 00:19:28 +0000 |
| Subject: | cvs: peardoc /en/package/html/html-table intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7490@lists.php.net to get a copy of this message | ||
alexmerz Tue Feb 7 00:19:28 2006 UTC
Modified files:
/peardoc/en/package/html/html-table intro.xml
Log:
add some tags and reordering
http://cvs.php.net/viewcvs.cgi/peardoc/en/package/html/html-table/intro.xml?r1=1.4&r2=1.5&diff_format=u
Index: peardoc/en/package/html/html-table/intro.xml
diff -u peardoc/en/package/html/html-table/intro.xml:1.4
peardoc/en/package/html/html-table/intro.xml:1.5
--- peardoc/en/package/html/html-table/intro.xml:1.4 Sat Sep 24 17:29:18 2005
+++ peardoc/en/package/html/html-table/intro.xml Tue Feb 7 00:19:28 2006
@@ -1,4 +1,5 @@
-<!-- $Revision: 1.4 $ -->
+<?xml version='1.0' encoding='ISO-8859-1' ?>
+<!-- $Revision: 1.5 $ -->
<refentry id="package.html.html-table.intro">
<refnamediv>
<refname>Introduction</refname>
@@ -65,7 +66,7 @@
'1' => array("Merz", "Alexander", "alex.example.com",
"alex@example.com"),
'2' => array("Daniel", "Adam", "", "")
);
-]]>
+]]>
</programlisting>
</para>
</refsect2>
@@ -100,7 +101,7 @@
<![CDATA[
for($nr = 0; $nr < count($data); $nr++) {
$table -> setHeaderContents( $nr+1, 0, (string)$nr);
- for($i = 0; $i < 4; $i++) {
+ for($i = 0; $i < 4; $i++) {
if("" != $data[$nr][$i])
$table -> setCellContents( $nr+1, $i+1, $data[$nr][$i]);
}
@@ -138,7 +139,7 @@
<refsect2 id="package.html.html-table.intro.create.html">
<title>Print the table</title>
<para>
- It is done! Our table is finished, now we can output the
+ It is done! Our table is finished, now we can output the
table as HTML code.
<programlisting role="php">
<![CDATA[
@@ -181,15 +182,16 @@
</table>
<!-- END TABLE LEVEL: 0 -->
-]]>
- </programlisting>
-
+]]>
+ </programlisting>
+
</para>
- </refsect2>
+ </refsect2>
<refsect2 id="package.html.html-table.intro.create.tgroups">
<title>Using thead, tfoot and tbody</title>
<para>
- If you want to divide your tables into thead, tfoot and tbody groups,
+ If you want to divide your tables into <literal>thead</literal>,
<literal>tfoot</literal> and
+ <literal>tbody</literal> groups,
you need to get table objects using <function>getHeader</function>,
<function>getFooter</function> and <function>getBody</function>,
which you can then use like the normal table object.
@@ -202,22 +204,18 @@
$head->setCellContents(...);
$body->setCellContents(...);
echo $table->toHtml();
-]]>
+]]>
</programlisting>
- <note>
- <para>
- In this example, there is no content set for the tfoot group.
- Therefore, only thead and tbody will be rendered.
- </para>
- </note>
- <note>
- <para>
- The rendering order is thead, then tfoot and as the last group
- tbody. This is not a bug but intended behaviour because that's
- the way it is defined in the (X)HTML Standard.
- </para>
- </note>
+ In this example, there is no content set for the <literal>tfoot</literal> group.
+ Therefore, only <literal>thead</literal> and <literal>tbody</literal>
will be rendered.
</para>
+ <note>
+ <para>
+ The rendering order is <literal>thead</literal>, then
<literal>tfoot</literal> and as the last group
+ <literal>tbody</literal>. This is not a bug but intended behaviour because
that's
+ the way it is defined in the (X)HTML Standard.
+ </para>
+ </note>
</refsect2>
</refsect1>
@@ -240,5 +238,5 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
+-->