/
_statisticsoutput_header.php
62 lines (59 loc) · 2.12 KB
/
_statisticsoutput_header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* Statistic output
*
* @var $outputs
* @var $bSum
* @var $bAnswer
* @var $nbcols
*/
?>
<!-- _statisticsoutput_header -->
<div class="col-lg-<?php echo $nbcols; ?> col-sm-12 statisticsbloc" >
<table class='statisticstable table table-bordered printable' id="quid_<?php echo $outputs['parentqid'];?>">
<thead>
<tr class='success'>
<th colspan='4' align='center' style='text-align: center; '>
<strong>
<?php echo sprintf(gT("Summary for %s"),$outputs['qtitle']); ?>
</strong>
<button class="pull-right action_js_export_to_pdf btn btn-default btn-sm hidden-print" data-question-id="quid_<?php echo $outputs['parentqid'];?>" data-toggle="tooltip" title="<?php eT('Export this question to PDF.'); ?>">
<i class="fa fa-file-pdf-o"></i>
</button>
</th>
</tr>
<tr>
<th colspan='4' align='center' style='text-align: center; '>
<!-- question title -->
<strong>
<?php echo $outputs['qquestion'];?>
</strong>
</th>
</tr>
<!-- width depend on how much items... -->
<tr>
<th width='' align='center' >
<strong>
<?php eT("Answer");?>
</strong>
</th>
<?php if ($bShowCount = true): ?>
<th width='' align='center' >
<strong><?php eT("Count"); ?></strong>
</th>
<?php endif;?>
<?php if ($bShowPercentage = true): ?>
<th width='' align='center' <?=(!$bSum ? 'colspan="2"' :'')?>>
<strong><?php eT("Gross percentage");?></strong>
</th>
<?php endif;?>
<?php if($bSum): ?>
<th width='' align='center' >
<strong>
<?php eT("Top 2, Middle, Bottom 2");?>
</strong>
</th>
<?php endif; ?>
</tr>
</thead>
<!-- end of _statisticsoutput_header -->