PAD - PHP Application Driver


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


Reference2

OLD NEW  go  ok

App: sequence Page: basic/happy

HTML RESULT
{sequence happy}
{$sequence}
{/sequence}
1 7 10 13 19 23 28 31 32 44


App: sequence Page: basic/happy

HTML RESULT
{sequence happy}
{$sequence}
{/sequence}
1 7 10 13 19 23 28 31 32 44


App: sequence Page: play/single/happy

HTML RESULT
{sequence even,        rows=5}  {$sequence} {/sequence}
2 4 6 8 10
{sequence happy,       rows=10} {$sequence} {/sequence}
1 7 10 13 19 23 28 31 32 44
{sequence even, happy, rows=5}  {$sequence} {/sequence}
10 28 32 44 68


App: sequence Page: specials/other

HTML RESULT
{sequence repeat='abc', rows=10}
{$sequence}
{/sequence}
abc abc abc abc abc abc abc abc abc abc
{sequence lucky, rows=20}
{$sequence}
{/sequence}
1 3 7 15 31 63 127 255 511 1023 2047 4095 8191
{sequence happy, rows=20}
{$sequence}
{/sequence}
1 7 10 13 19 23 28 31 32 44 49 68 70 79 82 86 91 94 97 100
{sequence strong, rows=10}
{$sequence}
{/sequence}
1 2 145
{sequence powerful, rows=10}
{$sequence}
{/sequence}
1 4 8 9 16 25 27 32 36 49
{sequence palindrome, rows=10}
{$sequence}
{/sequence}
1 2 3 4 5 6 7 8 9 11
{sequence '1..100', sum}
{$sequence}
{/sequence}
5050


App: sequence Page: types/happy

HTML RESULT
{happy rows=15}
{$happy}
{/happy}
1 7 10 13 19 23 28 31 32 44 49 68 70 79 82

Old Source New Source
<table with="95%" border="0" align="center" style="margin-top: 0; margin-bottom: 0;" cellspacing="0" cellpadding="0">
<tr>
<td>
<center>


<hr>
App: sequence Page: basic/happy
<br>



<table with="95%" border="0" align="center" style="margin-top: 0; margin-bottom: 0;" cellspacing="0" cellpadding="0">
<tr>
<td>
<center>


<hr>
App: sequence Page: basic/happy
<br>



<div id="padAjaxCH1CBkwx"></div> <div id="padAjaxNjYirjPx"></div>

<script>

<script>
padAjaxCH1CBkwx = new XMLHttpRequest();
padAjaxCH1CBkwx.onreadystatechange=function() {
if (padAjaxCH1CBkwx.readyState === 4) {
if (padAjaxCH1CBkwx.status === 200) {
document.getElementById("padAjaxCH1CBkwx").innerHTML=padAjaxCH1CBkwx.responseText;
padAjaxNjYirjPx = new XMLHttpRequest();
padAjaxNjYirjPx.onreadystatechange=function() {
if (padAjaxNjYirjPx.readyState === 4) {
if (padAjaxNjYirjPx.status === 200) {
document.getElementById("padAjaxNjYirjPx").innerHTML=padAjaxNjYirjPx.responseText;
} else { } else {
document.getElementById("padAjaxCH1CBkwx").innerHTML=padAjaxCH1CBkwx.statusText; document.getElementById("padAjaxNjYirjPx").innerHTML=padAjaxNjYirjPx.statusText;
}
}
}
}
}
}
padAjaxCH1CBkwx.open("GET","http://localhost/sequence/?basic/happy&padInclude&padSesID=DiM2hOlW&padReqID=3VvxpXqB",true);
padAjaxCH1CBkwx.send();
padAjaxNjYirjPx.open("GET","http://localhost/sequence/?basic/happy&padInclude&padSesID=DiM2hOlW&padReqID=nsJR06uc",true);
padAjaxNjYirjPx.send();
</script>






<hr>
App: sequence Page: play/single/happy
<br>




<div id="padAjaxbxklo4sk"></div>

<script>
padAjaxbxklo4sk = new XMLHttpRequest();
padAjaxbxklo4sk.onreadystatechange=function() {
if (padAjaxbxklo4sk.readyState === 4) {
if (padAjaxbxklo4sk.status === 200) {
document.getElementById("padAjaxbxklo4sk").innerHTML=padAjaxbxklo4sk.responseText;
} else {
document.getElementById("padAjaxbxklo4sk").innerHTML=padAjaxbxklo4sk.statusText;
}
}
}
padAjaxbxklo4sk.open("GET","http://localhost/sequence/?play/single/happy&padInclude&padSesID=DiM2hOlW&padReqID=nsJR06uc",true);
padAjaxbxklo4sk.send();
</script>






<hr>
App: sequence Page: specials/other
<br>




<div id="padAjaxrDzJfuns"></div>

<script>
padAjaxrDzJfuns = new XMLHttpRequest();
padAjaxrDzJfuns.onreadystatechange=function() {
if (padAjaxrDzJfuns.readyState === 4) {
if (padAjaxrDzJfuns.status === 200) {
document.getElementById("padAjaxrDzJfuns").innerHTML=padAjaxrDzJfuns.responseText;
} else {
document.getElementById("padAjaxrDzJfuns").innerHTML=padAjaxrDzJfuns.statusText;
}
}
}
padAjaxrDzJfuns.open("GET","http://localhost/sequence/?specials/other&padInclude&padSesID=DiM2hOlW&padReqID=nsJR06uc",true);
padAjaxrDzJfuns.send();
</script>






<hr>
App: sequence Page: types/happy
<br>




<div id="padAjaxBbMqcvlV"></div>

<script>
padAjaxBbMqcvlV = new XMLHttpRequest();
padAjaxBbMqcvlV.onreadystatechange=function() {
if (padAjaxBbMqcvlV.readyState === 4) {
if (padAjaxBbMqcvlV.status === 200) {
document.getElementById("padAjaxBbMqcvlV").innerHTML=padAjaxBbMqcvlV.responseText;
} else {
document.getElementById("padAjaxBbMqcvlV").innerHTML=padAjaxBbMqcvlV.statusText;
}
}
}
padAjaxBbMqcvlV.open("GET","http://localhost/sequence/?types/happy&padInclude&padSesID=DiM2hOlW&padReqID=nsJR06uc",true);
padAjaxBbMqcvlV.send();
</script>







</center>
</td>
</tr>
</table>
</script>







</center>
</td>
</tr>
</table>

PHP
reference2.php
HTML
reference2.pad
Result
<?php

if ( ! isset ( $type ) ) $type = 'Sequences';
if ( ! isset (
$dir ) ) $dir = 'sequences';
if ( ! isset (
$item ) ) $item = 'happy';

foreach (
file ( DAT . "reference/sequence/$dir/$item.txt", FILE_IGNORE_NEW_LINES ) as $file ) {

list (
$app, $page ) = explode ( ';', $file );

$go [] = [ 'app' => $app, 'page' => $page ];

}

if (
count ( $go ) > 15 )
$go = array_slice ( $go, 0, 15 );

$title = "sequences - Xref - $type - $item";

?>
{block}
<center>

{go}
<hr>
App: {$app} Page: {$page}
<br> {example '{$page}', app='{$app}'}
{/go}

</center>
{/block}

App: sequence Page: basic/happy

App: sequence Page: play/single/happy

App: sequence Page: specials/other

App: sequence Page: types/happy



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

(c) 2003-2025 Herbert Groot Jebbink