-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_instance.html
More file actions
executable file
·127 lines (127 loc) · 4.38 KB
/
config_instance.html
File metadata and controls
executable file
·127 lines (127 loc) · 4.38 KB
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
126
127
<?php global $COURSE ?>
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right">
<?php print_string('blocktitletext', 'block_progress'); ?>:
</td>
<td>
<input type="text" name="title" size="20" value="<?php echo isset($this->config->title)?p($this->config->title):''; ?>" /> (<?php print_string('leaveblanktodefault', 'block_progress'); ?>)
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('titleformat', 'block_progress'); ?>:
</td>
<td>
<?php
$options = array('shortname'=>'shortname', 'fullname'=>'fullname');
choose_from_menu($options, "format", $this->config->format, '');
?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('showpoints', 'block_progress'); ?>:
</td>
<td>
<?php
$options = array('yes'=>'Yes', 'no'=>'No',);
choose_from_menu($options, "footer", $this->config->footer, '');
?>
<?php print_string('showpointsdescription', 'block_progress'); ?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('nocriteriatext', 'block_progress'); ?>:
</td>
<td>
<input type="text" name="none" size="20" value="<?php echo isset($this->config->none)?p($this->config->none):''; ?>" /> <?php print_string('nocriteriadescription', 'block_progress'); ?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('somecriteriatext', 'block_progress'); ?>:
</td>
<td>
<input type="text" name="some" size="20" value="<?php echo isset($this->config->some)?p($this->config->some):''; ?>" /> <?php print_string('somecriteriadescription', 'block_progress'); ?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('allcriteriatext', 'block_progress'); ?>:
</td>
<td>
<input type="text" name="all" size="20" value="<?php echo isset($this->config->all)?p($this->config->all):''; ?>" /> <?php print_string('allcriteriadescription', 'block_progress'); ?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('fadedtext', 'block_progress'); ?>:
</td>
<td>
<input type="text" name="fade" size="20" value="<?php echo isset($this->config->fade)?p($this->config->fade):''; ?>" /> <?php print_string('fadeddescription', 'block_progress'); ?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('prefix', 'block_progress'); ?>:
</td>
<td>
<input type="text" name="prefix" size="20" value="<?php echo isset($this->config->prefix)?p($this->config->prefix):''; ?>" /> <?php print_string('prefixdescription', 'block_progress'); ?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('summarymode', 'block_progress'); ?>:
</td>
<td>
<?php
$options = array('teacher'=>get_string('teacher', 'block_progress'), 'tutor'=>get_string('tutor', 'block_progress'),);
choose_from_menu($options, "mode", $this->config->mode, '');
?>
<?php print_string('summarymodedescription', 'block_progress'); ?>
</td>
</tr>
<tr valign="top">
<td align="right">
<?php print_string('debug', 'block_progress'); ?>:
</td>
<td>
<?php
$options = array('no'=>'No', 'yes'=>'Yes',);
choose_from_menu($options, "debug", $this->config->debug, '');
?>
<?php print_string('debugdescription', 'block_progress'); ?>
</td>
</tr>
<?php
global $DB;
$groups = $DB->get_records_select('groups', 'courseid='.$COURSE->id, array('name', 'id', 'name'));
if ($groups) {
?>
<tr valign="top">
<td align="right">
<?php print_string('defaultgroup', 'block_progress'); ?>:
</td>
<td>
<?php
unset($options);
$options = array();
$options[0] = '-';
foreach ($groups as $group) {
$options[$group->id] = $group->name;
}
choose_from_menu($options, "group", $this->config->group, '');
print_string('defaultgroupdescription', 'block_progress');
}
?>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="<?php print_string('savechanges') ?>" />
</td>
</tr>
</table>
<?php use_html_editor(); ?>