Photo Gallery
$rootdir=$_REQUEST["rootdir"];
$lng=$_REQUEST["lng"];
include ("connect.php");
$sql="select * from ibm_gallery where gal_rootdir=$rootdir";
$query=mysql_query($sql);
$rs=mysql_fetch_array($query);
?>
ชื่อกิจกรรม : |
|
รายละเอียด : |
|
วันที่จัด : |
|
$path = "modules/album/img/".$rootdir;
function draw_tree($path) {
if ($f = opendir($path)) {
$i=1;
while ($elm = readdir($f)) {
if (is_dir($path . "/" . $elm) && $elm != "." && $elm != "..") {
$array[$elm] = draw_tree($path . "/" . $elm);
} else {
//$array[] = "";
//echo $elm;
if ($elm!="." && $elm !=".." && $elm !="Thumbs.db"){
if ($i==1){
echo "";
}
?>
|
// echo " | ";
if ($i==5){
echo " ";
$i=0;
}
$i++;
//echo $i;
}
}
}
}
return $array;
}
//print "";
(draw_tree($path));
//print " ";
?>
|
|
|
|
Photo Gallery
|