Unnamed
public text v1 · immutable$picnow=1;
$maxP=5;
$dirname = "projectos/$id";
$dh = opendir($dirname) or die("couldn't open directory");
echo "<table border=\"0\"> \n";
echo "<tr>";
while ($file = readdir($dh)) {
if($file != '.' and $file != ".." and !is_dir($file)){
echo "<td>";
echo "<a href=\"javascript:popImage('$dirname/$file','$project_name')\"><img src=\"$dirname/$file\" width=\"100\" height=\"100\" border=\"0\">\n";
echo "</td>";
$picnow++;
if($picnow>=$maxP){ $picnow=1; echo "</tr>";
echo "<tr>";}