Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/LimeSurvey/LimeSurvey
- Loading branch information
Showing
6 changed files
with
101 additions
and
6 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
11 changes: 11 additions & 0 deletions
11
application/views/survey/questions/arrays/10point/columns/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,11 @@ | ||
<?php | ||
/** | ||
* Array 5pointchoice, column | ||
* | ||
* @var $cellwidth | ||
*/ | ||
?> | ||
|
||
<!-- col.php --> | ||
<col class="<?php //TODO: alternation ?>" style='width: <?php echo $cellwidth; ?>%;' /> | ||
<!-- end of col.php --> |
32 changes: 32 additions & 0 deletions
32
application/views/survey/questions/arrays/10point/rows/answer_row.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,32 @@ | ||
<?php | ||
/** | ||
* Generate a row for the table | ||
* | ||
* @var $answer_tds : the cells of each row, generated with the view rows/cells/*.php | ||
* @var $myfname | ||
* @var $answerwidth | ||
* @var $answertext | ||
* @var $value | ||
*/ | ||
?> | ||
|
||
<!-- answer_row --> | ||
<tr id="javatbd<?php echo $myfname;?>" class="well answers-list radio-list array<?php echo $zebra; ?>" <?php echo $sDisplayStyle; ?>> | ||
<th class="answertext" style="width: <?php echo $answerwidth;?>%;"> | ||
<?php if($error): ?> | ||
<div class="alert alert-danger" role="alert"> | ||
<?php echo $answertext;?> | ||
</div> | ||
<?php else: ?> | ||
<?php echo $answertext;?> | ||
<?php endif;?> | ||
<input name="java<?php echo $myfname;?>" id="java<?php echo $myfname;?>" value="<?php echo $value;?>" type="hidden"> | ||
</th> | ||
|
||
<?php | ||
// defined in rows/cells/* | ||
echo $answer_tds; | ||
?> | ||
|
||
</tr> | ||
<!-- end of answer_row --> |
12 changes: 12 additions & 0 deletions
12
application/views/survey/questions/arrays/10point/rows/cells/answer_td_answertext.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 | ||
/** | ||
* @var $answerwidth | ||
* @var $answertext2 | ||
*/ | ||
?> | ||
|
||
<!-- td_answertext --> | ||
<td class="answertextright" style='text-align:left; width: <?php echo $answerwidth; ?>%;'> | ||
<?php echo $answertext2;?> | ||
</td> | ||
<!-- endof td_answertext --> |
25 changes: 25 additions & 0 deletions
25
application/views/survey/questions/arrays/10point/rows/cells/answer_td_input.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,25 @@ | ||
<?php | ||
/** | ||
* @var $i | ||
* @var $myfname | ||
* @var $CHECKED | ||
* @var $checkconditionFunction | ||
* @var $value | ||
*/ | ||
?> | ||
|
||
<!-- td_input --> | ||
<td data-title='<?php echo $i;?>' class="answer-cell-2 answer_cell_00<?php echo $i;?> answer-item radio-item"> | ||
<label for="answer<?php echo $myfname;?>-<?php echo $i; ?>"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname; ?>" | ||
id="answer<?php echo $myfname; ?>-<?php echo $i;?>" | ||
value="<?php echo $value; ?>" | ||
<?php echo $CHECKED;?> | ||
onclick="<?php echo $checkconditionFunction; ?>(this.value, this.name, this.type)" | ||
/> | ||
</label> | ||
</td> | ||
<!-- end of td_input --> |
14 changes: 14 additions & 0 deletions
14
application/views/survey/questions/arrays/10point/rows/cells/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,14 @@ | ||
<?php | ||
/** | ||
* | ||
* @var $class | ||
* @var $style | ||
* @var $th_content | ||
*/ | ||
?> | ||
|
||
<!-- thead --> | ||
<th class="<?php echo $class; ?>" style="<?php echo $style; ?>" > | ||
<?php echo $th_content;?> | ||
</th> | ||
<!-- end of thead --> |