{**************************************************************************} {* *} {* Copyright (C) 2003-2010 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 $list} {foreach from=$t->vars item=myval key=myvar}{if $myval.display} {/if}{/foreach} {if !$hideactions} {/if} {if !$readonly and !$deleteonly} {/if} {iterate from=$list item=myrow} {foreach from=$t->vars item=myval}{if $myval.display} {/if}{/foreach} {if !$hideactions} {/if} {/iterate}
{$myval.desc}{if $t->sortfield eq $myvar}{if $t->sortdesc}{icon name="bullet_arrow_down"}{else}{icon name="bullet_arrow_up"}{/if}{/if}action
Nouvelles entrées : ManuellementDepuis un CSV {icon name=add title='nouvelle entrée'}
{assign var="myfield" value=$myval.Field} {if $myfield eq $t->idfield} {assign var="idval" value=$myrow.$myfield} {/if} {if $myval.Type eq 'timestamp'} {$myrow.$myfield|date_format:"%x %X"} {elseif $myval.Type eq 'checkbox'} {elseif $myval.Type eq 'ip_address'} {$myrow.$myfield|uint_to_ip} {else} {$myrow.$myfield} {/if} {if !$readonly and !$deleteonly} {icon name=page_edit title='éditer'} {/if} {if !$readonly} {icon name=delete title='supprimer'} {/if}
{if ($p_prev > -1) || ($p_next > -1)} {/if} {elseif $massadd} {include core=csv-importer.tpl}

back

{else}
{xsrf_token_field} {foreach from=$t->vars item=myval}{assign var="myfield" value=$myval.Field}{if ($myfield neq $t->idfield) or ($t->idfield_editable)} {/if}{/foreach}
{if $id !== null} modification de l'entrée {else} nouvelle entrée {/if}
{$myval.desc} {if $myval.Type eq 'set'} {elseif $myval.Type eq 'enum'} {elseif ($myval.Type eq 'textarea') or ($myval.Type eq 'varchar200')} {elseif ($myval.Type eq 'checkbox')} {else} {if $myval.Type eq 'timestamp'}jj/mm/aaaa hh:mm:ss{/if} {if $myval.Type eq 'date'}jj/mm/aaaa{/if} {if $myval.Type eq 'time'}hh:mm:ss{/if} {/if}

back

{/if} {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}