X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Fshow_radio.tpl;h=473bb05d9c01004c6f93b92c4032c3d6aaa996c5;hb=4d9b63f8ec02d84eabd554234a32718758bf9e21;hp=178f5ae036bb300edcacee34bf7a7830cb4eb7bc;hpb=8b0fa81ef71d263c267321d9f5e2cc374b6ffd77;p=platal.git diff --git a/templates/survey/show_radio.tpl b/templates/survey/show_radio.tpl index 178f5ae..473bb05 100644 --- a/templates/survey/show_radio.tpl +++ b/templates/survey/show_radio.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,8 +20,20 @@ {* *} {**************************************************************************} -{foreach from=$survey.choices item=choice} - -{/foreach} +{if $survey_resultmode} + +{else} + {assign var=sid value=$survey.id} + {assign var=sqid value=$squestion.id} + {if $survey_votemode} + {html_radios name="survey$sid[$sqid]" options=$squestion.choices separator='
'} + {else} + {html_radios name="survey$sid[$sqid]" options=$squestion.choices separator='
' disabled='disabled'} + {/if} +{/if} {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}