|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
<?php // $Id: slideshow.php 19700 2009-04-10 11:07:37Z pcool $
|
|
|
|
|
<?php // $Id: slideshow.php 19728 2009-04-13 14:29:50Z juliomontoya $
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
@ -284,56 +284,57 @@ if ($slide_id !== "all") |
|
|
|
|
$result = api_sql_query($sql,__FILE__,__LINE__); |
|
|
|
|
$row = Database::fetch_array($result); |
|
|
|
|
|
|
|
|
|
echo '<table align="center" border="0">'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
echo "<img src='download.php?doc_url=$path/".$image_files_only[$slide]."' alt='".$image_files_only[$slide]."' border='0'".$height_width_tags.">"; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
$aux= explode(".", htmlspecialchars($image_files_only[$slide])); |
|
|
|
|
$ext= $aux[count($aux)-1]; |
|
|
|
|
echo '<strong>'.basename(htmlspecialchars($image_files_only[$slide]), '.'.$ext).'</strong>'; |
|
|
|
|
echo '<br />'.$row['comment'].'<br />'; |
|
|
|
|
list($width, $high) = getimagesize($image); |
|
|
|
|
echo $width.' x '.$high.' '.round((filesize($image)/1024),2).' KB'; |
|
|
|
|
echo ' - '.$ext; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '</table>'; |
|
|
|
|
// back forward buttons |
|
|
|
|
echo '<table align="center" border="0">'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center" >'; |
|
|
|
|
// previous slide |
|
|
|
|
if ($slide > 0) |
|
|
|
|
{ |
|
|
|
|
if ($slide > 0) { |
|
|
|
|
echo '<a href="slideshow.php?slide_id='.$previous_slide.'&curdirpath='.$pathurl.'">'; |
|
|
|
|
} |
|
|
|
|
echo '<img src="'.api_get_path(WEB_IMG_PATH).'silde_back.gif" alt="">'; |
|
|
|
|
if ($slide > 0) |
|
|
|
|
{ |
|
|
|
|
if ($slide > 0) { |
|
|
|
|
echo "</a> "; |
|
|
|
|
} |
|
|
|
|
// divider |
|
|
|
|
if ($slide_id <> "all") |
|
|
|
|
{ |
|
|
|
|
if ($slide_id <> "all") { |
|
|
|
|
echo '</td><td valign="middle"> [ '.$next_slide.'/'.$total_slides.' ] </td><td>'; |
|
|
|
|
} |
|
|
|
|
// next slide |
|
|
|
|
if ($slide < $total_slides -1 and $slide_id <> "all") |
|
|
|
|
{ |
|
|
|
|
if ($slide < $total_slides -1 and $slide_id <> "all") { |
|
|
|
|
echo "<a href='slideshow.php?slide_id=".$next_slide."&curdirpath=$pathurl'>"; |
|
|
|
|
} |
|
|
|
|
echo '<img src="'.api_get_path(WEB_IMG_PATH).'silde_next.gif" alt="">'; |
|
|
|
|
if ($slide > 0) |
|
|
|
|
{ |
|
|
|
|
if ($slide > 0) { |
|
|
|
|
echo '</a>'; |
|
|
|
|
} |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '</table>'; |
|
|
|
|
|
|
|
|
|
echo '<br/>'; |
|
|
|
|
|
|
|
|
|
echo '<table align="center" border="0">'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
echo "<img src='download.php?doc_url=$path/".$image_files_only[$slide]."' alt='".$image_files_only[$slide]."' border='0'".$height_width_tags.">"; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
$aux= explode(".", htmlspecialchars($image_files_only[$slide])); |
|
|
|
|
$ext= $aux[count($aux)-1]; |
|
|
|
|
echo '<strong>'.basename(htmlspecialchars($image_files_only[$slide]), '.'.$ext).'</strong>'; |
|
|
|
|
echo '<br />'.$row['comment'].'<br />'; |
|
|
|
|
list($width, $high) = getimagesize($image); |
|
|
|
|
echo $width.' x '.$high.' <br />'; |
|
|
|
|
echo round((filesize($image)/1024),2).' KB'; |
|
|
|
|
echo ' - '.$ext; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '</table>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // if ($slide_id!=="all") |
|
|
|
|
|
|
|
|
|
Display :: display_footer(); |
|
|
|
|
|