{* $Id: bmsurvey_manage_results.html,v 1.0 2009/02/10 makinosuke Exp $ *}>
<{capture assign=respondents_nav}><{strip}>
<{$question.content}> (<{$question.name}>)
<{if $question.required == 'Y'}> *<{/if}>
<{if $question.typename == 'yesno' || $question.typename == 'radio' || $question.typename == 'dropdown'}>
value | count | % |
<{foreach from=$question.responses_options item=response}>
<{$response.response}> |
<{$response.subtotal}> |
<{$response.percentage_countNA|round:1}> % |
<{/foreach}>
<{foreach from=$question.responses_others item=response}>
<{$response.response}> |
<{$response.subtotal}> |
<{$response.percentage_countNA|round:1}> % |
<{/foreach}>
<{$smarty.const._GT_NA}> | <{$question.NA_total}> | <{$question.NA_total_percentage|round:1}> % |
<{$smarty.const._GT_SUM}> |
<{$question.responses_total_countNA}> |
<{$question.percentages_total_countNA|round:1}> % |
<{elseif $question.typename == 'checkbox'}>
value | count | % |
<{assign var=subtotal_max value=1}>
<{foreach from=$question.responses_options item=response}>
<{if $response.subtotal > $subtotal_max}><{assign var=subtotal_max value=`$response.subtotal`}><{/if}>
<{$response.response}> |
<{$response.subtotal}> |
<{$response.percentage_countNA|round:1}> % |
<{/foreach}>
<{foreach from=$question.responses_others item=response}>
<{if $response.subtotal > $subtotal_max}><{assign var=subtotal_max value=`$response.subtotal`}><{/if}>
<{$response.response}> |
<{$response.subtotal}> |
<{$response.percentage_countNA|round:1}> % |
<{/foreach}>
<{if $question.NA_total > $subtotal_max}><{assign var=subtotal_max value=`$question.NA_total`}><{/if}>
<{elseif $question.typename == 'textbox' || $question.typename == 'essaybox' || $question.typename == 'attach'}>
value | count | % |
<{foreach from=$question.responses item=response}>
<{$response.response}> |
<{$response.subtotal}> |
<{$response.percentage_countNA|round:1}> % |
<{/foreach}>
<{$smarty.const._GT_NA}> | <{$question.NA_total}> | <{$question.NA_total_percentage|round:1}> % |
<{$smarty.const._GT_SUM}> |
<{$question.responses_total_countNA}> |
<{$question.percentages_total_countNA|round:1}> % |
<{elseif $question.typename == 'numeric'}>
value | count | % |
<{foreach from=$question.responses item=response}>
<{$response.response}> |
<{$response.subtotal}> |
<{$response.percentage_countNA|round:1}> % |
<{/foreach}>
<{$smarty.const._GT_NA}> | <{$question.NA_total}> | <{$question.NA_total_percentage|round:1}> % |
<{$smarty.const._GT_SUM}> |
<{$question.responses_total_countNA}> |
<{$question.percentages_total_countNA|round:1}> % |
max | min | average | median |
<{$question.numeric_responses_max}> |
<{$question.numeric_responses_min}> |
<{$question.numeric_responses_average|round:1}> |
<{$question.numeric_responses_median}> |
<{elseif $question.typename == 'date'}>
year | count | % |
<{foreach from=$question.date_responses_nested key=year_key item=year_data}>
<{$year_key}> |
<{$year_data.subtotal}> |
<{$year_data.percentage_countNA|round:1}>% |
month |
count |
% |
<{foreach from=$year_data.month key=month_key item=month_data}>
<{$month_key}> |
<{$month_data.subtotal}> |
<{$month_data.percentage_countNA|round:1}>% |
day |
count |
% |
<{foreach from=$month_data.day key=day_key item=day_data}>
<{$day_key}> |
<{$day_data.subtotal}> |
<{$day_data.percentage_countNA|round:1}>% |
<{/foreach}>
| |