private $question;
private $comment;
- protected function SurveyQuestion($i, $args)
+ protected function __construct($i, $args)
{
$this->id = $i;
$this->update($args);
// {{{ common properties, constructor
private $children;
- protected function SurveyTreeable($i, $args)
+ protected function __construct($i, $args)
{
parent::__construct($i, $args);
$this->children = array();
private $promos;
private $valid;
- public function SurveyRoot($args)
+ public function __construct($args)
{
parent::__construct(0, $args);
$this->last_id = 0;
{/if}
</table>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<input type="submit" name="survey_cancel" value="Annuler"/>
</form>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
{include file='survey/edit_radio.tpl'}
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
{include file="survey/edit_$survey_type.tpl"}
{/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
{include file='survey/edit_question.tpl'}
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
</td>
</tr>
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<td><textarea name="survey_question[comment]" rows="5" cols="60">{$survey_current.comment}</textarea></td>
</tr>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<td><input type="text" name="survey_question[options]" size="50" maxlength="200" value="{$survey_current.options}"/></td>
</tr>
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<td><input type="text" name="survey_question[promos]" size="50" maxlength="200" value="{$survey_current.promos}"/></td>
</tr>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<input type="submit" name="survey_cancel" value="Annuler"/>
</form>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
{include file='survey/edit_question.tpl'}
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
{include file='survey/edit_question.tpl'}
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<br/>
<a href="{$survey_link}">Retour</a>
-{* vim:set et sw=2 sts=2 ts=8: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<a href="./survey/edit/new">Proposer un sondage</a>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<input type="checkbox" name="survey{$survey_id}_{$survey.id}_{$choices}" value="1" id="{$choice}" {if $survey_mode eq 'edit'}disabled="disabled"{/if}/><label for="{$choice}">{$choice}</label>
{/foreach}
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
{include file='survey/show_text.tpl'}
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
{/if}
<strong>Attention, cocher cette(ces) case(s) détruit totalement ou en partie l'anonymat de ta réponse.</strong>
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<input type="radio" name="survey{$survey_id}_{$survey.id}" value="{$choice}" id="{$choice}" {if $survey_mode eq 'edit'}disabled="disabled"{/if}/><label for="{$choice}">{$choice}</label>
{/foreach}
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
</div>
{/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<input type="text" name="survey{$survey_id}_{$survey.id}" value="" size="50" maxlength="200" {if $survey_mode eq 'edit'}disabled="disabled"{/if}/>
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<textarea name="survey{$survey_id}_{$survey.id}" rows="5" cols="60" {if $survey_mode eq 'edit'}disabled="disabled"{/if}></textarea>
-{* vim:set et sw=2 sts=2 sws=2: *}
-
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
<br/>
<a href="{$survey_link}">Retour</a>
-{* vim:set et sw=2 sts=2 ts=8: *}
+{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}
+++ /dev/null
-{**************************************************************************}
-{* *}
-{* 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'}
-<h1>Sondage : {$survey.question}</h1>
- {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}
-<div>
- <h2>{$survey.question}</h2>
- {if $survey.comment != ''}
- {$survey.comment}<br/>
- {/if}
- {if $survey.type == 'text' || $survey.type == 'num' }
- <input type="text" name="survey{$survey_id}_{$survey.id}" value="" {if $survey_mode eq 'edit'}disabled="disabled"{/if}/>
- {elseif $survey.type == 'radio'}
- {foreach from=$survey.choices item=choice}
- <input type="radio" name="survey{$survey_id}_{$survey.id}" value="{$choice}" id="{$choice}" {if $survey_mode eq 'edit'}disabled="disabled"{/if}/><label for="{$choice}">{$choice}</label>
- {/foreach}
- {/if}
- {if is_array($survey.children)}
- <div style="padding-left:20px">
- {foreach from=$survey.children item=child}
- {include file='survey/test.tpl' survey=$child recursive=true}
- {/foreach}
- </div>
- {/if}
-</div>
-{/if}
-
-{* vim:set et sw=2 sts=2 sws=2: *}