"; for ($n = 0; $n < $cN; $n++) { //---------------------------------------- // index values // 0 = title // 1 = source // 2 = type //---------------------------------------- $title = $arr_ALL[0][$n]; $source = $arr_ALL[1][$n]; $type = $arr_ALL[2][$n]; createMenu($n, $title, $type); } } function createMenu($n, $title, $type) { if ($type == "title") { echo "
" . $title . "
"; } else { echo "" . $title . "
"; } } function createItem($mUnit, $arr_ALL) { //---------------------------------------- // index values // 0 = title // 1 = source // 2 = type // 3 = width // 4 = height //---------------------------------------- $title = $arr_ALL[0][$mUnit]; $source = $arr_ALL[1][$mUnit]; $type = $arr_ALL[2][$mUnit]; $width = $arr_ALL[3][$mUnit]; $height = $arr_ALL[4][$mUnit]; // echo $title . "
"; // echo $source . "
"; // echo $type . "
"; // echo $width . "
"; // echo $height . "
"; if ($type == 'flash') { $source = 'flash/' . $source; $cT_res = ""; $cT_acc = ""; $cT_att = ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; } if ($type == 'image') { $source = 'images/' . $source; echo "" . $title . ""; } if ($type == 'voken') { $source = 'flash/' . $source; echo ""; } if ($type == 'quicktime') { echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; // echo " \n"; echo " \n"; echo " \n"; } if ($type == 'html') { echo ""; } if ($type == 'iframe') { $source = "html/" . $source; echo ""; } if ($type == 'txt') { echo ""; } if ($type == 'download') { echo ""; $source = 'pub/' . $source; } $type_size = Array('bytes', 'kilobytes', 'megabytes', 'gigabytes'); $filesize = filesize($source); for ($i = 0; $filesize > 1024; $i++) $filesize /= 1024; /*echo "

filesize = " . round ($filesize, 2)." $type_size[$i]

"; echo $title . "

";*/ } ?> Preview