PAD - PHP Application Driver


home | manual | reference | regression | sequence | develop | apps


Pages/examples used in this manual

PHP
HTML
pages/examples_used_in_this_manual.pad
Result
{block}
<p>This manual will use the {tag 'pad'} tag for general PAD features.
<p>Below the internal PHP code for the {tag 'pad'} tag. That is not so much ))</p>
<p>{example 'miscellaneous/true', skipHeader, skipPad, skipResult}</p>
<p>As the {tag 'pad'} tag does not do anything itself, it must be given content & data.
<br>(if there is no data assigned to it then it will have default 1 data occurence)
{/block}

{page 'miscellaneous/pad'}

{page 'staff/index'}

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 ))

<?php

return TRUE;

?>

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

Below example gives a sneak preview of The content tag and The data tag, 2 powerfull PAD tags.

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 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




home | manual | reference | regression | sequence | develop | apps

(c) 2003-2025 Herbert Groot Jebbink