phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: etemplate/doc etemplate.html,1.5,1.6


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/doc etemplate.html,1.5,1.6
Date: Mon, 18 Feb 2002 17:44:13 -0500

Update of /cvsroot/phpgroupware/etemplate/doc
In directory subversions:/tmp/cvs-serv12740

Modified Files:
        etemplate.html 
Log Message:
some small changes and some formatting for netscape

Index: etemplate.html
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/doc/etemplate.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** etemplate.html      18 Feb 2002 21:56:00 -0000      1.5
--- etemplate.html      18 Feb 2002 22:44:11 -0000      1.6
***************
*** 9,12 ****
--- 9,13 ----
  span { color: darkblue; font-family: sans-serife; }
  li { margin-top: 5px; }
+ body { background-color: white; color: black; }
  -->
  </STYLE>
***************
*** 359,364 ****
  <p>This function is called by edit with the matches of a search:</p>
  <ol>
!       <li>We build an array with all the matches, the index in that array is 
the row-number starting with 1 (!).<br>
!               $entry = array('empty') + $found; would do the same.
        <li>$content contains again 'msg' which we set to the number of entris 
found and the above array with the data of all rows under
                the key 'entry', as we put that in Size for the field loading 
the sub-template 'et_media.show.rows'. It not necessary to
--- 360,367 ----
  <p>This function is called by edit with the matches of a search:</p>
  <ol>
!       <li>We build an array with all the matches, the index in that array is 
the row-number starting with 1 (!)
!               ($entry = array('empty') + $found; would do the same).<br>
!               The names in the data-row (last row) of 'et_media.show.rows' 
are like '${row}[name]'. Variable expansion is performed on each
!               name and expands that for the first row to '1[name]' which 
addresses the name in the first match.
        <li>$content contains again 'msg' which we set to the number of entris 
found and the above array with the data of all rows under
                the key 'entry', as we put that in Size for the field loading 
the sub-template 'et_media.show.rows'. It not necessary to
***************
*** 367,370 ****
--- 370,375 ----
        <li>we now explizitly read the template 'et_media.show' (the 
constructor reed 'et_media.edit') and execute it again with
                the edit function as callback (because of that, show does NOT 
need to be listed in public_functions)
+       <li>as 'et_media.show.rows' contains only one data-row, but fieldnames 
with variables to expand, that row is autorepeated
+               for as many data we put into the content array (or the 
sub-array if we used the Size-field).
  </ol>
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]