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
Jan 25, 2016
1 parent
2a33bf9
commit d418c40
Showing
4 changed files
with
113 additions
and
29 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
43 changes: 43 additions & 0 deletions
43
application/views/survey/questions/list_with_comment/list/footer.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,43 @@ | ||
<?php | ||
/** | ||
* List with comment footer Html | ||
* @var $id answer'.$ia[1].'comment | ||
* @var $hint_comment | ||
* @var $kpclass | ||
* @var $name $ia[1].'comment | ||
* @var $tarows floor($tarows) | ||
* @var $has_comment_saved isset($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$fname2]) && $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$fname2] | ||
* @var $comment_saved htmlspecialchars($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$fname2]) | ||
* @var $java_name java'.$ia[1].' | ||
* @var $java_id java'.$ia[1].' | ||
* @var $java_value $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]].'" | ||
*/ | ||
?> | ||
</ul> | ||
</div> | ||
|
||
<p class="comment answer-item text-item"> | ||
<label for="<?php echo $id; ?>"> | ||
<?php echo $hint_comment;?>: | ||
</label> | ||
|
||
<textarea | ||
class="textarea form-control <?php echo $kpclass; ?>" | ||
name="<?php echo $name; ?>" | ||
id="<?php echo $id; ?>" | ||
rows="<?php echo $tarows;?>" | ||
cols="30" | ||
> | ||
<?php if($has_comment_saved):?> | ||
<?php echo $comment_saved;?> | ||
<?php endif;?> | ||
</textarea> | ||
</p> | ||
|
||
<input | ||
class="radio" | ||
type="hidden" | ||
name="<?php echo $java_name;?>" | ||
id="<?php echo $java_id;?>" | ||
value="<?php echo $java_value;?>" | ||
/> |
8 changes: 8 additions & 0 deletions
8
application/views/survey/questions/list_with_comment/list/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,8 @@ | ||
<?php | ||
/** | ||
* List with comment header Html | ||
*/ | ||
?> | ||
|
||
<div class="list"> | ||
<ul class="list-unstyled answers-list radio-list"> |
27 changes: 27 additions & 0 deletions
27
application/views/survey/questions/list_with_comment/list/item.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,27 @@ | ||
<?php | ||
/** | ||
* List with comment item Html | ||
* | ||
* @var $name $ia[1] | ||
* @var $id answer'.$ia[1].$ansrow['code'].' | ||
* @var $value $ansrow['code'] | ||
* @var $check_ans | ||
* @var $checkconditionFunction $checkconditionFunction.'(this.value, this.name, this.type) | ||
* @var $labeltext $ansrow['answer'] | ||
* @var $li_classes | ||
*/ | ||
?> | ||
<li class="answer-item radio-item <?php if(isset($li_classes)){echo $li_classes;}?>"> | ||
<input | ||
type="radio" | ||
name="<?php echo $name; ?>" | ||
id="<?php echo $id; ?>" | ||
value="<?php echo $value; ?>" | ||
class="radio" | ||
<?php $check_ans; ?> | ||
onclick="<?php echo $checkconditionFunction; ?>" | ||
/> | ||
<label for="<?php echo $id; ?>" class="answertext"> | ||
<?php echo $labeltext;?> | ||
</label> | ||
</li> |