]> git.mjollnir.org Git - moodle.git/commitdiff
Random refinements.
authordefacer <defacer>
Mon, 17 May 2004 08:54:23 +0000 (08:54 +0000)
committerdefacer <defacer>
Mon, 17 May 2004 08:54:23 +0000 (08:54 +0000)
calendar/event.php

index ef4deed84477dd1459013b5135081eb7b180d31e..62f2226da08a8c490cbc0c8c915b311b209f1507 100644 (file)
         redirect($CFG->wwwroot.'/'.$CFG->admin.'/index.php');
     }
 
-    $firstcolumn = false;  // for now
-    $side = 175;
-
-    calendar_session_vars();
     $now = usergetdate(time());
     $nav = calendar_get_link_tag(get_string('calendar', 'calendar'), CALENDAR_URL.'view.php?view=upcoming&amp;', $now['mday'], $now['mon'], $now['year']);
     $day = intval($now['mday']);
                 }
                 else {
                     foreach ($err as $key => $value) {
-                        $focus = "form.$key";
+                        $focus = 'form.'.$key;
                     }
                 }
             }
                 }
                 else {
                     foreach ($err as $key => $value) {
-                        $focus = "form.$key";
+                        $focus = 'form'.$key;
                     }
                 }
             }
     print_header(get_string('calendar', 'calendar').': '.$title, $site->fullname, $nav.' -> '.$title,
                  $focus, '', true, '', '<p class="logininfo">'.user_login_string($site).'</p>');
 
-    /// Layout the whole page as three big columns.
     echo '<table border="0" cellpadding="3" cellspacing="0" width="100%"><tr valign="top">';
     echo '<td valign="top" width="100%">';
 
     echo '</td>';
 
     // START: Last column (3-month display)
-    echo '<td valign="top" width="'.$side.'">';
+    echo '<td style="vertical-align: top; width: 180px;">';
 
     // [pj] There is a whole class of problems with minimonths in event.php, which
     // was why there were no minimonths before... I fixed them as best I could for now.
     echo calendar_get_mini($courses, $groups, $users, $nextmon, $nextyr);
     echo '</p>';
     print_side_block_end();
-    print_spacer(1, $side);
+    print_spacer(1, 180);
     echo '</td>';
 
     echo '</tr></table>';