diff --git a/CHANGES b/CHANGES new file mode 100644 index 0000000..01e0677 --- /dev/null +++ b/CHANGES @@ -0,0 +1,680 @@ +2009-04-11 Saturday 12:21 dlnsk + + * READ ME.txt: + + installation description fixed + +2009-04-08 Wednesday 01:24 dlnsk + + * lang/ja_utf8/block_attendance.php: + + Japanese language updated Thanks to Mitsuhiro Yoshida + +2009-03-10 Tuesday 20:20 dlnsk + + * lang/cs_utf8/block_attendance.php: + + file block_attendance.php was initially added on branch + MOODLE_19_STABLE. + +2009-03-10 Tuesday 20:20 dlnsk + + * lang/cs_utf8/block_attendance.php: + + Czech Language. Thanks to Lukas Mizoch + +2009-02-24 Tuesday 04:18 dlnsk + + * ToDo.txt, block_attendance.php, lang/de/block_attendance.php, + lang/en_utf8/block_attendance.php, + lang/es_utf8/block_attendance.php, + lang/eu_utf8/block_attendance.php, + lang/fr_utf8/block_attendance.php, lang/it/block_attendance.php, + lang/ja_utf8/block_attendance.php, + lang/ru_utf8/block_attendance.php, + lang/sk_utf8/block_attendance.php, lang/sv/block_attendance.php: + + Release 2.1.0 Merged from HEAD + +2009-02-24 Tuesday 04:06 dlnsk + + * ToDo.txt, block_attendance.php: + + Release 2.1.0 + +2009-02-09 Monday 04:39 dlnsk + + * block_attendance.php: + + better interaction with module + +2009-02-09 Monday 01:15 dlnsk + + * lang/es_utf8/block_attendance.php: + + Improved by Enrique Robredo + +2008-11-26 Wednesday 02:45 dlnsk + + * ToDo.txt, block_attendance.php, lang/de/block_attendance.php, + lang/en_utf8/block_attendance.php, + lang/es_utf8/block_attendance.php, + lang/eu_utf8/block_attendance.php, + lang/fr_utf8/block_attendance.php, lang/it/block_attendance.php, + lang/ja_utf8/block_attendance.php, + lang/ru_utf8/block_attendance.php, + lang/sk_utf8/block_attendance.php, lang/sv/block_attendance.php: + + Fully separated from module. + +2008-06-21 Saturday 02:09 dlnsk + + * lang/: de/attforblock.php, en_utf8/attforblock.php, + es_utf8/attforblock.php, eu_utf8/attforblock.php, + fr_utf8/attforblock.php, it/attforblock.php, + ja_utf8/attforblock.php, ru_utf8/attforblock.php, + sk_utf8/attforblock.php, sv/attforblock.php: + + languages for module removed from here + +2008-06-21 Saturday 02:00 dlnsk + + * lang/: de/attforblock.php, en_utf8/attforblock.php, + es_utf8/attforblock.php, eu_utf8/attforblock.php, + fr_utf8/attforblock.php, it/attforblock.php, + ja_utf8/attforblock.php, ru_utf8/attforblock.php, + sk_utf8/attforblock.php, sv/attforblock.php: + + Merged from 1.9 branch + +2008-06-21 Saturday 01:24 dlnsk + + * lang/: de/attforblock.php, en_utf8/attforblock.php, + es_utf8/attforblock.php, eu_utf8/attforblock.php, + fr_utf8/attforblock.php, it/attforblock.php, + ja_utf8/attforblock.php, ru_utf8/attforblock.php, + sk_utf8/attforblock.php, sv/attforblock.php: + + languages for module removed from here + +2008-06-21 Saturday 01:02 dlnsk + + * block_attendance.php: + + Merged from 1.9 branch + +2008-06-21 Saturday 00:52 dlnsk + + * block_attendance.php: + + Now compatible with Gradebook of Moodle 1.9 + +2008-02-27 Wednesday 21:26 dlnsk + + * lang/: en_us_utf8/block_attendance.php, en_utf8/attforblock.php, + en_utf8/block_attendance.php, es_utf8/attforblock.php, + es_utf8/block_attendance.php, eu_utf8/attforblock.php, + eu_utf8/block_attendance.php, ja_utf8/attforblock.php, + ja_utf8/block_attendance.php, fr_utf8/attforblock.php, + fr_utf8/block_attendance.php, ru_utf8/attforblock.php, + ru_utf8/block_attendance.php: + + Merged from HEAD + +2008-02-27 Wednesday 20:19 dlnsk + + * block_attendance.php, lang/ja_utf8/attforblock.php, + lang/ja_utf8/block_attendance.php, lang/es_utf8/attforblock.php, + lang/es_utf8/block_attendance.php, lang/fr_utf8/attforblock.php, + lang/fr_utf8/block_attendance.php: + + Merged from HEAD + +2008-02-27 Wednesday 20:07 dlnsk + + * lang/fr_utf8/block_attendance.php: + + file block_attendance.php was added on branch MOODLE_18_STABLE on + 2008-02-27 12:26:09 +0000 + +2008-02-27 Wednesday 20:07 dlnsk + + * lang/fr_utf8/: attforblock.php, block_attendance.php: + + french lang added + +2008-02-27 Wednesday 20:07 dlnsk + + * lang/fr_utf8/attforblock.php: + + file attforblock.php was added on branch MOODLE_19_STABLE on + 2008-02-27 11:19:54 +0000 + +2008-02-27 Wednesday 20:07 dlnsk + + * lang/fr_utf8/block_attendance.php: + + file block_attendance.php was added on branch MOODLE_19_STABLE on + 2008-02-27 11:19:54 +0000 + +2008-02-27 Wednesday 20:07 dlnsk + + * lang/fr_utf8/attforblock.php: + + file attforblock.php was added on branch MOODLE_18_STABLE on + 2008-02-27 12:26:09 +0000 + +2008-02-20 Wednesday 03:17 dlnsk + + * block_attendance.php: + + Merged from MOODLE_18_STABLE + +2008-02-20 Wednesday 03:12 dlnsk + + * block_attendance.php: + + Just new version number 2.0.3 + +2008-02-18 Monday 17:40 dlnsk + + * block_attendance.php: + + settings.php now reserved for Moodle core file renamed to + attsettings.php + +2008-02-18 Monday 15:07 dlnsk + + * READ ME.txt, add.php, attendanceaction.php, block_attendance.php, + delete.php, index.php, lib.php, report.php, settings.php, tabs.php, + updateAttendance.php, updateSession.php, updateSessionAction.php, + lang/en_utf8/attforblock.php, lang/en_utf8/block_attendance.php, + lang/eu_utf8/attforblock.php, lang/eu_utf8/block_attendance.php, + lang/ja_utf8/attforblock.php, lang/ja_utf8/block_attendance.php, + lang/en_us_utf8/README, lang/ru_utf8/attforblock.php, + lang/ru_utf8/block_attendance.php, + lang/en_us_utf8/block_attendance.php, lang/es_utf8/attforblock.php, + lang/es_utf8/block_attendance.php: + + merged from HEAD + +2008-02-13 Wednesday 15:04 dlnsk + + * index.php, report.php, updateAttendance.php: + + merged from head (from ATTENDANCE_109) + +2008-02-13 Wednesday 14:32 dlnsk + + * index.php: + + [no log message] + +2008-02-07 Thursday 19:39 dlnsk + + * lang/es_utf8/: attforblock.php, block_attendance.php: + + [no log message] + +2008-02-07 Thursday 19:39 dlnsk + + * lang/es_utf8/attforblock.php: + + file attforblock.php was added on branch MOODLE_18_STABLE on + 2008-02-18 06:07:46 +0000 + +2008-02-07 Thursday 19:39 dlnsk + + * lang/es_utf8/block_attendance.php: + + file block_attendance.php was added on branch MOODLE_19_STABLE on + 2008-02-27 11:19:53 +0000 + +2008-02-07 Thursday 19:39 dlnsk + + * lang/es_utf8/block_attendance.php: + + file block_attendance.php was added on branch MOODLE_18_STABLE on + 2008-02-18 06:07:46 +0000 + +2008-02-07 Thursday 19:39 dlnsk + + * lang/es_utf8/attforblock.php: + + file attforblock.php was added on branch MOODLE_19_STABLE on + 2008-02-27 11:19:53 +0000 + +2007-12-13 Thursday 15:06 dlnsk + + * lang/ja_utf8/: attforblock.php, block_attendance.php: + + updated/added + +2007-07-20 Friday 12:48 dlnsk + + * lang/: en_utf8/block_attendance.php, + ru_utf8/block_attendance.php: + + [no log message] + +2007-07-17 Tuesday 17:59 dlnsk + + * lang/en_utf8/block_attendance.php: + + Period to Frequency + +2007-07-17 Tuesday 17:34 dlnsk + + * lang/: en_utf8/attforblock.php, ru_utf8/attforblock.php: + + help added + +2007-07-13 Friday 13:52 dlnsk + + * block_attendance.php: + + v2.0.2 + +2007-07-07 Saturday 02:49 dlnsk + + * lang/: en_us_utf8/README, en_us_utf8/block_attendance.php, + en_utf8/block_attendance.php: + + [no log message] + +2007-07-07 Saturday 02:49 dlnsk + + * lang/en_us_utf8/block_attendance.php: + + file block_attendance.php was added on branch MOODLE_18_STABLE on + 2008-02-18 06:07:45 +0000 + +2007-07-07 Saturday 02:49 dlnsk + + * lang/en_us_utf8/README: + + file README was added on branch MOODLE_18_STABLE on 2008-02-18 + 06:07:45 +0000 + +2007-07-06 Friday 16:41 dlnsk + + * block_attendance.php: + + 2.0.2 beta + +2007-07-06 Friday 16:26 dlnsk + + * READ ME.txt, lang/en_utf8/attforblock.php, + lang/en_utf8/block_attendance.php: + + en lang updated + +2007-07-05 Thursday 11:38 dlnsk + + * lang/en_utf8/attforblock.php: + + new string + +2007-07-05 Thursday 04:09 dlnsk + + * block_attendance.php, lang/en_utf8/attforblock.php, + lang/en_utf8/block_attendance.php, lang/ru_utf8/attforblock.php, + lang/ru_utf8/block_attendance.php: + + few bugs fixed + +2007-07-05 Thursday 01:29 dlnsk + + * READ ME.txt, block_attendance.php, add.php, attendanceaction.php, + delete.php, index.php, lib.php, report.php, settings.php, tabs.php, + updateAttendance.php, updateSession.php, updateSessionAction.php: + + version 2.0.1 + +2007-05-16 Wednesday 02:42 dlnsk + + * READ ME.txt: + + [no log message] + +2007-05-16 Wednesday 02:38 dlnsk + + * updateAttendance.php: + + when group selected users not sorting + +2007-05-16 Wednesday 01:17 dlnsk + + * READ ME.txt, attendanceaction.php, block_attendance.php, + index.php, lib.php, report.php, tabs.php, updateAttendance.php, + lang/eu_utf8/attforblock.php, lang/eu_utf8/block_attendance.php: + + ATTENDANCE_PRE18 + + equal ATTENDANCE_110 + +2007-05-15 Tuesday 19:15 dlnsk + + * READ ME.txt: + + [no log message] + +2007-05-15 Tuesday 18:53 dlnsk + + * attendanceaction.php, block_attendance.php, updateAttendance.php: + + + Bug fixed: remark move to other user + +2007-05-15 Tuesday 17:42 dlnsk + + * READ ME.txt, attendanceaction.php, block_attendance.php, + index.php, lib.php, report.php, tabs.php, updateAttendance.php, + lang/eu_utf8/attforblock.php, lang/eu_utf8/block_attendance.php: + + Changes merged from HEAD to MOODLE_16_STABLE branch + +2007-04-14 Saturday 01:51 dlnsk + + * tabs.php: + + https bug fixed + +2007-04-06 Friday 14:44 dlnsk + + * lang/eu_utf8/: attforblock.php, block_attendance.php: + + [no log message] + +2007-04-06 Friday 14:44 dlnsk + + * lang/eu_utf8/attforblock.php: + + file attforblock.php was added on branch MOODLE_18_STABLE on + 2007-05-15 17:17:18 +0000 + +2007-04-06 Friday 14:44 dlnsk + + * lang/eu_utf8/attforblock.php: + + file attforblock.php was added on branch MOODLE_16_STABLE on + 2007-05-15 09:43:07 +0000 + +2007-04-06 Friday 14:44 dlnsk + + * lang/eu_utf8/block_attendance.php: + + file block_attendance.php was added on branch MOODLE_18_STABLE on + 2007-05-15 17:17:18 +0000 + +2007-04-06 Friday 14:44 dlnsk + + * lang/eu_utf8/block_attendance.php: + + file block_attendance.php was added on branch MOODLE_16_STABLE on + 2007-05-15 09:43:08 +0000 + +2007-02-21 Wednesday 03:38 dlnsk + + * READ ME.txt, attendanceaction.php, block_attendance.php, + index.php, lib.php, report.php, updateAttendance.php: + + attendances are showing from course's start date + +2006-12-05 Tuesday 20:11 dlnsk + + * lang/sk_utf8/: attforblock.php, block_attendance.php: + + [no log message] + +2006-10-27 Friday 17:40 dlnsk + + * lang/: en_utf8/block_attendance.php, + ru_utf8/block_attendance.php: + + noattforuser added + +2006-10-27 Friday 17:38 dlnsk + + * lib.php: + + bug when no attendances for user + +2006-08-01 Tuesday 10:21 dlnsk + + * READ ME.txt, lang/ja_utf8/attforblock.php, + lang/ja_utf8/block_attendance.php: + + [no log message] + +2006-07-13 Thursday 16:30 dlnsk + + * READ ME.txt, ToDo.txt, lang/en_utf8/attforblock.php, + lang/en_utf8/block_attendance.php, lang/ru_utf8/attforblock.php, + lang/ru_utf8/block_attendance.php: + + v1.0.8 + +2006-07-13 Thursday 15:45 dlnsk + + * block_attendance.php: + + v1.0.8 + +2006-07-13 Thursday 15:14 dlnsk + + * READ ME.txt: + + [no log message] + +2006-07-13 Thursday 15:10 dlnsk + + * block_attendance.php: + + warning on admin page removed get_content called from admin page. + Why? + +2006-06-13 Tuesday 09:23 dlnsk + + * block_attendance.php, lib.php, report.php, settings.php, + updateAttendance.php: + + bug fixed: acronym and description on block and print view now + geting from database + +2006-04-17 Monday 04:52 dlnsk + + * READ ME.txt: + + [no log message] + +2006-04-17 Monday 04:32 dlnsk + + * block_attendance.php, index.php, lib.php, report.php, + settings.php, updateAttendance.php: + + acronym bug fixed version for printing added + +2006-04-08 Saturday 22:52 dlnsk + + * lang/it/: attforblock.php, block_attendance.php: + + [no log message] + +2006-03-06 Monday 13:15 dlnsk + + * block_attendance.php, index.php, lib.php, report.php, + updateAttendance.php: + + student' view added for techer and improved + +2006-03-01 Wednesday 16:43 dlnsk + + * lang/de/block_attendance.php: + + [no log message] + +2006-02-26 Sunday 20:26 dlnsk + + * READ ME.txt: + + [no log message] + +2006-02-26 Sunday 20:12 dlnsk + + * block_attendance.php, report.php, settings.php, + updateAttendance.php: + + settings and acronym displaying bugs fixed + +2006-02-26 Sunday 15:39 dlnsk + + * READ ME.txt: + + [no log message] + +2006-02-26 Sunday 02:07 dlnsk + + * add.php, block_attendance.php, READ ME.txt: + + period in adding sessions + +2006-02-24 Friday 18:41 dlnsk + + * add.php, READ ME.txt: + + [no log message] + +2006-02-24 Friday 02:45 dlnsk + + * READ ME.txt: + + version information displaying in help + +2006-02-24 Friday 02:42 dlnsk + + * block_attendance.php: + + release property added + +2006-02-22 Wednesday 20:10 dlnsk + + * index.php, report.php, settings.php, tabs.php, + updateAttendance.php: + + empty group bug fixed + +2006-02-19 Sunday 03:18 dlnsk + + * report.php: + + redirect fixed + +2006-02-15 Wednesday 17:17 dlnsk + + * index.php, updateAttendance.php: + + [no log message] + +2006-02-09 Thursday 02:41 dlnsk + + * add.php: + + bug in name of week array + +2006-02-09 Thursday 02:39 dlnsk + + * delete.php, index.php, lib.php, report.php: + + date changed to strftime + +2006-02-09 Thursday 02:04 dlnsk + + * settings_one_table.php: + + this is mistake + +2006-02-07 Tuesday 01:50 dlnsk + + * READ ME.txt: + + [no log message] + +2006-02-07 Tuesday 01:48 dlnsk + + * lib.php: + + division by zero removed + +2006-02-07 Tuesday 01:46 dlnsk + + * index.php, report.php, updateAttendance.php: + + user's pictures + +2006-02-06 Monday 16:04 dlnsk + + * add.php, attendanceaction.php, updateSessionAction.php: + + start tag title = get_string('blockname','block_attendance'); + $this->version = 2009022400; + $this->release = '2.1.0'; + } + + function get_content() { + global $CFG, $USER, $COURSE; + + if ($this->content !== NULL) { + return $this->content; + } + + $this->content = new stdClass; + $this->content->footer = ''; + $this->content->text = ''; + + if (!$att = array_pop(get_all_instances_in_course('attforblock', $COURSE, NULL, true))) { + $this->content->text = get_string('needactivity','block_attendance');; + return $this->content; + } + $cmid = $att->coursemodule; + require_once($CFG->dirroot.'/mod/attforblock/locallib.php'); + + if (!$context = get_context_instance(CONTEXT_MODULE, $cmid)) { + print_error('badcontext'); + } + + // link to attendance + if (has_capability('mod/attforblock:takeattendances', $context) or has_capability('mod/attforblock:changeattendances', $context)) { + $this->content->text .= ''.get_string('takeattendance','attforblock').'
'; + } + if (has_capability('mod/attforblock:manageattendances', $context)) { + $this->content->text .= ''.get_string('add','attforblock').'
'; + } + if (has_capability('mod/attforblock:viewreports', $context)) { + $this->content->text .= ''.get_string('report','attforblock').'
'; + } + if (has_capability('mod/attforblock:export', $context)) { + $this->content->text .= ''.get_string('export','quiz').'
'; + } + if (has_capability('mod/attforblock:changepreferences', $context)) { + $this->content->text .= ''.get_string('settings','attforblock').'
'; + } + + if (isstudent($COURSE->id) && has_capability('mod/attforblock:view', $context)) { + $complete = get_attendance($USER->id,$COURSE); + if($complete == 0) { //attendance not generated yet + $this->content->text .= get_string('attendancenotstarted','attforblock'); + } else { //attendance taken + $statuses = get_statuses($COURSE->id); + foreach($statuses as $st) { + $this->content->text .= $st->description.': '.get_attendance($USER->id,$COURSE,$st->id).'
'; + } + $percent = get_percent($USER->id, $COURSE); + $grade = get_grade($USER->id, $COURSE); + + $this->content->text .= get_string('attendancepercent','attforblock').': '.$percent.' %
'; + $this->content->text .= get_string('attendancegrade','attforblock').": $grade
"; + + $this->content->text .= ''.get_string('indetail','attforblock').''; + } + } + + return $this->content; + } +} + +?> diff --git a/lang/cs_utf8/block_attendance.php b/lang/cs_utf8/block_attendance.php new file mode 100644 index 0000000..29a9856 --- /dev/null +++ b/lang/cs_utf8/block_attendance.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/lang/de/block_attendance.php b/lang/de/block_attendance.php new file mode 100644 index 0000000..f2d955a --- /dev/null +++ b/lang/de/block_attendance.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/lang/en_us_utf8/README b/lang/en_us_utf8/README new file mode 100644 index 0000000..829e352 --- /dev/null +++ b/lang/en_us_utf8/README @@ -0,0 +1,11 @@ +US English is only slightly different from standard English. + +Only a few words are changed, like : + + enrolment -> enrollment + colour -> color + +Note that many help files and strings may be missing but this +doesn't matter much. Because the "parent language" of this +pack is "en", missing strings will be taken from there. +So you should also copy en_utf8 language files. \ No newline at end of file diff --git a/lang/en_us_utf8/block_attendance.php b/lang/en_us_utf8/block_attendance.php new file mode 100644 index 0000000..8c6477f --- /dev/null +++ b/lang/en_us_utf8/block_attendance.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/lang/en_utf8/block_attendance.php b/lang/en_utf8/block_attendance.php new file mode 100644 index 0000000..4ada520 --- /dev/null +++ b/lang/en_utf8/block_attendance.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/lang/es_utf8/block_attendance.php b/lang/es_utf8/block_attendance.php new file mode 100644 index 0000000..653968b --- /dev/null +++ b/lang/es_utf8/block_attendance.php @@ -0,0 +1,8 @@ + diff --git a/lang/eu_utf8/block_attendance.php b/lang/eu_utf8/block_attendance.php new file mode 100644 index 0000000..edb51f6 --- /dev/null +++ b/lang/eu_utf8/block_attendance.php @@ -0,0 +1,7 @@ + diff --git a/lang/fr_utf8/block_attendance.php b/lang/fr_utf8/block_attendance.php new file mode 100644 index 0000000..23b0cc5 --- /dev/null +++ b/lang/fr_utf8/block_attendance.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/lang/it/block_attendance.php b/lang/it/block_attendance.php new file mode 100644 index 0000000..5a81bb3 --- /dev/null +++ b/lang/it/block_attendance.php @@ -0,0 +1,7 @@ + diff --git a/lang/ja_utf8/block_attendance.php b/lang/ja_utf8/block_attendance.php new file mode 100644 index 0000000..afb9148 --- /dev/null +++ b/lang/ja_utf8/block_attendance.php @@ -0,0 +1,8 @@ + diff --git a/lang/ru_utf8/block_attendance.php b/lang/ru_utf8/block_attendance.php new file mode 100644 index 0000000..93d22ff --- /dev/null +++ b/lang/ru_utf8/block_attendance.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/lang/sk_utf8/block_attendance.php b/lang/sk_utf8/block_attendance.php new file mode 100644 index 0000000..23a1731 --- /dev/null +++ b/lang/sk_utf8/block_attendance.php @@ -0,0 +1,7 @@ + diff --git a/lang/sv/block_attendance.php b/lang/sv/block_attendance.php new file mode 100644 index 0000000..5e111dd --- /dev/null +++ b/lang/sv/block_attendance.php @@ -0,0 +1,7 @@ +