Home
PHP
Application
Php Manual
Pictures
GuestBook
 
 
  Introduction Dlog Aprint SpTpl 
  Yap Xml2Array

 

 

 
 
 
Tag Index

<!ELEMENT block (counter, datasource, group, openbody, body, closebody, endgroup, font)>
<!ATTLIST block id CDATA #IMPLIED>
<!ATTLIST block columnset CDATA #IMPLIED>

Set a block of repeated row

 

Parent:

report
 

Childs:

counter
datasource
group
openbody
body
closebody
endgroup
font
 

Attributes:

id

Set the an identification name for the current block. If it is not supplied the module assign to the block an its own name. Two or more blocks can not have the same identification name.

columnset

 

Note:

The tag set information about rows repeated as many time as many rows it get from the supplied database or array. You may set many block inside to one report. Each block has its own datasource, so you can get data from different sources in different block. Example of 'block'. The complete example is here
<block id='Sold'>
   <datasource>
    <varname>ProdArray</varname>
   </datasource>
   
   <group key='year' level='1' name='YearGrouping'>
      <row vpos='relative' rowpos='2'>Year: {$year}</row>
      <row  />
   </group>
   <body>
    <header>
Period   ProdA     ProdB
------------------------
    </header>
    <row>  {$period}        {$prodA}        {$prodB}</row>
   </body>
   <endgroup name='YearGrouping'>
      <row>
------------------------
      </row>
   </endgroup>
  </block>

 

Copyright © 2003-2008 Darvin Andrioli, last change 21/02/2004