Login   Register  
PHP Classes
elePHPant
Icontem

File: test2.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrioli Darvin  >  SpoolTemplate  >  test2.xml  >  Download  
File: test2.xml
Role: Auxiliary data
Content type: text/plain
Description: d example, configuration script
Class: SpoolTemplate
Database report generation based on templates
Author: By
Last change:
Date: 10 years ago
Size: 1,076 bytes
 

Contents

Class file image Download
<?xml version='1.0' ?>

<template>
<constant name='const1' value = '1'/>
<constant name='const2' value = '2'/>

<field name='fld1'>
  <sourcefield>fld1</sourcefield>
  <stringformat>none</stringformat>
  <dateformat>none</dateformat>
  <value>13</value>
</field>


<report>
  <beginreport>
   Hi

   My First Test
  </beginreport>
  <OpenPage>
    Start page.
  </OpenPage>
  <row id='pippo'>
Hello {$name}, my name is {$MyName}.
I'am a single row, but I've two rows!
  </row>

  <block id='showMyArray'>
   <datasource>
    <varname>MyArray</varname>
   </datasource>
   <body>
    <header>Field 1      Field 2</header>
    <row> {$field1}   {$field2}</row>
   </body>
  </block>

  <block id='showLoopArray'>
   <datasource>
    <varname>LoopArray</varname>
   </datasource>
   <body>
    <header>Field 1      Field 2</header>
    <row> {$field1}   {$field2}</row>
   </body>
  </block>
  
  <closepage>
   Page end
  </closepage>
  <closereport>
   End!That's all folk!
  </closereport>


</report>


</template>