Commit d2178359 authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

title mapping connect to answer through element.costum.form.title path to corresponding input

parent e78e5193
......@@ -20,11 +20,18 @@
if(!empty($allAnswers)){
foreach ($allAnswers as $k => $ans) {
$ct++;
?>
$lbl = $what." ".$ct;
if(isset(Yii::app()->session["costum"]["form"]["title"]))
{
$titlePath = explode( ".", Yii::app()->session["costum"]["form"]["title"] );
if(isset($ans["answers"][$titlePath[0]][$titlePath[1]]))
$lbl = $ans["answers"][$titlePath[0]][$titlePath[1]];
}
?>
<li class="answerLi col-xs-12" >
<div class="col-xs-3 text-center">
<a href="<?php echo Yii::app()->createUrl("/costum")?>/co/index/slug/<?php echo $el["slug"] ?>/answer/<?php echo $ans["_id"] ?>"> <?php echo $lbl." ".$ct ?></a>
<a href="<?php echo Yii::app()->createUrl("/costum")?>/co/index/slug/<?php echo $el["slug"] ?>/answer/<?php echo $ans["_id"] ?>"> <?php echo $lbl ?></a>
</div>
<?php
$lblp = "";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment