cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid-datasource excel.xml
/en/package/structures/structures-datagrid/structures-datagrid-renderer smarty.xml xls.xml
| From: | Mark Wiesemann | Date: | Sat, 11 Nov 2006 15:56:09 +0000 |
| Subject: | cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid-datasource excel.xml /en/package/structures/structures-datagrid/structures-datagrid-renderer smarty.xml xls.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8755@lists.php.net to get a copy of this message | ||
wiesemann Sat Nov 11 15:56:09 2006 UTC
Modified files:
/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource
excel.xml
/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer
smarty.xml
xls.xml
Log:
- remove unneeded four space intendation for example code
http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml
diff -u
peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.2
peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.3
---
peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml:1.2 Wed
Oct 25 10:17:24 2006
+++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-datasource/excel.xml Sat
Nov 11 15:56:09 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry
id="package.structures.structures-datagrid.structures-datagrid-datasource.excel">
<refnamediv>
<refname>Structures_DataGrid_DataSource_Excel</refname>
@@ -81,7 +81,7 @@
It is therefore recommended that you replace the die() statement by something
like this:
<programlisting>
- return PEAR::raiseError('The filename ' . $sFileName . ' is not readable');
+return PEAR::raiseError('The filename ' . $sFileName . ' is not readable');
</programlisting>
This class is optimized for the changed code (but will work also with the
die() in the reader class, of course), and provides then a reasonable error
http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml
diff -u
peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.2
peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.3
---
peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.2 Thu
Sep 21 11:58:25 2006
+++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml Sat
Nov 11 15:56:09 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry
id="package.structures.structures-datagrid.structures-datagrid-renderer.smarty">
<refnamediv>
<refname>Structures_DataGrid_Renderer_Smarty</refname>
@@ -163,36 +163,36 @@
</para>
<para>
<programlisting>
- <!-- Show paging links using the custom getPaging function -->
- {getPaging prevImg="<<"
nextImg=">>" separator=" | "
delta="5"}
-
- <p>Showing records {$firstRecord} to {$lastRecord}
- from {$totalRecordsNum}, page {$currentPage} of {$pagesNum}</p>
-
- <table cellspacing="0">
- <!-- Build header -->
- <tr>
- {section name=col loop=$columnSet}
- <th {$columnSet[col].attributes}>
- <!-- Check if the column is sortable -->
- {if $columnSet[col].link != ""}
- <a
href="{$columnSet[col].link}">{$columnSet[col].label}</a>
- {else}
- {$columnSet[col].label}
- {/if}
- </th>
- {/section}
- </tr>
-
- <!-- Build body -->
- {section name=row loop=$recordSet}
- <tr {if $smarty.section.row.iteration is
even}bgcolor="#EEEEEE"{/if}>
- {section name=col loop=$recordSet[row]}
- <td
{$columnSet[col].attributes}>{$recordSet[row][col]}</td>
- {/section}
- </tr>
- {/section}
- </table>
+<!-- Show paging links using the custom getPaging function -->
+{getPaging prevImg="<<"
nextImg=">>" separator=" | "
delta="5"}
+
+<p>Showing records {$firstRecord} to {$lastRecord}
+from {$totalRecordsNum}, page {$currentPage} of {$pagesNum}</p>
+
+<table cellspacing="0">
+ <!-- Build header -->
+ <tr>
+ {section name=col loop=$columnSet}
+ <th {$columnSet[col].attributes}>
+ <!-- Check if the column is sortable -->
+ {if $columnSet[col].link != ""}
+ <a
href="{$columnSet[col].link}">{$columnSet[col].label}</a>
+ {else}
+ {$columnSet[col].label}
+ {/if}
+ </th>
+ {/section}
+ </tr>
+
+ <!-- Build body -->
+ {section name=row loop=$recordSet}
+ <tr {if $smarty.section.row.iteration is
even}bgcolor="#EEEEEE"{/if}>
+ {section name=col loop=$recordSet[row]}
+ <td
{$columnSet[col].attributes}>{$recordSet[row][col]}</td>
+ {/section}
+ </tr>
+ {/section}
+</table>
</programlisting>
</para>
</refsect1>
http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml
diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml:1.2
peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml:1.3
--- peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml:1.2 Thu
Sep 21 11:58:25 2006
+++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/xls.xml Sat Nov
11 15:56:09 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry
id="package.structures.structures-datagrid.structures-datagrid-renderer.xls">
<refnamediv>
<refname>Structures_DataGrid_Renderer_XLS</refname>
@@ -189,19 +189,19 @@
</para>
<para>
<programlisting>
- // Create a workbook
- $workbook = new Spreadsheet_Excel_Writer();
-
- // Specify that spreadsheet must be sent the browser
- $workbook->send('test.xls');
-
- // Create your format
- $format_bold =& $workbook->addFormat();
- $format_bold->setBold();
-
- // Fill the workbook, passing the format as an option
- $options = array('headerFormat' => &$format_bold);
- $datagrid->fill($workbook, $options);
+// Create a workbook
+$workbook = new Spreadsheet_Excel_Writer();
+
+// Specify that spreadsheet must be sent the browser
+$workbook->send('test.xls');
+
+// Create your format
+$format_bold =& $workbook->addFormat();
+$format_bold->setBold();
+
+// Fill the workbook, passing the format as an option
+$options = array('headerFormat' => &$format_bold);
+$datagrid->fill($workbook, $options);
</programlisting>
</para>
</refsect1>