Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: array increasesamedecrease, created views
- Loading branch information
LouisGac
committed
Mar 24, 2016
1 parent
0f7a788
commit 95b2429
Showing
7 changed files
with
184 additions
and
114 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
10 changes: 10 additions & 0 deletions
10
application/views/survey/questions/arrays/increasesamedecrease/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 increasesamedecrease, column | ||
* | ||
* @var $odd_even | ||
* @var $cellwidth | ||
*/ | ||
?> | ||
<!-- col.php --> | ||
<col class="<?php echo $odd_even; ?>" style='width: <?php echo $cellwidth; ?>%;' /> |
13 changes: 13 additions & 0 deletions
13
application/views/survey/questions/arrays/increasesamedecrease/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,13 @@ | ||
<?php | ||
/** | ||
* array increasesamedecrease Html : Header | ||
* @var $extraclass | ||
* | ||
*/ | ||
?> | ||
<!-- header --> | ||
<div class="no-more-tables no-more-tables-inc-same-dec"> | ||
<!-- Array increasesamedecrease --> | ||
<table class="table table-condensed table-in-qanda-4 question subquestion-list questions-list <?php echo $extraclass; ?>"> | ||
<colgroup class="col-responses"> | ||
<col class="col-answers" style='width: <?php echo $answerwidth;?>%;' /> |
19 changes: 19 additions & 0 deletions
19
application/views/survey/questions/arrays/increasesamedecrease/open_table_head.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,19 @@ | ||
<?php | ||
/** | ||
* @var $show_no_answer | ||
*/ | ||
?> | ||
<!-- open_table_head --> | ||
</colgroup> | ||
<thead> | ||
<tr class="dontread"> | ||
<th> </th> | ||
<th class='th-5'><?php eT('Increase');?></th> | ||
<th class='th-6'><?php eT('Same');?></th> | ||
<th class='th-7'><?php eT('Decrease');?></th> | ||
<?php if($show_no_answer):?> | ||
<th class='th-8'><?php eT('No answer');?></th> | ||
<?php endif;?> | ||
</tr> | ||
</thead> | ||
<tbody> |
102 changes: 102 additions & 0 deletions
102
application/views/survey/questions/arrays/increasesamedecrease/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,102 @@ | ||
<?php | ||
/** | ||
* @var $myfname | ||
* @var $sDisplayStyle | ||
* @var $answertext | ||
* @var $Ichecked | ||
* @var $Schecked | ||
* @var $Dchecked | ||
* @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 array<?php echo $zebra; ?>" <?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;?> | ||
|
||
<input | ||
type="hidden" | ||
name="thjava<?php echo $myfname;?>" | ||
id="thjava<?php echo $myfname;?>" | ||
value="<?php echo $value;?>" | ||
/> | ||
|
||
</th> | ||
|
||
<!-- Increase --> | ||
<td data-title='<?php eT("Increase"); ?>' class="answer_cell_I answer-item radio-item"> | ||
<label for="answer<?php echo $myfname;?>-I"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname;?>" | ||
id="answer<?php echo $myfname;?>-I" | ||
value="I" | ||
<?php echo $Ichecked;?> | ||
onclick="<?php echo $checkconditionFunction;?>(this.value, this.name, this.type)" | ||
/> | ||
</label> | ||
</td> | ||
|
||
<!-- Same --> | ||
<td data-title='<?php eT("Same");?>' class="answer_cell_S answer-item radio-item"> | ||
<label for="answer<?php $myfname; ?>-S"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname; ?>" | ||
id="answer<?php echo $myfname;?>-S" | ||
value="S" | ||
<?php echo $Schecked?> | ||
onclick="<?php echo $checkconditionFunction;?>(this.value, this.name, this.type)" | ||
/> | ||
</label> | ||
</td> | ||
|
||
<!-- Decrease --> | ||
<td data-title='<?php eT("Decrease"); ?>' class="answer_cell_D answer-item radio-item"> | ||
<label for="answer<?php echo $myfname;?>-D"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname;?>" | ||
id="answer<?php echo $myfname;?>-D" | ||
value="D" | ||
<?php echo $Dchecked?> | ||
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> |
1 change: 1 addition & 0 deletions
1
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- close_table --> | ||
</tbody> | ||
</table> | ||
</div> |
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