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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
<?
# Lifter010: TODO
use Studip\Button, Studip\LinkButton, Studip\ResetButton;
$options = [
'show_total_stats' => _('Zeige Gesamtstatistik an'),
'show_graphics' => _('Zeige Grafiken an'),
'show_questions' => _('Zeige Fragen an'),
'show_group_headline' => _('Zeige Gruppenüberschriften an'),
'show_questionblock_headline' => _('Zeige Fragenblocküberschriften an'),
];
$graphtypes = [
'polscale_gfx_type' => [
'title' => _('Grafiktyp für Polskalen'),
'options' => [
'bars' => _('Balken'),
'pie' => _('Tortenstücke'),
'lines' => _('Linien'),
'linepoints' => _('Linienpunkte'),
'area' => _('Bereich'),
'points' => _('Punkte'),
'thinbarline' => _('Linienbalken'),
],
],
'likertscale_gfx_type' => [
'title' => _('Grafiktyp für Likertskalen'),
'options' => [
'bars' => _('Balken'),
'pie' => _('Tortenstücke'),
'lines' => _('Linien'),
'linepoints' => _('Linienpunkte'),
'area' => _('Bereich'),
'points' => _('Punkte'),
'thinbarline' => _('Linienbalken'),
],
],
'mchoice_scale_gfx_type' => [
'title' => _('Grafiktyp für Multiplechoice'),
'options' => [
'bars' => _('Balken'),
'points' => _('Punkte'),
'thinbarline' => _('Linienbalken'),
],
],
];
?>
<form class="default" action="<?= URLHelper::getLink() ?>" method="post">
<?= CSRFProtection::tokenTag() ?>
<input type="hidden" name="template_id" value="<?= $templates['template_id'] ?>">
<input type="hidden" name="eval_id" value="<?= $eval_id ?>">
<table class="default">
<caption>
<?= _('Auswertungskonfiguration') ?>
</caption>
<colgroup>
<col width="50%">
<col width="25%">
<col width="25%">
</colgroup>
<thead>
<tr>
<th><?= _('Optionen') ?></th>
<th style="text-align: center;"><?= _('Ja') ?></th>
<th style="text-align: center;"><?= _('Nein') ?></th>
</tr>
</thead>
<tbody>
<? foreach ($options as $option => $title): ?>
<tr>
<td><?= htmlReady($title) ?>:</td>
<td style="text-align: center;">
<input type="radio" name="<?= $option ?>" value="1"
<? if ($templates[$option] || !$has_template) echo 'checked'; ?>>
</td>
<td style="text-align: center;">
<input type="radio" name="<?= $option ?>" value="0"
<? if ($has_template && !$templates[$option]) echo 'checked'; ?>>
</td>
</tr>
<? endforeach; ?>
<? foreach ($graphtypes as $type => $data): ?>
<tr>
<td>
<label for="<?= $type ?>"><?= htmlReady($data['title']) ?>:</label>
</td>
<td style="text-align: center;" colspan="2">
<select class="size-s" id="<?= $type ?>" name="<?= $type ?>" style="120px">
<? foreach ($data['options'] as $k => $v): ?>
<option value="<?= htmlReady($k) ?>"
<? if ($templates[$type] == $k) echo "selected"; ?>>
<?= htmlReady($v) ?>
</option>
<? endforeach; ?>
</select>
</td>
</tr>
<? endforeach; ?>
</tbody>
<tfoot>
<tr>
<td>
<?= LinkButton::create('<< ' . _('Zurück'),
URLHelper::getURL('eval_summary.php', compact('eval_id'))) ?>
</td>
<td colspan="2" style="text-align: right;">
<?= Button::createAccept(_('Speichern'), 'store') ?>
<?= ResetButton::createCancel(_('Zurücksetzen')) ?>
</td>
</tr>
</tfoot>
</table>
</form>
<?
Helpbar::Get()->addPlainText(_('Information'), _('Auf dieser Seite können Sie die Auswertung Ihrer Evaluation konfigurieren.'));
Helpbar::Get()->addPlainText(_('Information'), ('Wählen Sie Ihre Einstellungen und drücken Sie auf "Template speichern". '
.'Anschließend kommen Sie mit dem Button unten links zurück zu Ihrer Evaluation.'));
?>
|