{**************************************************************************}
{* *}
{* Copyright (C) 2003-2011 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 *}
{* *}
{**************************************************************************}
Sondages
{* Survey::MODE_ALL equals 0. *}
{assign var=SurveyMODE_ALL value=0}
{if $survey_current->total() > 0 || $smarty.session.auth}
Sondages en cours
|
{iterate item=s from=$survey_current}
{if $smarty.session.auth || $s.mode == $SurveyMODE_ALL}
{$s.title}
{if $s.uid eq $smarty.session.user->id() || hasPerm('admin')}
(résultats partiels)
{/if}
|
{$s.end|date_format:"%x"}
|
{$survey_modes[$s.mode]}
|
{assign var="has_cs" value="true"}
{/if}
{/iterate}
{if hasPerm('user')}
{if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if}
|
{/if}
{/if}
Anciens sondages
|
{iterate item=s from=$survey_old}
{if $smarty.session.auth || $s.mode == $SurveyMODE_ALL}
{$s.title}
|
{$s.end|date_format:"%x"}
|
{$survey_modes[$s.mode]}
|
{assign var="has_os" value="true"}
{/if}
{/iterate}
{if !$has_os}
Aucun ancien sondage |
{/if}
{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}