|
|
|
@ -232,15 +232,72 @@ if ($slide_id !== "all") { |
|
|
|
|
$result = Database::query($sql,__FILE__,__LINE__); |
|
|
|
|
$row = Database::fetch_array($result); |
|
|
|
|
|
|
|
|
|
echo '<table align="center" border="0" cellspacing="10">'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center" style="font-size: xx-large; font-weight: bold;">'; |
|
|
|
|
echo $row['title']; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
echo "<a href='slideshow.php?slide_id=".$next_slide."&curdirpath=$pathurl'><img src='download.php?doc_url=$path/".$image_files_only[$slide]."' alt='".$image_files_only[$slide]."' border='0'".$height_width_tags."></a>"; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td style="border:1px solid; border-color: #CCCCCC">'; |
|
|
|
|
echo $row['comment']; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '</table>'; |
|
|
|
|
echo '<table align="center" border="0">'; |
|
|
|
|
if (api_is_allowed_to_edit(null,true)) |
|
|
|
|
{ |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
echo '<a href="edit_document.php?'.api_get_cidreq().'&curdirpath='.$pathurl.'&origin=slideshow&origin_opt='.$slide_id.'&file='.urlencode($path).'/'.$image_files_only[$slide].'"><img src="../img/edit.gif" border="0" title="'.get_lang('Modify').'" alt="'.get_lang('Modify').'" /></a><br />'; |
|
|
|
|
$aux= explode(".", htmlspecialchars($image_files_only[$slide])); |
|
|
|
|
$ext= $aux[count($aux)-1]; |
|
|
|
|
echo $image_files_only[$slide].' <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 '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
if($_SESSION['image_resizing']=="resizing") |
|
|
|
|
{ |
|
|
|
|
$resize_info=get_lang('_resizing').'</br>'; |
|
|
|
|
$resize_widht=$_SESSION["image_resizing_width"].' x '; |
|
|
|
|
$resize_height=$_SESSION['image_resizing_height']; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
$resize_info=get_lang('_no_resizing').'</br>'; |
|
|
|
|
} |
|
|
|
|
echo $resize_info; |
|
|
|
|
echo $resize_widht; |
|
|
|
|
echo $resize_height; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
} |
|
|
|
|
echo '</table>'; |
|
|
|
|
|
|
|
|
|
echo '<br/>'; |
|
|
|
|
|
|
|
|
|
// back forward buttons |
|
|
|
|
echo '<table align="center" border="0">'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center" >'; |
|
|
|
|
|
|
|
|
|
// first slide |
|
|
|
|
echo '<a href="slideshow.php?slide_id=0&curdirpath='.$pathurl.'"><img src="'.api_get_path(WEB_IMG_PATH).'slide_first.png" title="'.get_lang('FirstSlide').'" alt="'.get_lang('FirstSlide').'"> </a>'; |
|
|
|
|
// previous slide |
|
|
|
|
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="">'; |
|
|
|
|
echo '<img src="'.api_get_path(WEB_IMG_PATH).'slide_previous.png" title="'.get_lang('Previous').'" alt="'.get_lang('Previous').'">'; |
|
|
|
|
if ($slide > 0) { |
|
|
|
|
echo "</a> "; |
|
|
|
|
} |
|
|
|
@ -251,56 +308,22 @@ if ($slide_id !== "all") { |
|
|
|
|
// next slide |
|
|
|
|
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="">'; |
|
|
|
|
echo '<img src="'.api_get_path(WEB_IMG_PATH).'slide_next.png" title="'.get_lang('Next').'" alt="'.get_lang('Next').'">'; |
|
|
|
|
if ($slide > 0) { |
|
|
|
|
echo '</a>'; |
|
|
|
|
} |
|
|
|
|
// last slide |
|
|
|
|
echo ' <a href="slideshow.php?slide_id='.($total_slides-1).'&curdirpath='.$pathurl.'"><img src="'.api_get_path(WEB_IMG_PATH).'slide_last.png" title="'.get_lang('LastSlide').'" alt="'.get_lang('LastSlide').'"></a>'; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '</table>'; |
|
|
|
|
|
|
|
|
|
echo '<br/>'; |
|
|
|
|
|
|
|
|
|
echo '<table align="center" border="0">'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
echo "<a href='slideshow.php?slide_id=".$next_slide."&curdirpath=$pathurl'><img src='download.php?doc_url=$path/".$image_files_only[$slide]."' alt='".$image_files_only[$slide]."' border='0'".$height_width_tags."></a>"; |
|
|
|
|
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 '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td style="border:1px solid; border-color: #CCCCCC">'; |
|
|
|
|
echo $row['comment']; |
|
|
|
|
echo '</td>'; |
|
|
|
|
echo '</tr>'; |
|
|
|
|
|
|
|
|
|
if (api_is_allowed_to_edit(null,true)) |
|
|
|
|
{ |
|
|
|
|
echo '<tr>'; |
|
|
|
|
echo '<td align="center">'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<a href="edit_document.php?'.api_get_cidreq().'&curdirpath='.$pathurl.'&file='.urlencode($path).'/'.$image_files_only[$slide].'"><img src="../img/edit.gif" border="0" title="'.get_lang('Modify').'" alt="'.get_lang('Modify').'" /></a><br />'; |
|
|
|
|
echo '</table>'; |
|
|
|
|
|
|
|
|
|
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>'; |
|
|
|
|
} else { |
|
|
|
|
Display::display_warning_message(get_lang('FileNotFound')); |
|
|
|
|
} |
|
|
|
|
} // if ($slide_id!=="all") |
|
|
|
|
|
|
|
|
|
Display :: display_footer(); |
|
|
|
|
?> |
|
|
|
|
?> |