forked from halo-battle/game
Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
55
artichow/examples/all.php
Normal file
55
artichow/examples/all.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
function table($files, $re = NULL) {
|
||||
|
||||
echo "<table cellpadding='4'>";
|
||||
|
||||
foreach($files as $key => $file) {
|
||||
|
||||
if($key%2 == 0) {
|
||||
echo "<tr>";
|
||||
}
|
||||
|
||||
if($re === NULL or eregi($re, $file)) {
|
||||
image($file);
|
||||
}
|
||||
|
||||
if($key%2 == 1) {
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if($key%2 == 0) {
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
||||
}
|
||||
|
||||
function image($file) {
|
||||
echo "<td>
|
||||
<h3>".$file."</h3>
|
||||
<a href='".$file."'><img src='".$file."' style='border: 0px'/></a>
|
||||
</td>";
|
||||
}
|
||||
?>
|
||||
<h2>Artichow examples</h2>
|
||||
<?php
|
||||
$glob = glob("*.php");
|
||||
|
||||
table($glob, "[a-z]+\-[0-9]{3}\.php");
|
||||
?>
|
||||
<h2>Artichow.org examples</h2>
|
||||
<?php
|
||||
$glob = glob("site/*.php");
|
||||
|
||||
table($glob);
|
||||
?>
|
||||
<h2>Artichow tutorials</h2>
|
||||
<?php
|
||||
$glob = glob("tutorials/*.php");
|
||||
|
||||
table($glob);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue