{**************************************************************************} {* *} {* Copyright (C) 2003-2004 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} {* it under the terms of the GNU General Public License as published by *} {* the Free Software Foundation; either version 2 of the License, or *} {* (at your option) any later version. *} {* *} {* This program is distributed in the hope that it will be useful, *} {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} {* GNU General Public License for more details. *} {* *} {* You should have received a copy of the GNU General Public License *} {* along with this program; if not, write to the Free Software *} {* Foundation, Inc., *} {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} {* *} {**************************************************************************}

{$title}

{if !$doedit} {if !$readonly} {literal} {/literal} {/if}
{if $idsum}{/if} {foreach from=$vars item=myval} {if $myval.sum}{/if} {/foreach} {if !$hideactions} {/if} {if !$readonly} {/if} {foreach from=$rows item=myrow}{assign var="myarr" value=$myrow[1]} {if $idsum}{/if} {foreach from=$vars key=mykey item=myval} {if $myval.sum} {/if} {/foreach} {if !$hideactions} {/if} {/foreach}
id{$myval.desc}action
nouvelle entrée create
{$myrow[0]} {if $myval.type=="timestamp"} {$myarr.$mykey|date_format:"%x %X"} {elseif $myval.type=="set" and $myval.trans} {$myval.trans[$myval.value]} {elseif $myval.type=="ext"} {extval table=$table field=$mykey value=$myarr.$mykey vtable=$myval.vtable vjoinid=$myval.vjoinid vfield=$myval.vfield} {else} {$myarr.$mykey} {/if} {if !$readonly} edit delete {/if} {foreach from=$myrow[2] item=myaction} {a lnk=$myaction} {/foreach}
{if ($p_prev > -1) || ($p_next > -1)} {/if} {else}
{foreach from=$vars key=mykey item=myval} {/foreach}
{if $id!=''} modification de l'entrée {else} nouvelle entrée {/if}
{$myval.desc} {if $myval.type=="password"}
(blank=no change){/if}
{if $myval.edit} {if $myval.type=="textarea"} {elseif $myval.type=="set"} {if $myval.trans} {flags table=$table field=$mykey name="$prefix$mykey" selected=$myval.trans[$myval.value] trans=$myval.trans} {else} {flags table=$table field=$mykey name="$prefix$mykey" selected=$myval.value} {/if} {elseif $myval.type=="ext"} {extval table=$table field=$mykey name="$prefix$mykey" vtable=$myval.vtable vjoinid=$myval.vjoinid vfield=$myval.vfield selected=$myval.value} {elseif $myval.type=="timestamp"} {elseif $myval.type=="password"} {else} {/if} {else} {$myval.value|escape} {/if}

back

{/if} {* vim:set et sw=2 sts=2 sws=2: *}