[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: etemplate/doc etemplate.html,1.17,1.18 referenz
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: etemplate/doc etemplate.html,1.17,1.18 referenz.html,1.12,1.13 |
Date: |
Sun, 29 Jun 2003 13:00:08 -0400 |
Update of /cvsroot/phpgroupware/etemplate/doc
In directory subversions:/tmp/cvs-serv30311
Modified Files:
etemplate.html referenz.html
Log Message:
nextmatch_widget:
- 2 header-templates left and right from the range-display
- optional nextmatch-line with arrows, search, cats, ... after the rows
link_widget:
- new sub-type link-string
Updateted the documenations and lang-files.
Index: etemplate.html
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/doc/etemplate.html,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** etemplate.html 19 Mar 2003 17:04:08 -0000 1.17
--- etemplate.html 29 Jun 2003 17:00:05 -0000 1.18
***************
*** 15,19 ****
<body>
<h1>eTemplate - Templates and Dialog-Editor for phpGroupware</h1>
! <h3>by Ralf Becker <a href="mailto:address@hidden">address@hidden</a></h3>
<p>A developers tutorial how to write an application with the new
eTemplates.<br>
It is also an introduction how to write a phpgw- and setup(3)-compatible
app.</p>
--- 15,19 ----
<body>
<h1>eTemplate - Templates and Dialog-Editor for phpGroupware</h1>
! <h3>by Ralf Becker <a href="#"
onClick="document.location='mai'+'lto:RalfBecker'+unescape('%40')+'outdoor-training'+unescape('%2E')+'de';
return false;">RalfBecker AT outdoor-training DOT de</a></h3>
<p>A developers tutorial how to write an application with the new
eTemplates.<br>
It is also an introduction how to write a phpgw- and setup(3)-compatible
app.</p>
***************
*** 147,151 ****
* phpGroupWare - eTemplates - Tutoria Example - a simple MediaDB *
* http://www.phpgroupware.org *
! * Written by Ralf Becker <address@hidden> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
--- 147,151 ----
* phpGroupWare - eTemplates - Tutoria Example - a simple MediaDB *
* http://www.phpgroupware.org *
! * Written by Ralf Becker <RalfBecker AT outdoor-training DOT de>
*
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
***************
*** 473,477 ****
</ol>
! <h2><i>That's it</i> - please <a href="mailto:address@hidden">contact me</a>
if you have further questions or comments about the tutorial</h2>
</body>
--- 473,477 ----
</ol>
! <h2><i>That's it</i> - please <a href="#"
onClick="document.location='mai'+'lto:RalfBecker'+unescape('%40')+'outdoor-training'+unescape('%2E')+'de';
return false;">contact me</a> if you have further questions or comments about
the tutorial</h2>
</body>
Index: referenz.html
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/doc/referenz.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** referenz.html 4 May 2003 09:18:56 -0000 1.12
--- referenz.html 29 Jun 2003 17:00:05 -0000 1.13
***************
*** 15,19 ****
<body>
<h1>eTemplate-Referenz - Templates and Dialog-Editor for phpGroupware</h1>
! <h3>by Ralf Becker <a href="mailto:address@hidden">address@hidden</a></h3>
<p>A referenz documentation about the new eTemplates and the <a
href="#referenz">syntax and parameters</a>
of the several widgets.</p>
--- 15,19 ----
<body>
<h1>eTemplate-Referenz - Templates and Dialog-Editor for phpGroupware</h1>
! <h3>by Ralf Becker <a href="#"
onClick="document.location='mai'+'lto:RalfBecker'+unescape('%40')+'outdoor-training'+unescape('%2E')+'de';
return false;">RalfBecker AT outdoor-training DOT de</a></h3>
<p>A referenz documentation about the new eTemplates and the <a
href="#referenz">syntax and parameters</a>
of the several widgets.</p>
***************
*** 214,217 ****
--- 214,219 ----
This attribute controls certain aspects of the different
widgets. It's meaning and xml / xul-values
are document with the widgets.
+ If the options-string starts with a '@' it is replaced by the
value of the content-array at this
+ index (with the '@'-removed).
</td>
</tr>
***************
*** 660,673 ****
<td colspan="5">
<pre>
! $content[$id] = array( <span>// I = value set by the app, 0 =
value on return / output, </span>
'get_rows' => <span>// I method/callback to request the data
for the rows eg. 'notes.bo.get_rows'</span>
'filter_label' => <span>// I label for filter
(optional)</span>
'filter_help' => <span>// I help-msg for filter
(optional)</span>
'no_filter2' => True <span>// I disable the 2. filter (params are
the same as for filter)</span>
'template' => <span>// I template to use for the rows, if
not set via options</span>
'start' => <span>// IO position in list</span>
'cat_id' => <span>// IO category, if not 'no_cat' =>
True</span>
'search' => <span>// IO search pattern</span>
'filter' => <span>// IO filter, if not 'no_filter' =>
True</span>
'rows' => <span>// O content set by callback</span>
'total' => <span>// O the total number of entries</span>
--- 662,681 ----
<td colspan="5">
<pre>
! $content[$id] = array( <span>// I = value set by the app, 0 =
value on return / output</span>
'get_rows' => <span>// I method/callback to request the data
for the rows eg. 'notes.bo.get_rows'</span>
'filter_label' => <span>// I label for filter
(optional)</span>
'filter_help' => <span>// I help-msg for filter
(optional)</span>
+ 'no_filter' => True <span>// I disable the 1. filter</span>
'no_filter2' => True <span>// I disable the 2. filter (params are
the same as for filter)</span>
+ 'no_cat' => True <span>// I disable the cat-selectbox</span>
'template' => <span>// I template to use for the rows, if
not set via options</span>
+ 'header_left' => <span>// I template to show left of the
range-value, left-aligned (optional)</span>
+ 'header_right' => <span>// I template to show right of the
range-value, right-aligned (optional)</span>
+ 'bottom_too' => True <span>// I show the nextmatch-line (arrows,
filters, search, ...) again after the rows</span>
'start' => <span>// IO position in list</span>
'cat_id' => <span>// IO category, if not 'no_cat' =>
True</span>
'search' => <span>// IO search pattern</span>
'filter' => <span>// IO filter, if not 'no_filter' =>
True</span>
+ 'filter2' => <span>// IO filter2, if not 'no_filter2' =>
True</span>
'rows' => <span>// O content set by callback</span>
'total' => <span>// O the total number of entries</span>
***************
*** 743,747 ****
--- 751,789 ----
</td>
</tr>
+ <tr>
+ <td><b>LinkWidgets</b></td>
+ <td>
+ <link type="link-to" id="name"/><p>
+ <link type="link-list" id="name"/><p>
+ <link type="link-string" id="name"/><p>
+ </td>
+ <td>no</td>
+ <td>link-to<p>link-list<p>link-string</td>
+ <td>
+ These widget are the UI-part of the link-class ({bo|so}link) in
InfoLog and maybe the API soon.<p>
+ <b>link-to</b><br>
+ Widget to make a links to other entries of link-aware apps and
to attach files.<p>
+ <b>link-list</b><br>
+ Widget to shows the links to an entry and a Unlink Button for
each link. <p>
+ <i><u>Note</u>:</i> Both Widgets can be used on the same
template with the <u>same</u> name. They share
+ the content of that variable, which contains just the id of the
entry in the current app.<p>
+
+ <b>link-string</b><br>
+ Comma-separated list of link-titles with a link to its
view-method, value is like the return
+ of bolink::get_links().
+ </td>
+ </tr>
</table>
+ <h3>One remark about cross-site-scripting</h3>
+ The following eTemplate Widgets are parsing its content before displaying
through <b>htmlentities()</b> to
+ correctly display the content and to gard against malecious data (like
scripts etc.):
+ <ul>
+ <li>Label
+ <li>Text, Textarea
+ <li>Integer, Float
+ <li>SelectBoxes (it's options-strings)
+ <li>LinkWidgets: link-to, link-list, link-string
+ </ul>
+ This is done in most cases by the underlaying html-class and not direct in
eTemplate.
<p>
<hr>
***************
*** 752,758 ****
phpGroupWare application. The editor and the etemplate-class autoload the
existing extensions.</p>
! <i>I will made more documentation about the interface availible soon.</i>
! <h2>please <a href="mailto:address@hidden">contact me</a> if you have further
questions or comments about the eTemplates</h2>
</body>
--- 794,801 ----
phpGroupWare application. The editor and the etemplate-class autoload the
existing extensions.</p>
! <i>I will made more documentation about the interface availible soon. For now
have a look for the source
! of the existing extensions.</i>
! <h2>please <a href="#"
onClick="document.location='mai'+'lto:RalfBecker'+unescape('%40')+'outdoor-training'+unescape('%2E')+'de';
return false;">contact me</a> if you have further questions or comments about
the eTemplates</h2>
</body>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: etemplate/doc etemplate.html,1.17,1.18 referenz.html,1.12,1.13,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: infolog/setup etemplates.inc.php,1.14,1.15 phpgw_de.lang,1.16,1.17 phpgw_en.lang,1.22,1.23
- Next by Date:
[Phpgroupware-cvs] CVS: etemplate/templates/default tab_widget.test.xet,1.2,NONE
- Previous by thread:
[Phpgroupware-cvs] CVS: infolog/setup etemplates.inc.php,1.14,1.15 phpgw_de.lang,1.16,1.17 phpgw_en.lang,1.22,1.23
- Next by thread:
[Phpgroupware-cvs] CVS: etemplate/templates/default tab_widget.test.xet,1.2,NONE
- Index(es):