EIOS/tpl/tpl_polls_result_fakultet.html

63 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Статистика опроса по факультетам</h3>
<ul class="breadcrumb">
<li><a class="btn btn-primary" href="javascript:(print());"><i class="icon-print"></i> Распечатать</a></li>
</ul>
</div>
</div>
{if ($message != "")}
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>{$message}</strong>
</div>
{/if}
<div class="row-fluid">
<div class="span12">
<p>Всего приняло участие: {$all_voice} чел.</p>
<table class="table table-bordered table-print">
<tr style="background: darkgray; vertical-align: middle;">
<th>№ п/п</th>
<th>Вопрос-вариант</th>
{foreach from=$faculties item=facult key=k}
<th>{$facult.abbreviated} <br /> <sub>({$facult.count} гол.)</sub></th>
{/foreach}
</tr>
{foreach from=$questions item=quest key=kq}
<tr style="background: antiquewhite;">
<td>{$kq+1}</td>
<td colspan="{$k+2}"><h4>{$quest.name} </h4></td>
</tr>
{foreach from=$quest.answers item=ans key=ka}
<tr>
<td>---</td>
<td>{$ans.value}</td>
{foreach from=$ans.count item=count key=kc}
<td><b>{$count}</b> <br /><span style="background: YellowGreen; color: black; padding: 3px;">{($count/$all_voice*100)|string_format:"%.2f"}%</span></td>
{/foreach}
</tr>
{/foreach}
{/foreach}
</table>
</div>
</div>
<style>
@media print {
#header, .sidebar-scroll, #footer, .page-title, .breadcrumb{
display: none;
}
}
</style>