X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fsurvey%2Fshow_radiotable.tpl;h=9f24aa16ecd5053712650490f61fb5fe0d0e9eec;hb=7f323fd4fedf47d152c4f257929a55449972d14c;hp=060bcf6cecf9175444eac80dfd3ceb3391dfd6f1;hpb=730a173a333507926e0029d8a96c3a26b55756e4;p=platal.git diff --git a/templates/survey/show_radiotable.tpl b/templates/survey/show_radiotable.tpl index 060bcf6..9f24aa1 100644 --- a/templates/survey/show_radiotable.tpl +++ b/templates/survey/show_radiotable.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -30,21 +30,22 @@ {foreach from=$squestion.subquestions item=ssubq key=ssqid} {$ssubq} - {assign var=sid value=$survey.id} - {assign var=sqid value=$squestion.id} - {if $survey_resultmode} - {foreach from=$squestion.choices item=schoice key=value} - - {$squestion.result.$ssqid.$value*100/$survey.votes|string_format:"%.1f"}% ({$squestion.result.$ssqid.$value} votes) - - {/foreach} - {else} - {foreach from=$squestion.choices item=schoice key=value} - - - - {/foreach} - {/if} + {assign var=sid value=$survey.id} + {assign var=sqid value=$squestion.id} + {if $survey_resultmode} + {foreach from=$squestion.choices item=schoice key=value} + + {$squestion.result.$ssqid.$value*100/$survey.votes|string_format:"%.1f"}% ({$squestion.result.$ssqid.$value} votes) + + {/foreach} + {else} + {foreach from=$squestion.choices item=schoice key=value} + + + + {/foreach} + {/if} + {/foreach}