Commit a5f91d60 authored by sylvieg's avatar sylvieg

[MOD]fgal: can dicplay fgal ID in list

parent cddabc9f
{* $Header: /cvsroot/tikiwiki/tiki/templates/file_galleries.tpl,v 1.8 2007-02-16 23:45:16 sylvieg Exp $ *}
{* $Header: /cvsroot/tikiwiki/tiki/templates/file_galleries.tpl,v 1.9 2007-03-19 17:53:55 sylvieg Exp $ *}
{if !isset($show_find) or $show_find ne 'n'}
<div align="center">
<table class="findtable">
......@@ -19,6 +19,10 @@
<table class="normal">
<tr>
{assign var='cntcol' value=1}
{if $fgal_list_id eq 'y'}
{assign var='cntcol' value=$cntcol+1}
<td class="heading"><a class="tableheading" href="{$smarty.server.PHP_SELF}?offset={$offset}{if isset($galleryId)}&amp;galleryId={$galleryId}{/if}{if $find}find={$find}{/if}&amp;sort_mode={if $sort_mode eq 'galleryId_desc'}galleryId_asc{else}galleryId_desc{/if}">{tr}ID{/tr}</a></td>
{/if}
{if $fgal_list_name eq 'y'}
{assign var='cntcol' value=$cntcol+1}
<td class="heading"><a class="tableheading" href="{$smarty.server.PHP_SELF}?offset={$offset}{if isset($galleryId)}&amp;galleryId={$galleryId}{/if}{if $find}find={$find}{/if}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></td>
......@@ -61,6 +65,12 @@
{section name=changes loop=$galleries}
{if $galleries[changes].visible eq 'y' or $tiki_p_admin_file_galleries eq 'y'}
<tr>
{if $fgal_list_id eq 'y'}
<td class="{cycle advance=false}">
<a class="fgalname" href="tiki-list_file_gallery.php?galleryId={$galleries[changes].id}" title="{tr}list{/tr}">{$galleries[changes].galleryId}</a>
</td>
{/if}
{if $fgal_list_name eq 'y'}
<td class="{cycle advance=false}">
<a class="fgalname" href="tiki-list_file_gallery.php?galleryId={$galleries[changes].id}" title="{tr}list{/tr}">{$galleries[changes].name}</a>
......
{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-admin-include-fgal.tpl,v 1.28 2007-02-19 00:52:28 nyloth Exp $ *}
{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-admin-include-fgal.tpl,v 1.29 2007-03-19 17:53:55 sylvieg Exp $ *}
<div class="rbox" name="tip">
<div class="rbox-title" name="tip">{tr}Tip{/tr}</div>
......@@ -94,6 +94,10 @@
<div class="cbox-data">
<form method="post" action="tiki-admin.php?page=fgal">
<table class="admin"><tr class="formcolor">
<td>{tr}ID{/tr}</td>
<td><input type="checkbox" name="fgal_list_id"
{if $fgal_list_id eq 'y'}checked="checked"{/if} /></td>
</tr><tr class="formcolor">
<td>{tr}Name{/tr}</td>
<td><input type="checkbox" name="fgal_list_name"
{if $fgal_list_name eq 'y'}checked="checked"{/if} /></td>
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-admin_include_fgal.php,v 1.23 2007-03-06 19:29:45 sylvieg Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-admin_include_fgal.php,v 1.24 2007-03-19 17:53:55 sylvieg Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -52,6 +52,7 @@ if (isset($_REQUEST["filegalfeatures"])) {
if (isset($_REQUEST["filegallistprefs"])) {
check_ticket('admin-inc-fgal');
simple_set_toggle("fgal_list_id");
simple_set_toggle("fgal_list_name");
simple_set_toggle("fgal_list_description");
simple_set_toggle("fgal_list_type");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment