{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-list_file_gallery.tpl,v 1.31 2006/11/13 18:37:16 sylvieg Exp $ *} {if $data}<h4>{$data|escape}</h4>{else} <h4> {if $category}{tr}Category:{/tr} {$category|escape}<br />{/if} {if $gal_info.name}{tr}File Gallery:{/tr} <a href="tiki-list_file_gallery.php?galleryId={$gal_info.galleryId}" title="{tr}list{/tr}">{$gal_info.name|escape}</a>{/if} </h4> {/if} {assign var=nb value=`0`} <table class="normal"> <tr> {if $gal_info.show_id eq 'y'} <td class="heading">{tr}ID{/tr}</td> {assign var=nb value=`$nb+1`} {/if} {if $gal_info.name eq ''} <td class="heading">{tr}Gallery{/tr}</td> {assign var=nb value=`$nb+1`} {/if} {if $gal_info.show_icon eq 'y'} <td class="heading">{tr}Type{/tr}</td> {assign var=nb value=`$nb+1`} {/if} {if $gal_info.show_name eq 'a' || $gal_info.show_name eq 'n'} <td class="heading">{tr}Name{/tr}</td> {assign var=nb value=`$nb+1`} {/if} {if $gal_info.show_name eq 'a' || $gal_info.show_name eq 'f'} <td class="heading">{tr}Filename{/tr}</td> {assign var=nb value=`$nb+1`} {/if} {if $gal_info.show_size eq 'y'} <td style="text-align:right;" class="heading">{tr}Filesize{/tr}</td> {assign var=nb value=`$nb+1`} {/if} {if $gal_info.show_description eq 'y'} <td class="heading">{tr}Description{/tr}</td> {assign var=nb value=`$nb+1`} {/if} {if $gal_info.show_created eq 'y'} <td class="heading">{tr}Created{/tr}</td> <td class="heading">{tr}Creator{/tr}</td> {assign var=nb value=`$nb+2`} {/if} {if $gal_info.show_dl eq 'y'} <td style="text-align:right;" class="heading">{tr}Dls{/tr}</td> {assign var=nb value=`$nb+1`} {/if} {if $gal_info.show_lockedby eq 'y'} <td class="heading">{tr}Locked by{/tr}</td> {assign var=nb value=`$nb+1`} {/if} <td class="heading">{tr}Actions{/tr}</td> {assign var=nb value=`$nb+1`} </tr> {cycle values="odd,even" print=false} {section name=ix loop=$files} <tr> {if $gal_info.show_id eq 'y'} <td class="{cycle advance=false}">{$files[ix].fileId}</td> {/if} {if $gal_info.name eq ''} <td class="{cycle advance=false}"><a href="tiki-list_file_gallery.php?galleryId={$files[ix].galleryId}" title="{tr}list{/tr}">{tr}{$files[ix].gallery}{/tr}</a></td> {/if} {if $gal_info.show_icon eq 'y'} <td style="text-align:center;" class="{cycle advance=false}"> {$files[ix].filename|iconify} </td> {/if} {if $gal_info.show_name eq 'a' || $gal_info.show_name eq 'n'} <td class="{cycle advance=false}"> {if $files[ix].p_download_files eq 'y'} {if $files[ix].galleryType eq "podcast" or $files[ix].galleryType eq "vidcast"} <a class="fgalname" href="{$download_path}{$files[ix].path}"> {else} <a class="fgalname" href="tiki-download_file.php?fileId={$files[ix].fileId}"> {/if} {/if} {$files[ix].name|escape} {if $files[ix].p_download_files eq 'y'}</a>{/if} </td> {/if} {if $gal_info.show_name eq 'a' || $gal_info.show_name eq 'f'} <td class="{cycle advance=false}"> {if $files[ix].p_download_files eq 'y'} {if $files[ix].galleryType eq "podcast" or $files[ix].galleryType eq "vidcast"} <a class="fgalname" href="{$download_path}{$files[ix].path}"> {else} <a class="fgalname" href="tiki-download_file.php?fileId={$files[ix].fileId}"> {/if} {/if} {$files[ix].filename|escape} {if $files[ix].p_download_files eq 'y'}</a>{/if} </td> {/if} {if $gal_info.show_size eq 'y'} <td style="text-align:right;" class="{cycle advance=false}">{$files[ix].filesize|kbsize}</td> {/if} {if $gal_info.show_description eq 'y'} <td class="{cycle advance=false}">{$files[ix].description|truncate:$gal_info.max_desc:"..."|escape}</td> {/if} {if $gal_info.show_created eq 'y'} <td class="{cycle advance=false}">{$files[ix].created|tiki_short_date}</td> <td class="{cycle advance=false}">{$files[ix].user|escape}</td> {/if} {if $gal_info.show_dl eq 'y'} <td style="text-align:right;" class="{cycle advance=false}">{$files[ix].downloads}</td> {/if} {if $gal_info.show_lockedby eq 'y'} <td class="{cycle advance=false}">{$files[ix].lockedby|escape}</td> {/if} <td class="{cycle}"> {if $files[ix].p_download_files eq 'y'} {if $files[ix].galleryType eq "podcast" or $files[ix].galleryType eq "vidcast"} <a class="fgalname" href="{$download_path}{$files[ix].path}"> {else} <a class="fgalname" href="tiki-download_file.php?fileId={$files[ix].fileId}"> {/if} <img src="pics/icons/disk.png" border="0" width="16" height="16" alt="{tr}Download{/tr}" title="{tr}Download{/tr}" /></a> {/if} {if $files[ix].lockable == 'y' and $files[ix].p_edit_gallery_file == 'y' and ($files[ix].lockedby eq '' or $files[ix].lockedby eq $user) and $files[ix].galleryType ne "podcast" and $files[ix].galleryTtype ne "vidcast"} <a class="fgalname" href="tiki-download_file.php?fileId={$files[ix].fileId}&amp;user={$user|escape}" title="{tr}Download and lock{/tr}"> <img src="pics/icons/disk_lock.png" border="0" width="16" height="16" alt="{tr}Download and lock{/tr}" /></a> {/if} </td> <!--<td class="{cycle advance=false}">{$files[ix].user}&nbsp;</td>--> </tr> {sectionelse} <tr><td colspan="{$nb}"> <b>{tr}No records found{/tr}</b> </td></tr> {/section} </table>