/
answer.php
47 lines (45 loc) · 1.26 KB
/
answer.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
<?php
/**
* array array, no dropdown, Html
*
* @var $sColumns : the columns, generated with the view columns/col.php
* @var $sHeaders : the headers, generated with the view rows/cell/thead.php
* @var $sRows : the rows, generated with the view rows/answer_row.php
*
* @var $extraclass
*
*/
?>
<!-- Array -->
<!-- answer -->
<table class="<?php echo $coreClass; ?> table table-bordered table-hover table-array-radio" role="group" aria-labelledby="ls-question-text-<?php echo $basename ?>">
<colgroup class="col-responses">
<col class="col-answers" style='width: <?php echo $answerwidth; ?>%;' />
<?php
// columns/col.php
echo $sColumns;
?>
</colgroup>
<thead aria-hidden="true">
<tr class="ls-heading">
<?php
// rows/cell/thead.php
echo $sHeaders;
?>
</tr>
</thead>
<tbody>
<?php if($anscount==0):?>
<tr>
<th class="answertext">
<?php eT('Error: This question has no answers.');?>
</th>
</tr>
<?php endif; ?>
<?php
// rows/answer_row.php
echo $sRows;
?>
</tbody>
</table>
<!-- end of answer -->