"; 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; /* if(substr_count($source, "us") > 0){ $cT_res = "restaurants=http://www.itstimeforalittleto.ca/doubleclick/rest_us.htm"; $cT_acc = "accomodations=http://www.itstimeforalittleto.ca/doubleclick/acc_us.htm"; $cT_att = "attractions=http://www.itstimeforalittleto.ca/doubleclick/att_us.htm"; } else if(substr_count($source, "can") > 0){ $cT_res = "restaurants=http://www.itstimeforalittleto.ca/doubleclick/rest_can.htm"; $cT_acc = "accomodations=http://www.itstimeforalittleto.ca/doubleclick/acc_can.htm"; $cT_att = "attractions=http://www.itstimeforalittleto.ca/doubleclick/att_can.htm"; } */ $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 = "iframe/" . $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