From c144f2e51e27431ae770661216906997c5dbd725 Mon Sep 17 00:00:00 2001 From: x2004laborde Date: Thu, 15 Mar 2007 19:26:26 +0000 Subject: [PATCH] Survey module : basic templates git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1576 839d8a87-29fc-0310-9880-83ba4fa771e5 --- templates/survey/admin.tpl | 101 +++++++++++++++++++++++++++++++++++++ templates/survey/confirm.tpl | 40 +++++++++++++++ templates/survey/edit_checkbox.tpl | 26 ++++++++++ templates/survey/edit_new.tpl | 39 ++++++++++++++ templates/survey/edit_num.tpl | 26 ++++++++++ templates/survey/edit_personal.tpl | 37 ++++++++++++++ templates/survey/edit_question.tpl | 32 ++++++++++++ templates/survey/edit_radio.tpl | 30 +++++++++++ templates/survey/edit_root.tpl | 40 +++++++++++++++ templates/survey/edit_survey.tpl | 35 +++++++++++++ templates/survey/edit_text.tpl | 26 ++++++++++ templates/survey/edit_textarea.tpl | 26 ++++++++++ templates/survey/error.tpl | 44 ++++++++++++++++ templates/survey/index.tpl | 77 ++++++++++++++++++++++++++++ templates/survey/show_checkbox.tpl | 28 ++++++++++ templates/survey/show_num.tpl | 26 ++++++++++ templates/survey/show_personal.tpl | 33 ++++++++++++ templates/survey/show_radio.tpl | 28 ++++++++++ templates/survey/show_survey.tpl | 76 ++++++++++++++++++++++++++++ templates/survey/show_text.tpl | 26 ++++++++++ templates/survey/show_textarea.tpl | 26 ++++++++++ templates/survey/success.tpl | 32 ++++++++++++ templates/survey/test.tpl | 57 +++++++++++++++++++++ 23 files changed, 911 insertions(+) create mode 100644 templates/survey/admin.tpl create mode 100644 templates/survey/confirm.tpl create mode 100644 templates/survey/edit_checkbox.tpl create mode 100644 templates/survey/edit_new.tpl create mode 100644 templates/survey/edit_num.tpl create mode 100644 templates/survey/edit_personal.tpl create mode 100644 templates/survey/edit_question.tpl create mode 100644 templates/survey/edit_radio.tpl create mode 100644 templates/survey/edit_root.tpl create mode 100644 templates/survey/edit_survey.tpl create mode 100644 templates/survey/edit_text.tpl create mode 100644 templates/survey/edit_textarea.tpl create mode 100644 templates/survey/error.tpl create mode 100644 templates/survey/index.tpl create mode 100644 templates/survey/show_checkbox.tpl create mode 100644 templates/survey/show_num.tpl create mode 100644 templates/survey/show_personal.tpl create mode 100644 templates/survey/show_radio.tpl create mode 100644 templates/survey/show_survey.tpl create mode 100644 templates/survey/show_text.tpl create mode 100644 templates/survey/show_textarea.tpl create mode 100644 templates/survey/success.tpl create mode 100644 templates/survey/test.tpl diff --git a/templates/survey/admin.tpl b/templates/survey/admin.tpl new file mode 100644 index 0000000..2d5cfbe --- /dev/null +++ b/templates/survey/admin.tpl @@ -0,0 +1,101 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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

+ + + + + + {iterate item=s from=$survey_waiting} + + + + {assign var="has_ws" value="true"} + {/iterate} + {if !$has_ws} + + + + {/if} +
+ Sondages en attente de validation +
+ • + + {$s.title} ({$s.end|date_format:"%x"}) + +
Aucun sondage en attente de validation
+ +
+ + + + + + {iterate item=s from=$survey_current} + + + + {assign var="has_cs" value="true"} + {/iterate} + {if !$has_cs} + + + + {/if} +
+ Sondages en cours +
+ • + + {$s.title} ({$s.end|date_format:"%x"}) + +
Aucun sondage en cours
+ +
+ + + + + + {iterate item=s from=$survey_old} + + + + {assign var="has_os" value="true"} + {/iterate} + {if !$has_os} + + + + {/if} +
+ Anciens sondages +
+ • + + {$s.title} ({$s.end|date_format:"%x"}) + +
Aucun ancien sondage
+ +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/survey/confirm.tpl b/templates/survey/confirm.tpl new file mode 100644 index 0000000..e90d8ec --- /dev/null +++ b/templates/survey/confirm.tpl @@ -0,0 +1,40 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} +

Sondage : confirmation

+ +
+ {if is_array($survey_formhidden)} + {foreach from=$survey_formhidden item=s_value key=s_key} + + {/foreach} + {/if} + {if $survey_message neq ""} + {$survey_message} + {else} + Une confirmation est requise + {/if} +
+ + +
+ +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/survey/edit_checkbox.tpl b/templates/survey/edit_checkbox.tpl new file mode 100644 index 0000000..fc042ea --- /dev/null +++ b/templates/survey/edit_checkbox.tpl @@ -0,0 +1,26 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + +{include file='survey/edit_radio.tpl'} + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/edit_new.tpl b/templates/survey/edit_new.tpl new file mode 100644 index 0000000..887d8b0 --- /dev/null +++ b/templates/survey/edit_new.tpl @@ -0,0 +1,39 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + Type + + + + + {if $survey_type == "new"} + {include file='survey/edit_question.tpl'} + {else} + {include file="survey/edit_$survey_type.tpl"} + {/if} + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/edit_num.tpl b/templates/survey/edit_num.tpl new file mode 100644 index 0000000..7956f0f --- /dev/null +++ b/templates/survey/edit_num.tpl @@ -0,0 +1,26 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + {include file='survey/edit_question.tpl'} + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/edit_personal.tpl b/templates/survey/edit_personal.tpl new file mode 100644 index 0000000..ae8b869 --- /dev/null +++ b/templates/survey/edit_personal.tpl @@ -0,0 +1,37 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + {include file='survey/edit_question.tpl' disable_question=true} + + Demande + +
+ + + + Cette question détruit totalement ou en partie l'anonymat du sondage : un message sera affiché pour prévenir les utilisateurs, + ils pourront accepter ou non de transmettre ces informations. + + + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/edit_question.tpl b/templates/survey/edit_question.tpl new file mode 100644 index 0000000..bff8c4f --- /dev/null +++ b/templates/survey/edit_question.tpl @@ -0,0 +1,32 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + + Question + + + + Commentaire + + + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/survey/edit_radio.tpl b/templates/survey/edit_radio.tpl new file mode 100644 index 0000000..4558c39 --- /dev/null +++ b/templates/survey/edit_radio.tpl @@ -0,0 +1,30 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + {include file='survey/edit_question.tpl'} + + Choix + + + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/edit_root.tpl b/templates/survey/edit_root.tpl new file mode 100644 index 0000000..daa524c --- /dev/null +++ b/templates/survey/edit_root.tpl @@ -0,0 +1,40 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + + Titre + + + + Commentaire + + + + Date de fin + + + + Promotions + + + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/survey/edit_survey.tpl b/templates/survey/edit_survey.tpl new file mode 100644 index 0000000..b4dfb64 --- /dev/null +++ b/templates/survey/edit_survey.tpl @@ -0,0 +1,35 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} +

Sondage : {if $survey_type == 'root'}nouveau sondage{else}nouvelle question{/if}

+ +
+ + + + {include file="survey/edit_$survey_type.tpl"} +
+ + + +
+ +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/survey/edit_text.tpl b/templates/survey/edit_text.tpl new file mode 100644 index 0000000..7956f0f --- /dev/null +++ b/templates/survey/edit_text.tpl @@ -0,0 +1,26 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + {include file='survey/edit_question.tpl'} + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/edit_textarea.tpl b/templates/survey/edit_textarea.tpl new file mode 100644 index 0000000..7956f0f --- /dev/null +++ b/templates/survey/edit_textarea.tpl @@ -0,0 +1,26 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + {include file='survey/edit_question.tpl'} + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/error.tpl b/templates/survey/error.tpl new file mode 100644 index 0000000..714e7ad --- /dev/null +++ b/templates/survey/error.tpl @@ -0,0 +1,44 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} +

Sondage : erreur

+ +{if !is_null($survey_errors) && is_array($survey_errors)} + + + + + {foreach from=$survey_errors item=survey_error} + + + + + {/foreach} +
Une ou plusieurs erreurs sont survenues
• {$survey_error.error}corriger
+{elseif $survey_message neq ""} + {$survey_message} +{else} +Une erreur inconnue est survenue dans l'édition de ce sondage. N'hésite pas â signaler ce bug si il persiste. +{/if} +
+Retour + +{* vim:set et sw=2 sts=2 ts=8: *} diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl new file mode 100644 index 0000000..b838a67 --- /dev/null +++ b/templates/survey/index.tpl @@ -0,0 +1,77 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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

+ + + + + + {iterate item=s from=$survey_current} + + + + {assign var="has_cs" value="true"} + {/iterate} + {if !$has_cs} + + + + {/if} +
+ Sondages en cours +
+ • + + {$s.title} ({$s.end|date_format:"%x"}) + +
Aucun sondage en cours
+ +
+ + + + + + {iterate item=s from=$survey_old} + + + + {assign var="has_os" value="true"} + {/iterate} + {if !$has_os} + + + + {/if} +
+ Anciens sondages +
+ • + + {$s.title} ({$s.end|date_format:"%x"}) + +
Aucun ancien sondage
+ +Proposer un sondage + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/survey/show_checkbox.tpl b/templates/survey/show_checkbox.tpl new file mode 100644 index 0000000..532787d --- /dev/null +++ b/templates/survey/show_checkbox.tpl @@ -0,0 +1,28 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + +{foreach from=$survey.choices item=choice} + +{/foreach} + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/show_num.tpl b/templates/survey/show_num.tpl new file mode 100644 index 0000000..755375d --- /dev/null +++ b/templates/survey/show_num.tpl @@ -0,0 +1,26 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + +{include file='survey/show_text.tpl'} + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/show_personal.tpl b/templates/survey/show_personal.tpl new file mode 100644 index 0000000..f298be9 --- /dev/null +++ b/templates/survey/show_personal.tpl @@ -0,0 +1,33 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 $survey.promo} +
+{/if} +{if $survey.name} +
+{/if} + Attention, cocher cette(ces) case(s) détruit totalement ou en partie l'anonymat de ta réponse. + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/show_radio.tpl b/templates/survey/show_radio.tpl new file mode 100644 index 0000000..f614f9a --- /dev/null +++ b/templates/survey/show_radio.tpl @@ -0,0 +1,28 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + +{foreach from=$survey.choices item=choice} + +{/foreach} + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/show_survey.tpl b/templates/survey/show_survey.tpl new file mode 100644 index 0000000..e062a13 --- /dev/null +++ b/templates/survey/show_survey.tpl @@ -0,0 +1,76 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 $survey.type == 'root'} +

Sondage : {$survey.question}

+ {if $survey.comment != ''} + {$survey.comment} + {/if} +
Fin du sondage : + {if $survey.end eq "#"} + erreur + {else} + {$survey.end|date_format:"%x"} + {/if} +
Réservé aux promotions : + {if $survey.promos eq "#"} + erreur + {elseif $survey.promos eq ""} + aucune restriction + {else} + {$survey.promos} + {/if} +
+Modifier la racine | +Ajouter une question au début + {if is_array($survey.children)} + {foreach from=$survey.children item=child} + {include file='survey/show_survey.tpl' survey=$child recursive=true} + {/foreach} + {/if} +

+{if $survey_adminmode}Enregistrer les modifications{else}Proposer ce sondage{/if} | +Annuler {if $survey_adminmode}les modifications{else}totalement la création de ce sondage{/if} + +{else} +
+

{$survey.question}

+ {if $survey.comment != ''} + {$survey.comment}
+ {/if} + {assign var='survey_type' value=$survey.type} + {include file="survey/show_$survey_type.tpl"} +
+ Modifier cette question | + Supprimer cette question | + {if is_array($survey.children)} + Ajouter une question imbriquée +
+ {foreach from=$survey.children item=child} + {include file='survey/show_survey.tpl' survey=$child recursive=true} + {/foreach} +
+ {/if} + Ajouter une question après +
+{/if} + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/survey/show_text.tpl b/templates/survey/show_text.tpl new file mode 100644 index 0000000..5ef4ac9 --- /dev/null +++ b/templates/survey/show_text.tpl @@ -0,0 +1,26 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/show_textarea.tpl b/templates/survey/show_textarea.tpl new file mode 100644 index 0000000..31a5225 --- /dev/null +++ b/templates/survey/show_textarea.tpl @@ -0,0 +1,26 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} + + + +{* vim:set et sw=2 sts=2 sws=2: *} + diff --git a/templates/survey/success.tpl b/templates/survey/success.tpl new file mode 100644 index 0000000..baede07 --- /dev/null +++ b/templates/survey/success.tpl @@ -0,0 +1,32 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 *} +{* *} +{**************************************************************************} +

Sondage : succès

+ +{if $survey_message neq ""} + {$survey_message} +{else} + Opération réussie +{/if} +
+Retour + +{* vim:set et sw=2 sts=2 ts=8: *} diff --git a/templates/survey/test.tpl b/templates/survey/test.tpl new file mode 100644 index 0000000..34d13f2 --- /dev/null +++ b/templates/survey/test.tpl @@ -0,0 +1,57 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 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 $survey.type == 'racine'} +

Sondage : {$survey.question}

+ {if $survey.comment != ''} + {$survey.comment} + {/if} + {if is_array($survey.children)} + {foreach from=$survey.children item=child} + {include file='survey/test.tpl' survey=$child recursive=true} + {/foreach} + {/if} + +{else} +
+

{$survey.question}

+ {if $survey.comment != ''} + {$survey.comment}
+ {/if} + {if $survey.type == 'text' || $survey.type == 'num' } + + {elseif $survey.type == 'radio'} + {foreach from=$survey.choices item=choice} + + {/foreach} + {/if} + {if is_array($survey.children)} +
+ {foreach from=$survey.children item=child} + {include file='survey/test.tpl' survey=$child recursive=true} + {/foreach} +
+ {/if} +
+{/if} + +{* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4