diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1377554
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.swp
diff --git a/block_timetable.php b/block_timetable.php
index b465d77..50611d6 100644
--- a/block_timetable.php
+++ b/block_timetable.php
@@ -47,12 +47,11 @@ class block_timetable extends block_base {
$this->content = new stdClass();
$this->content->items = array();
$this->content->icons = array();
- $this->content->footer = 'Faecher
Lehrer
Raeume';
+ $this->content->footer = 'Fächer
Lehrer
Räume';
// user/index.php expect course context, so get one if page has module context.
$currentcontext = $this->page->context->get_course_context(false);
-
if (! empty($this->config->text)) {
$this->content->text = $this->config->text;
}
@@ -73,75 +72,7 @@ class block_timetable extends block_base {
//$context_id = get_context_instance_by_id($course->id);
//echo "Contextid = $contextid->contextlevel\n";
- /*
- // Verbindung zu localhost auf port 3307
- $mysqli = new mysqli('mistral:3307', 'timetable_user1', 'd7jzRYpfGS3OkIpHCBEE','timetable');
- if ($mysqli->connect_errno) {
- $this->content->text .= 'Verbindung schlug fehl: ' . $mysqli->connect_errno;
- }
- */
- $period_max = get_config('timetable', 'numperiod');
- $table = new html_table();
- $table->cellspacing = 0;
- $table->cellpadding = 0;
- $table->attributes['cellpadding'] = '0';
- $table->attributes['class'] = 'minicalendar calendartable';
-// $table->align = array('right','center','center','center','center','center');
-// $table->size = array('50', '50');
- $table->head = array('','Mo','Di', 'Mi' , 'Do', 'Fr');
- for ($i = 1; $i <= $period_max; $i++) {
- $tablerow = new \html_table_row();
- $tablerow->cells[] = new html_table_cell($i);
- for ($k = 1; $k <= 5; $k++) {
- //$cell = new html_table_cell("$i+$k");
- $cell = new html_table_cell("");
- $cell->abbr = "";
-// $cell->attributes['class'] = 'day text-center';
- $tablerow->cells[] = $cell;
- //$tablerow->cells[] = '