Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LouisGac
committed
Mar 22, 2016
1 parent
76f0a4f
commit ea28911
Showing
6 changed files
with
182 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
application/views/survey/questions/arrays/yesnouncertain/close_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!-- close_table --> | ||
</tbody> | ||
</table> |
10 changes: 10 additions & 0 deletions
10
application/views/survey/questions/arrays/yesnouncertain/col.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
/** | ||
* Array yesnouncertain, column | ||
* | ||
* @var $odd_even | ||
* @var $cellwidth | ||
*/ | ||
?> | ||
<!-- col --> | ||
<col class="<?php echo $odd_even; ?> <?php if(isset($no_answer)){echo "col-no-answer";}?>" style='width: <?php echo $cellwidth; ?>%;' /> |
12 changes: 12 additions & 0 deletions
12
application/views/survey/questions/arrays/yesnouncertain/header.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
/** | ||
* yesnouncertain Html : Header | ||
* @var $extraclass | ||
* @var $answerwidth | ||
* | ||
*/ | ||
?> | ||
<!-- Array 5 point choice --> | ||
<table class="no-more-tables table table-condensed question subquestion-list questions-list <?php echo $extraclass; ?>"> | ||
<colgroup class="col-responses"> | ||
<col class="col-answers" style='width: <?php echo $answerwidth; ?>%;' /> |
26 changes: 26 additions & 0 deletions
26
application/views/survey/questions/arrays/yesnouncertain/thead.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* @var $no_answer | ||
*/ | ||
?> | ||
<!-- thead --> | ||
</colgroup> | ||
<thead> | ||
<tr class="array1"> | ||
<th> </th> | ||
<th class="dontread"><?php eT('Yes');?></th> | ||
<th class="dontread"><?php eT('Uncertain');?></th> | ||
<th class="dontread"><?php eT('No');?></th> | ||
<?php if($no_answer):?> | ||
<th class="dontread"><?php eT('No answer'); ?></th> | ||
<?php endif;?> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php if($anscount==0):?> | ||
<tr> | ||
<th class="answertext"> | ||
<?php eT('Error: This question has no answers.');?> | ||
</th> | ||
</tr> | ||
<?php endif; ?> |
90 changes: 90 additions & 0 deletions
90
application/views/survey/questions/arrays/yesnouncertain/tr.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?php | ||
/** | ||
* @var $myfname | ||
* @var $sDisplayStyle | ||
* @var $answertext | ||
* @var $Ychecked | ||
* @var $Uchecked | ||
* @var $Nchecked | ||
* @var $NAchecked | ||
* @var $value | ||
* @var $checkconditionFunction | ||
* @var $no_answer | ||
* @var $error | ||
*/ | ||
?> | ||
<!-- tr --> | ||
<tr id="javatbd<?php echo $myfname;?>" class="well answers-list radio-list" <?php echo $sDisplayStyle; ?>> | ||
<!-- Answer text / Errors --> | ||
<th class="answertext"> | ||
<?php if($error): ?> | ||
<div class="alert alert-danger" role="alert"> | ||
<?php echo $answertext;?> | ||
</div> | ||
<?php else: ?> | ||
<?php echo $answertext;?> | ||
<?php endif;?> | ||
</th> | ||
|
||
<!-- Yes --> | ||
<td data-title='<?php eT("Yes"); ?>' class="answer_cell_Y answer-item radio-item"> | ||
<label for="answer<?php echo $myfname;?>-Y"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname;?>" | ||
id="answer<?php echo $myfname;?>-Y" | ||
value="Y" | ||
<?php echo $Ychecked;?> | ||
onclick="<?php echo $checkconditionFunction;?>(this.value, this.name, this.type)" | ||
/> | ||
</label> | ||
</td> | ||
|
||
<!-- Uncertain --> | ||
<td data-title='<?php eT("Uncertain");?>' class="answer_cell_U answer-item radio-item"> | ||
<label for="answer<?php $myfname; ?>-U"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname; ?>" | ||
id="answer<?php echo $myfname;?>-U" | ||
value="U" | ||
<?php echo $Uchecked?> | ||
onclick="<?php echo $checkconditionFunction;?>(this.value, this.name, this.type)" | ||
/> | ||
</label> | ||
</td> | ||
|
||
<!-- No --> | ||
<td data-title='<?php eT("No"); ?>' class="answer_cell_N answer-item radio-item"> | ||
<label for="answer<?php echo $myfname;?>-N"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname;?>" | ||
id="answer<?php echo $myfname;?>-N" | ||
value="N" | ||
<?php echo $Nchecked?> | ||
onclick="<?php echo $checkconditionFunction;?>(this.value, this.name, this.type)" | ||
/> | ||
</label> | ||
</td> | ||
|
||
<!-- No Answer --> | ||
<?php if($no_answer):?> | ||
<td data-title='<?php eT("No answer");?>' class="answer-item radio-item noanswer-item"> | ||
<label for="answer<?php echo $myfname;?>-"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname;?>" | ||
id="answer<?php echo $myfname;?>-" | ||
value="" | ||
<?php echo $NAchecked?> | ||
onclick="<?php echo $checkconditionFunction;?>(this.value, this.name, this.type)" | ||
/> | ||
</td> | ||
<?php endif;?> | ||
<input type="hidden" name="java<?php echo $myfname;?>" id="java<?php echo $myfname;?>" value="<?php echo $value; ?>" | ||
</tr> |