diff --git a/renderer.php b/renderer.php index 15436d2..8d41377 100644 --- a/renderer.php +++ b/renderer.php @@ -68,7 +68,7 @@ class mod_attendance_renderer extends plugin_renderer_base { $filtertable->data[0][] = $this->render_view_controls($fcontrols); $o = html_writer::table($filtertable); - $o = $this->output->container($o, 'attfiltercontrols attwidth'); + $o = $this->output->container($o, 'attfiltercontrols'); return $o; } diff --git a/student_attendance_form.php b/student_attendance_form.php index 03fd77f..c8fc1ca 100644 --- a/student_attendance_form.php +++ b/student_attendance_form.php @@ -19,13 +19,10 @@ require_once($CFG->libdir.'/formslib.php'); class mod_attendance_student_attendance_form extends moodleform { public function definition() { - global $CFG, $USER; + global $USER; $mform =& $this->_form; - $course = $this->_customdata['course']; - $cm = $this->_customdata['cm']; - $modcontext = $this->_customdata['modcontext']; $attforsession = $this->_customdata['session']; $attblock = $this->_customdata['attendance']; diff --git a/styles.css b/styles.css index a4cb3dc..621f9c1 100644 --- a/styles.css +++ b/styles.css @@ -1,8 +1,4 @@ .path-mod-attendance .attbtn { - -khtml-border-radius: 5px; - -moz-border-radius: 5px; - -opera-border-radius: 5px; - -webkit-border-radius: 5px; border:1px solid #AAAAAA; border-radius: 5px; margin-left: 2px; @@ -17,9 +13,10 @@ } .path-mod-attendance .attfiltercontrols { - margin-bottom: 10px !important; + margin-bottom: 10px; margin-left:auto; margin-right:auto; + width:90%; } .path-mod-attendance .attfiltercontrols #currentdate{ diff --git a/tests/attendance_webservices_test.php b/tests/attendance_webservices_test.php index cd3c364..5191c2e 100644 --- a/tests/attendance_webservices_test.php +++ b/tests/attendance_webservices_test.php @@ -63,7 +63,6 @@ class attendance_webservices_tests extends advanced_testcase { $this->setUser($this->teacher); - $sessions = array(); $session = new stdClass(); $session->sessdate = time(); $session->duration = 6000; diff --git a/update_form.php b/update_form.php index cd452c0..104c540 100644 --- a/update_form.php +++ b/update_form.php @@ -61,7 +61,6 @@ class mod_attendance_update_form extends moodleform { $endhour = floor($endtime / HOURSECS); $endminute = floor(($endtime - $endhour * HOURSECS) / MINSECS); - $sesendtime = $sess->sessdate + $sess->duration; $data = array('sessiondate' => $sess->sessdate, 'sestime' => array('starthour' => $starthour, 'startminute' => $startminute, 'endhour' => $endhour, 'endminute' => $endminute),