-
Notifications
You must be signed in to change notification settings - Fork 988
/
group_view.php
89 lines (84 loc) · 4.08 KB
/
group_view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<div class='side-body <?php echo getSideBodyClass(true); ?>'>
<?php $this->renderPartial('/admin/survey/breadcrumb', array('oQuestionGroup'=>$oQuestionGroup)); ?>
<div class="pagetitle h3"><?php eT('Group summary'); ?></div>
<div class="row">
<div class="col-lg-12 content-right">
<table id='groupdetails' class="table table-bordered">
<tr ><td ><strong>
<?php eT("Title"); ?>:</strong></td>
<td>
<?php echo $grow['group_name']; ?> (<?php echo $grow['gid']; ?>)</td>
</tr>
<tr>
<td><strong>
<?php eT("Description:"); ?></strong>
</td>
<td>
<?php if (trim($grow['description'])!='') {
templatereplace($grow['description']);
echo LimeExpressionManager::GetLastPrettyPrintExpression();
} ?>
</td>
</tr>
<?php if (trim($grow['grelevance'])!='') { ?>
<tr>
<td><strong>
<?php eT("Relevance:"); ?></strong>
</td>
<td>
<?php
templatereplace('{' . $grow['grelevance'] . '}');
echo LimeExpressionManager::GetLastPrettyPrintExpression();
?>
</td>
</tr>
<?php } ?>
<?php
if (trim($grow['randomization_group'])!='')
{?>
<tr>
<td><?php eT("Randomization group:"); ?></td><td><?php echo $grow['randomization_group'];?></td>
</tr>
<?php
}
// TMSW Condition->Relevance: Use relevance equation or different EM query to show dependencies
if (!is_null($condarray))
{ ?>
<tr><td><strong>
<?php eT("Questions with conditions to this group"); ?>:</strong></td>
<td>
<?php foreach ($condarray[$gid] as $depgid => $deprow)
{
foreach ($deprow['conditions'] as $depqid => $depcid)
{
$listcid=implode("-",$depcid);?>
<a href='<?php echo $this->createUrl("admin/conditions/sa/index/subaction/conditions/surveyid/$surveyid/gid/$depgid/qid/$depqid",array('markcid'=>implode("-",$depcid))); ?>'>[QID: <?php echo $depqid; ?>]</a>
<?php }
} ?>
</td></tr>
<?php } ?>
</table>
</div>
</div>
<?php if (Permission::model()->hasSurveyPermission($iSurveyId, 'surveycontent', 'update')): ?>
<div id="survey-action-title" class="pagetitle h3"><?php eT('Group quick actions'); ?></div>
<div class="row welcome survey-action">
<div class="col-lg-12 content-right">
<!-- create question in this group -->
<div class="col-lg-3">
<div class="panel panel-primary <?php if ($surveyIsActive) { echo 'disabled'; } else { echo 'panel-clickable'; } ?>" id="panel-1" data-url="<?php echo $this->createUrl('admin/questions/sa/newquestion/surveyid/'.$surveyid.'/gid/'.$gid); ?>">
<div class="panel-heading">
<div class="panel-title h4"><?php eT("Add new question to group");?></div>
</div>
<div class="panel-body">
<span class="icon-add text-success" style="font-size: 3em;"></span>
<p class='btn-link'>
<?php eT("Add new question to group");?>
</p>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>