0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
tikiwiki
/
1.9.7-31
/
htdocs
/
templates
/
[
Home
]
File: tiki-list_gallery.tpl
<h1><a href="tiki-list_gallery.php?galleryId={$galleryId}" class="pagetitle">{tr}Browsing Gallery{/tr}: {$name}</a></h1> {if $system eq 'n'} {if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner)} <a href="tiki-galleries.php?edit_mode=1&galleryId={$galleryId}" class="linkbut">{tr}edit gallery{/tr}</a> <a href="tiki-list_gallery.php?galleryId={$galleryId}&rebuild={$galleryId}" class="linkbut">{tr}rebuild thumbnails{/tr}</a> {/if} {if $tiki_p_upload_images eq 'y'} {if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner) or $public eq 'y'} <a href="tiki-upload_image.php?galleryId={$galleryId}" class="linkbut">{tr}upload image{/tr}</a> {/if} {/if} {/if} <a href="tiki-browse_gallery.php?galleryId={$galleryId}" class="linkbut">{tr}browse gallery{/tr}</a> <br /><br /> <div class="galdesc"> {$description} </div> <h3>{tr}Gallery Images{/tr}</h3> <div align="center"> <table class="normal"> <tr> <td class="heading"><a class="tableheading" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$offset}&sort_mode={if $sort_mode eq 'imageId_desc'}imageId_asc{else}imageId_desc{/if}">{tr}ID{/tr}</a></td> <td class="heading"><a class="tableheading" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$offset}&sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></td> <td class="heading"><a class="tableheading" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$offset}&sort_mode={if $sort_mode eq 'created_desc'}created_asc{else}created_desc{/if}">{tr}Created{/tr}</a></td> <td class="heading"><a class="tableheading" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$offset}&sort_mode={if $sort_mode eq 'hits_desc'}hits_asc{else}hits_desc{/if}">{tr}Hits{/tr}</a></td> <td class="heading"><a class="tableheading" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$offset}&sort_mode={if $sort_mode eq 'user_desc'}user_asc{else}user_desc{/if}">{tr}User{/tr}</a></td> <td class="heading"><a class="tableheading" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$offset}&sort_mode={if $sort_mode eq 'filesize_desc'}filesize_asc{else}filesize_desc{/if}">{tr}Filesize{/tr}</a></td> </tr> {cycle print=false values="even,odd"} {section name=changes loop=$images} <tr> <td class="{cycle advance=false}">{$images[changes].imageId} </td> <td class="{cycle advance=false}"><a class="imagename" href="tiki-browse_image.php?{if $images[changes].galleryId}galleryId={$images[changes].galleryId}&{/if}imageId={$images[changes].imageId}">{$images[changes].name|truncate:22:"..."}</a> {if $tiki_p_admin_galleries eq 'y' or ($user and $user eq $owner)} <a class="gallink" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$offset}&sort_mode={$sort_mode}&remove={$images[changes].imageId}">[x]</a> {/if} </td> <td class="{cycle advance=false}">{$images[changes].created|tiki_short_datetime} </td> <td class="{cycle advance=false}">{$images[changes].hits} </td> <td class="{cycle advance=false}">{$images[changes].user} </td> <td class="{cycle}">{$images[changes].filesize|kbsize} </td> </tr> {sectionelse} <tr><td colspan="6"> <b>{tr}No records found{/tr}</b> </td></tr> {/section} </table> <div class="mini"> {if $prev_offset >= 0} [<a class="galprevnext" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$prev_offset}&sort_mode={$sort_mode}">{tr}prev{/tr}</a>] {/if} {tr}Page{/tr}: {$actual_page}/{$cant_pages} {if $next_offset >= 0} [<a class="galprevnext" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$next_offset}&sort_mode={$sort_mode}">{tr}next{/tr}</a>] {/if} {if $direct_pagination eq 'y'} <br /> {section loop=$cant_pages name=foo} {assign var=selector_offset value=$smarty.section.foo.index|times:$maxRecords} <a class="prevnext" href="tiki-list_gallery.php?galleryId={$galleryId}&offset={$selector_offset}&sort_mode={$sort_mode}"> {$smarty.section.foo.index_next}</a> {/section} {/if} </div> </div>