{**************************************************************************} {* *} {* Copyright (C) 2003-2006 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 *} {* *} {**************************************************************************}
    {if $csv_page eq 'source'}
  • 1 - Choisir
    la source
  • {else}
  • 1 - Choisir
    la source
  • {/if} {if $csv_page eq 'values'}
  • 2 - Définir
    les valeurs
  • {elseif $csv}
  • 2 - Définir
    les valeurs
  • {else}
  • 2 - Définir
    les valeurs
  • {/if} {if $csv_page eq 'valid'}
  • 3 - Vérifier
    et valider
  • {elseif $csv_action}
  • 3 - Vérifier
    et valider
  • {else}
  • 3 - Vérifier
    et valider
  • {/if}
{if !$csv_done} {/if}
{if $csv_page eq 'source'}
Entrez les données sous la forme :
TITRE1;TITRE2;...
val1_1;val1_2;...
val2_1;val2_2;...
val3_1;val3_2;...
{elseif $csv_page eq 'values'}
Action à effectuer si l'entrée existe :
{if $smarty.request.csv_action eq 'update'} {/if} {foreach from=$csv_fields item=f} {if $smarty.request.csv_action eq 'update'} {/if} {/foreach}
Champ ValeurMàJ
{$csv_field_desc[$f]|default:$f} Si
Alors
Sinon
{elseif $csv_page eq 'valid'} {if !$csv_done} {foreach from=$csv_fields item=f} {/foreach} {foreach from=$csv_preview item=assoc} {foreach from=$csv_fields item=f} {/foreach} {/foreach}
{$csv_field_desc[$f]|default:$f}
{$assoc[$f]}
{else} Les données ont été ajoutées. {/if} {/if}
{if $csv_page neq 'values'} {foreach from=$csv_fields item=f} {/foreach} {/if} {if $csv_page eq 'source'} {elseif $csv_page eq 'values'} {elseif $csv_page eq 'valid'} {/if}
{* vim:set et sws=2 sts=2 sw=2: *}