|
This manual will use the {pad} tag for general PAD features.
Below the internal PHP code for the {pad} tag. That is not so much ))
As the {pad} tag does not do anything itself, it must be given content & data.
(if there is no data assigned to it then it will have default 1 data occurence)
|
|
HTML
|
RESULT
|
{pad $myColor='red'} <b> <font color="{$myColor}"> Hallo Wereld </font> </b> <br> {/pad}
|
Hallo Wereld
|
|
HTML
|
RESULT
|
{data 'myData'} ( "red", "green", "blue" ) {/data}
|
|
{content 'myContent'} <b> <font color="{$myData}"> Hello World </font> </b> <br> {/content}
|
|
{pad data='myData', content='myContent'}
|
Hello World
Hello World
Hello World
|
In the _data directory of the _common application there is the file staff.xml, it is often used in this manual.
<xml> <row name="joe" salary="1000" bonus="500" phone="555-1111" /> <row name="jim" salary="2000" bonus="400" phone="555-2222" /> <row name="john" salary="3000" bonus="300" phone="555-3333" /> <row name="jack" salary="4000" bonus="200" phone="555-4444" /> <row name="jerry" salary="5000" bonus="100" phone="555-5555" /> </xml>
|
Files placed in the _data directory can be used as a PAD tag.
<table border=1> {staff} <tr> <td> {$name} </td> <td> {$phone} </td> </tr> {/staff} </table>
|
|
joe
|
555-1111
|
|
jim
|
555-2222
|
|
john
|
555-3333
|
|
jack
|
555-4444
|
|
jerry
|
555-5555
|
|