online_papers"); } ?> Untitled Document
CIDER Logo


CIDER
Online Papers of the May 24-29 Workshop

<< back to the online papers

"; include "$images_folder/".$_GET['name']."/$title_file_name"; echo "

"; } echo "To begin viewing slides, click on the first slide below.
"; //display a list with the available pdfs if($pdf_dir=@opendir("$pdfs_folder/".$_GET['name'])) { echo "Or, download the slides as PDF file(s):
"; while(($file=readdir($pdf_dir))!=false) if($file!="." && $file!="..") { echo "[PDF] $file ( ". filesize("$pdfs_folder/{$_GET['name']}/$file")." bytes )
"; } } echo "
"; //display alll the thumbnails $d_name="$images_folder/{$_GET['name']}/$thumbnail_dir_name"; $length=0; $files_array=array(); //put the files in an array first, we need to sort them with natural order if( $dir=@opendir($d_name) ) { while( ($file=readdir($dir)) !=false ) if($file != "." && $file!="..") $files_array[]=$file; //apply natural order sort natsort($files_array); reset($files_array); while (list ($key, $file) = each($files_array)) { $size=getimagesize("$d_name/$file"); if(($length+$size[0]+10)>=$table_width-10) { echo "
"; $length=$size[0]+10; } else { $length+=$size[0]+10; //10 = 2*3 for hspace + 2*2 for link border ! } echo ""; } closedir($dir); } else { echo "

No files found for: ".$_GET['name']."";} ?>