with the latest version of the Blocks API.
function init() {
$this->title = get_string('courses');
$this->content_type = BLOCK_TYPE_LIST;
- $this->version = 2004081200;
+ $this->version = 2004111600;
}
function has_config() {
return true;
}
- function print_config() {
- global $CFG, $USER, $THEME;
- print_simple_box_start('center', '', $THEME->cellheading);
- include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
- print_simple_box_end();
- return true;
- }
-
function get_content() {
global $THEME, $CFG, $USER;
-<form method="post" action="block.php">
-<?php echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\">"; ?>
-
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right"><p>block_course_list_adminview:</td>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
-</table>
-
-</form>
+</table>
\ No newline at end of file
function init() {
$this->title = get_string('blockname','block_online_users');
$this->content_type = BLOCK_TYPE_TEXT;
- $this->version = 2004052700;
+ $this->version = 2004111600;
}
function has_config() {return true;}
- function print_config() {
- global $CFG, $USER, $THEME;
- print_simple_box_start('center', '', $THEME->cellheading);
- include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
- print_simple_box_end();
- return true;
- }
- function handle_config($config) {
- foreach ($config as $name => $value) {
- set_config($name, $value);
- }
- return true;
- }
-
function get_content() {
global $USER, $CFG;
-<form method="post" action="block.php">
-<?php echo '<input type="hidden" name="sesskey" value="'. $USER->sesskey .'">'; ?>
-
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right"><p>block_online_users_timetosee:</td>
<input type="submit" value="<?php print_string('savechanges') ?>" /></td>
</tr>
</table>
-</form>
\ No newline at end of file