Commit graph

337 commits

Author SHA1 Message Date
nfreear
2a06efcc69 Accessibility: calendar_get_mini, table summary now multilingual; replaced table in calendar_top_controls. 2006-03-08 17:27:56 +00:00
nfreear
f20c4d02b8 Accessibility: table summary and <abbr> for day abbreviations. 2006-03-08 17:03:02 +00:00
nfreear
b5c42e700b Accessibility: code taken from function calendar_get_mini, for new function calendar_get_popup. 2006-03-08 16:52:23 +00:00
skodak
fac01360b3 removed isset_param() 2006-02-12 11:27:22 +00:00
moodler
1747ee05bd Removing PJs "temporary" test code. Mine kept printing errors ... why? 2005-11-09 06:00:48 +00:00
moodler
fa22fd5fff BIG FEATURE - MULTIPLE GROUPS
Users can now be assigned to multiple groups.  Thanks Yu!
Break out the Bob Marley!!

Otherwise groups work more or less like they did before.

This has been pretty well tested by Yu and myself, but since Yu started
uncovering lots of existing groups bugs it's possible there may be still
a few corner cases still lurking here and there.

Please help test this thoroughly for 1.6!!
2005-11-08 07:19:27 +00:00
defacer
c0b507d118 I was going through the code here and found out that it's completely missing
the point, it could be much tighter and easier to understand. So here's the
candidate replacement code plus some assertions, I intend to let it run for
some time and if no assertion errors come up (they shouldn't) do the replace.

This was almost my very first Moodle code. Isn't experience wonderful? ;-)
2005-11-06 03:20:30 +00:00
defacer
d515b72998 Merging from STABLE:
Fix for bug 4143:

If a user was a teacher, they didn't see any events from courses
where they were students.

I 'm back at looooooong last! :)
2005-10-21 00:29:14 +00:00
mjollnir_
3bb2ac0668 Backing out broken last patch - bug 4119 2005-09-28 02:58:05 +00:00
mjollnir_
0d6b9d4f4d MyMoodle: new /my/ page, contains course overview (module based, forum done). User defined blocks on /my/ page, admin defined stickyblocks. Needs lots of testing. Held off bumping version.php for blocks because of the postgres upgrade fixes Patrick is putting in. 2005-08-16 00:25:39 +00:00
thepurpleblob
7f4d18fc7c Replaced require_variable() and optional_variable() with required_param()
and optional_param(). Other tweaks to suit.
2005-06-15 14:58:17 +00:00
defacer
5a74ffd344 Merging from STABLE:
More correct handling of group events, we cannot simply omit them because
the course has "no groups" UNLESS groupmodeforce == 1 as well.

Sadly, this severely weakens the performace optimizations :(

See bug 3303 for an example of what the problem was before.
2005-05-30 12:44:30 +00:00
moodler
f2bffd9ed2 Merged fixes from stable 2005-05-26 12:54:56 +00:00
defacer
d3555a2ff5 A small bugfix/update to work with DST. Before, events starting between 00:00
and 00:59 in the first day of each month were not shown at all with DST on.
2005-05-23 13:53:06 +00:00
defacer
fcb50b292d Fix for bug 3113, some innocent notices. 2005-05-06 21:44:34 +00:00
defacer
6976250146 Performance boost for admins and editing teachers who teach several courses with NOGROUPS.
See bug 2804.
2005-04-30 22:26:17 +00:00
moodler
f54a86afd9 Removed cellspacing for IE 2005-04-21 17:53:36 +00:00
defacer
e93f551b3f Removing leftovers from some debugging session. 2005-04-20 21:17:39 +00:00
defacer
95a1810ed9 Removing dead code. 2005-04-20 21:14:27 +00:00
defacer
edf205a609 Synchronising rights required for event editing with those required for adding events.
See previous commit in calendar/event.php.
2005-04-20 21:13:08 +00:00
defacer
257e3f4c61 Utilize $CFG->calendar_adminseesall and part of Penny's patches (for bug 2804)
to improve performance: if the admin wants to see all events, there's no need
to make even one query for course groupmode.
2005-04-12 01:09:31 +00:00
defacer
0ad072dea5 Simplify the code a bit and move the visible = 1 SQL check out of the main part of the WHERE
statement. This might be actually fixing an operator precedence logic bug.
2005-04-11 23:24:23 +00:00
defacer
6e957c415c Better bracketing for event-selecting SQL (see bug 2804) 2005-04-11 23:21:29 +00:00
defacer
55d9c93a11 Reading some code carefully...
This small check is already done a couple lines above.
2005-04-11 23:13:41 +00:00
defacer
e2aa618b77 Fix for bug 2821. I 'm not sure if it makes any difference, but it cannot hurt. 2005-04-11 22:58:10 +00:00
stronk7
fb73f3b3b2 Now event->name supports multilang under filterall completely. 2005-03-27 16:41:04 +00:00
moodler
05fcc5fd48 Removed about 30 un-necessary divs from the calendar block ;-) 2005-03-27 15:36:47 +00:00
stronk7
94474fc403 Now activity names in upcoming events block support filterall. 2005-03-27 11:50:09 +00:00
moodler
df349d1dda Fixed up some styles (mostly headers) 2005-03-18 14:45:13 +00:00
defacer
69244b9128 A few unrelated changes, sorry for not being tidy.
1. Possible fix for bug 2410, also bug report at http://moodle.org/mod/forum/discuss.php?d=19173.

2. Group events may be edited by teachers without course editing rights.

3. Cosmetics for the DST display (this is a work in progress).
2005-02-26 06:30:19 +00:00
moodler
b0ac91807d Robust fix from stable 2005-02-22 10:37:54 +00:00
defacer
ed8ea92b7e HTML/CSS improvements for the event list in the calendar. 2005-02-18 14:32:42 +00:00
defacer
7f92cbefbb DST is out of the preferences entirely. 2005-02-18 01:46:57 +00:00
defacer
bb8392589b Fix for bug 2578:
Editing teachers for the site can now add global events.
This was previously limited to admins only.
2005-02-18 01:37:56 +00:00
defacer
3477a9007d Some smallish bugs had escaped me during the transition to DST. 2005-02-18 01:26:04 +00:00
defacer
5147ad4828 Fixing bugs and improving integration with moodlelib. I had my own
rogue strftime()s in here.
2005-02-18 01:11:10 +00:00
defacer
1f473774f3 Visual & DST improvements. 2005-02-17 01:10:17 +00:00
defacer
42d364974a Fixing stuff I broke with my last commit. 2005-02-16 22:04:14 +00:00
defacer
196f2619c0 Working for DST support. 2005-02-16 21:50:25 +00:00
moodler
f136e4c5ae Removed THEAD and TBODY from calendar HTML because these tables are
not really data tables in the sense that W3C talks about them
2005-02-14 16:50:02 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
defacer
9df8ff4429 Fix for bug 2532:
Due to some restructuring a notice went into the upcoming events block.
I didn't have that one on so I didn't notice (no pun intended) :)
2005-02-12 09:42:23 +00:00
defacer
3c1348758d Fixed styles and improved lots of things in calendar. It should work all
right and even be a bit cooler than it was before. :)
2005-02-11 15:52:59 +00:00
defacer
9ecf051d4c Styles and markup improvements. 2005-02-11 05:27:19 +00:00
defacer
edbe6c1b69 More styles and markup cleanup. The basic calendar screens should now be
pleasantly viewable in any browser (I 'm testing FF and IE).

Some things still don't satisfy me and some parts haven't been done yet.
But at least it doesn't look broken in IE anymore.
2005-02-11 03:54:33 +00:00
defacer
2ad2cbc302 Fixing more calendar styles (and some other details that caught my eye).
A personal note of thanks to that shitty excuse of a browser, IE, for
making my life a nightmare. And that's on XP SP2.
2005-02-11 03:08:30 +00:00
defacer
7d50b363b5 Reworking of all calendar styles to address bug 2524.
**********************************************************************
* THIS IS NOT COMPLETED YET AND IN FACT IT'S QUITE BROKEN RIGHT NOW! *
**********************************************************************

My head is spinning and that's enough layout madness for one day.
2005-02-10 00:42:41 +00:00
defacer
054193be87 Merging fix for reopened bug 1384 from STABLE.
Fix for bug 2252:
You can now choose to have the calendar "remember" your filter settings
between logins.

Some extra code in calendar/lib.php for DST. It doesn't currently affect
how Moodle works.
2005-01-12 11:55:01 +00:00
gustav_delius
b63c0ee521 Fixes a bug with user events created by an activity module.
The old code assumed that the courseid would always be set but that is only the case for course events, not for user or group events. (See http://moodle.org/mod/forum/discuss.php?d=4466#20827 for a discussion about the meaning of the courseid field in the event table)
I also made the $courseid argument to get_coursemodule_from_instance() optional. It is not needed and in some cases it will not be know, as for example for non-course events created by activity modules.
2004-12-26 13:58:07 +00:00
defacer
bb4a2e85c0 New features implemented:
* Configurable defaults for the calendar upcoming events lookahead and
   maximum upcoming events displayed (bug #1623)

 * Configurable setting for which days of the week are treated as weekend
   (bug #1919)

 * Configurable setting for which day starts the week (the admin can now set
   this as the default for new users and guests without messing with language
   packs) (no butracker issue)
2004-12-16 18:49:57 +00:00