From: <lu...@us...> - 2004-05-16 23:23:45
|
Update of /cvsroot/tikiwiki/tiki/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21435/templates Modified Files: Tag: BRANCH-1-8 tiki-browse_image.tpl Log Message: fixed buggy image navigation Index: tiki-browse_image.tpl =================================================================== RCS file: /cvsroot/tikiwiki/tiki/templates/tiki-browse_image.tpl,v retrieving revision 1.21.2.2 retrieving revision 1.21.2.3 diff -u -d -r1.21.2.2 -r1.21.2.3 --- tiki-browse_image.tpl 9 May 2004 20:14:49 -0000 1.21.2.2 +++ tiki-browse_image.tpl 16 May 2004 23:23:35 -0000 1.21.2.3 @@ -1,12 +1,12 @@ -{if ($popup != "") } +{if $popup ne ""} <script language='Javascript' type='text/javascript'> window.resizeTo({$winx},{$winy}); </script> {/if} -{if ($popup == "") } +{if $popup eq ""} <a class="pagetitle" href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$imageId}">{tr}Browsing Image{/tr}: {$name}</a> - <br/><br/> + <br /><br /> <a class="linkbut" href="tiki-browse_gallery.php?galleryId={$galleryId}">{tr}return to gallery{/tr}</a> {if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner)} <a class="linkbut" href="tiki-edit_image.php?galleryId={$galleryId}&edit={$imageId}">{tr}edit image{/tr}</a> @@ -14,66 +14,73 @@ {/if} -{if ($popup != "") } - <div valign=middle height={$winy} align="center" > - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$firstId}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_first.gif' border='0' alt='{tr}first image{/tr}' title='{tr}first image{/tr}' /></a> - {if $prevx != 0} +{if $popup ne "" } + <div style="vertical-align: middle" height="{$winy}" align="center"> + {if $imageId ne $firstId} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp=0&galleryId={$galleryId}&imageId={$firstId}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_first.gif' border='0' alt='{tr}first image{/tr}' title='{tr}first image{/tr}' /></a> + {/if} + {if $prevx ne 0} <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$imageId}&scaled&xsize={$prevx}&ysize={$prevy}&popup={$popup}" class="gallink"><img src='img/icons2/down.gif' border='0' alt='{tr}smaller{/tr}' title='{tr}smaller{/tr}' /></a> {/if} - {if $itype !='o'} + {if $itype ne 'o'} <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$imageId}&popup={$popup}" class="gallink"><img src='img/icons2/nav_dot.gif' border='0' alt='{tr}original size{/tr}' title='{tr}original size{/tr}' /></a> {/if} - {if $nextx != 0} + {if $nextx ne 0} <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$imageId}&scaled&xsize={$nextx}&ysize={$nexty}&popup={$popup}" class="gallink"><img src='img/icons2/up.gif' border='0' alt='{tr}bigger{/tr}' title='{tr}bigger{/tr}' /></a> {/if} - {if $previmg} + {if $previmg ne '' && $desp ne 0} <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$previmg}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_dot_right.gif' border='0' alt='{tr}prev image{/tr}' title='{tr}prev image{/tr}' /></a> {/if} - {if $nextimg} + {if $nextimg ne ''} <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$nextdesp}&galleryId={$galleryId}&imageId={$nextimg}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_dot_left.gif' border='0' alt='{tr}next image{/tr}' title='{tr}next image{/tr}' /></a> {/if} - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$lastId}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_last.gif' border='0' alt='{tr}last image{/tr}' title='{tr}last image{/tr}' /></a> + {if $imageId ne $lastId} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$lastdesp}&galleryId={$galleryId}&imageId={$lastId}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_last.gif' border='0' alt='{tr}last image{/tr}' title='{tr}last image{/tr}' /></a> + {/if} </div> <br /> {/if} <div class="showimage" {if ($popup) }style="height: 400px"{/if}> - {if $itype=='o'} + {if $itype eq 'o'} <img alt="image" src="show_image.php?id={$imageId}" /> {else} - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$desp}&galleryId={$galleryId}&imageId={$imageId}&xsize={$nextx}&ysize={$nexty}&scaled" title="{tr}Click to enlarge{/tr}"> + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$desp}&galleryId={$galleryId}&imageId={$imageId}&xsize={$nextx}&ysize={$nexty}&scaled" title="{tr}Click to zoom{/tr}"> <img alt="image" src="show_image.php?id={$imageId}&scaled&xsize={$sxsize}&ysize={$sysize}" /></a> {/if} </div> -{if ($popup == "")} +{if $popup eq ""} <div align="center" > - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$firstId}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_first.gif' border='0' alt='{tr}first image{/tr}' title='{tr}first image{/tr}' /></a> - {if $prevx != 0} - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$imageId}&scaled&xsize={$prevx}&ysize={$prevy}&popup={$popup}" class="gallink"><img src='img/icons2/down.gif' border='0' alt='{tr}smaller{/tr}' title='{tr}smaller{/tr}' /></a> + {if $imageId ne $firstId} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp=0&galleryId={$galleryId}&imageId={$firstId}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}" class="gallink"><img src='img/icons2/nav_first.gif' border='0' alt='{tr}first image{/tr}' title='{tr}first image{/tr}' /></a> + {/if} + {if $prevx ne 0} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$desp}&galleryId={$galleryId}&imageId={$imageId}&scaled&xsize={$prevx}&ysize={$prevy}" class="gallink"><img src='img/icons2/down.gif' border='0' alt='{tr}smaller{/tr}' title='{tr}smaller{/tr}' /></a> {/if} - {if $itype !='o'} - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$imageId}&popup={$popup}" class="gallink"><img src='img/icons2/nav_dot.gif' border='0' alt='{tr}original size{/tr}' title='{tr}original size{/tr}' /></a> + {if $itype ne 'o'} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$desp}&galleryId={$galleryId}&imageId={$imageId}" class="gallink"><img src='img/icons2/nav_dot.gif' border='0' alt='{tr}original size{/tr}' title='{tr}original size{/tr}' /></a> {/if} - {if $nextx != 0} - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$imageId}&scaled&xsize={$nextx}&ysize={$nexty}&popup={$popup}" class="gallink"><img src='img/icons2/up.gif' border='0' alt='{tr}bigger{/tr}' title='{tr}bigger{/tr}' /></a> + {if $nextx ne 0} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$desp}&galleryId={$galleryId}&imageId={$imageId}&scaled&xsize={$nextx}&ysize={$nexty}" class="gallink"><img src='img/icons2/up.gif' border='0' alt='{tr}bigger{/tr}' title='{tr}bigger{/tr}' /></a> {/if} - {if $previmg} - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$previmg}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_dot_right.gif' border='0' alt='{tr}prev image{/tr}' title='{tr}prev image{/tr}' /></a> + {if $previmg ne '' && $desp ne 0} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$previmg}{if $itype eq 's'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}" class="gallink"><img src='img/icons2/nav_dot_right.gif' border='0' alt='{tr}prev image{/tr}' title='{tr}prev image{/tr}' /></a> {/if} <a {jspopup height="$winy" width="$winx" href="tiki-browse_image.php?offset=$offset&sort_mode=$sort_mode&desp=$nextdesp&galleryId=$galleryId&imageId=$imageId&popup=1"} class="gallink"><img src='img/icons2/admin_unhide.gif' border='0' alt='{tr}Popup window{/tr}' title='{tr}popup window{/tr}' /></a> - {if $nextimg} - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$nextdesp}&galleryId={$galleryId}&imageId={$nextimg}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_dot_left.gif' border='0' alt='{tr}next image{/tr}' title='{tr}next image{/tr}' /></a> + {if $nextimg ne ''} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$nextdesp}&galleryId={$galleryId}&imageId={$nextimg}{if $itype eq 's'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}" class="gallink"><img src='img/icons2/nav_dot_left.gif' border='0' alt='{tr}next image{/tr}' title='{tr}next image{/tr}' /></a> {/if} - - <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$prevdesp}&galleryId={$galleryId}&imageId={$lastId}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}&popup={$popup}" class="gallink"><img src='img/icons2/nav_last.gif' border='0' alt='{tr}last image{/tr}' title='{tr}last image{/tr}' /></a> + {if $imageId ne $lastId} + <a href="tiki-browse_image.php?offset={$offset}&sort_mode={$sort_mode}&desp={$lastdesp}&galleryId={$galleryId}&imageId={$lastId}{if $itype=='s'}&scaled&xsize={$sxsize}&ysize={$sysize}{/if}" class="gallink"><img src='img/icons2/nav_last.gif' border='0' alt='{tr}last image{/tr}' title='{tr}last image{/tr}' /></a> + {/if} </div> {/if} -{if ($popup == "") } - <br/><br/> +{if $popup eq ""} + <br /><br /> <table class="normal"> <tr><td class="odd">{tr}Image Name{/tr}:</td><td class="odd">{$name}</td></tr> <tr><td class="even">{tr}Created{/tr}:</td><td class="even">{$created|tiki_long_datetime}</td></tr> @@ -95,7 +102,7 @@ </td></tr> {/if} </table> -<br/><br/> +<br /><br /> <table class="normal"> <tr> <td class="even"> |