/
answer_row.php
72 lines (68 loc) · 2.94 KB
/
answer_row.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
63
64
65
66
67
68
69
70
71
72
<?php
/**
* Multiple choice with comments question, item Html
* @var $liclasses
* @var $liid
* @var $kpclass
* @var $title
* @var $sDisplayStyle
* @var $name $myfname
* @var $id answer$myfname
* @var $value Y
* @var $classes ''
* @var $checked ''
* @var $checkconditionFunction $checkconditionFunction(this.value, this.name, this.type);
* @var $checkconditionFunctionComment
* @var $labeltext $ansrow['question']
* @var $javaname java$myfname
* @var $javavalue ''
* @var $checked if (isset($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$myfname])) ...
* @var $inputCommentId 'answer'.$myfname2
* @var $commentLabelText gT('Make a comment on your choice here:'); ?>
* @var $inputCommentName $myfname2
* @var $inputCOmmentValue if (isset($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$myfname2])) {$answer_main .= htmlspecialchars($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$myfname2],ENT_QUOTES);}
*/
?>
<!-- answer_row -->
<li id="javatbd<?php echo $name; ?>" class='row answer-item checkbox-text-item form-group form-inline clearfix' <?php echo $sDisplayStyle ;?>>
<!-- Checkbox + label -->
<div class="form-group checkbox-item col-sm-6 col-xs-12">
<input
class="<?php echo $classes; echo $kpclass; ?>"
title="<?php echo $title;?>"
type="checkbox"
name="<?php echo $name; ?>"
id="<?php echo $id;?>"
value="<?php echo $value?>"
<?php echo $checked;?>
onclick="<?php echo $checkconditionFunction;?>"
/>
<label id="label-<?php echo $id;?>" for="<?php echo $id;?>" class="control-label checkbox-label"><?php echo $labeltext;?></label>
<?php if($javainput):?>
<input
type='hidden'
name='<?php echo $javaname?>'
id='<?php echo $javaname?>'
value='<?php echo $javavalue;?>'
<?php echo $checked;?>
/>
<?php endif;?>
</div>
<!-- Comment -->
<div class="form-group text-item col-sm-6 col-xs-12 comment-container">
<label id='label-<?php echo $inputCommentId;?>' for='<?php echo $inputCommentId;?>' class="lext-label control-label sr-only">
<?php echo $commentLabelText;?>
</label>
<input
class='form-control input-sm <?php echo $kpclass; ?>'
type='text'
size='40'
id='<?php echo $inputCommentId;?>'
name='<?php echo $inputCommentName; ?>'
value='<?php echo $inputCOmmentValue; ?>'
onkeyup='<?php echo $checkconditionFunctionComment;?>'
aria-labelled='label-<?php echo $id;?> label-<?php echo $inputCommentId;?>'
/>
</div>
</li>
<!-- end of answer_row -->