"") { $folder = $path."/"; } else { $folder = ""; } $sys_course_path = api_get_path(SYS_COURSE_PATH); // including the functions for the slideshow include ('slideshow.inc.php'); // breadcrumb navigation $url = "document.php?curdirpath=".$pathurl; $originaltoolname = get_lang('Documents'); $interbreadcrumb[] = array ("url" => $url, "name" => $originaltoolname); // because $nametools uses $_SERVER['PHP_SELF'] for the breadcrumbs instead of $_SERVER['REQUEST_URI'], I had to // bypass the $nametools thing and use tags in the $interbreadcrump array $url = "slideshow.php?curdirpath=".$pathurl; $originaltoolname = get_lang('_slideshow'); //$interbreadcrumb[]= array ("url"=>$url, "name"=>$originaltoolname ); Display :: display_header($originaltoolname, "Doc"); // loading the slides from the session $image_files_only = $_SESSION["image_files_only"]; // calculating the current slide, next slide, previous slide and the number of slides if ($slide_id <> "all") { if ($slide_id) { $slide = $slide_id; } else { $slide = 0; } $previous_slide = $slide -1; $next_slide = $slide +1; } // if ($slide_id<>"all") $total_slides = count($image_files_only); ?>

0) { echo ""; } ?> << 0) { echo ""; } ?>  |  "all") { echo ""; } ?> >> 0) { echo ""; } ?> "all") { echo get_lang('_image')." ".$next_slide." ".get_lang('_of')." ".$total_slides; } ?>
"all") { echo "".get_lang('_show_thumbnails').""; } else { echo get_lang('_click_thumbnails'); } $image = $sys_course_path.$_course['path']."/document/".$folder.$image_files_only[$slide]; // EXIF DATA, remove "and 0==1" in the if statement if you want to display the EXIT data in a popup //if (exif_read_data($image)) // { // $_SESSION["exif_image"]=$image; // // echo "| Show Exif metadata"; // } ?>
"; } // foreach ($image_files_only as $one_image_file) } // if ($slide_id=="all") // creating the table echo "\n"; $i = 0; foreach ($image_tag as $image_tag_item) { // starting new table row if ($i == 0) { echo "\n\n"; } echo "\t\n"; if ($i % 3 == 0 and $i !== 0) { echo "\n\n"; } $i ++; } echo "
".$image_tag_item."
\n\n"; // ======================================================================= // ONE AT A TIME VIEW // ======================================================================= // this is for viewing all the images in the slideshow one at a time. if ($slide_id !== "all") { $image = $sys_course_path.$_course['path']."/document/".$folder.$image_files_only[$slide]; $image_height_width = resize_image($image, $target_width, $target_height); $image_height = $image_height_width[0]; $image_width = $image_height_width[1]; if ($_SESSION["image_resizing"] == "resizing") { $height_width_tags = "width='$image_width' height='$image_height'"; } // showing the comment of the image, Patrick Cool, 8 april 2005 // this is done really quickly and should be cleaned up a little bit using the API functions $tbl_documents = Database::get_course_table(TABLE_DOCUMENT); if ($path=='/') { $pathpart='/'; } else { $pathpart=$path.'/'; } $sql = "SELECT * FROM $tbl_documents WHERE path='".$pathpart.$image_files_only[$slide]."'"; $result = api_sql_query($sql,__FILE__,__LINE__); $row = mysql_fetch_array($result); echo $row['comment']; echo "
"; } // if ($slide_id!=="all") Display :: display_footer(); ?>