173 Commits

Author SHA1 Message Date
stronk7
c767c146e2 Avoid some double-slashes sent to DB. It was breaking the multilang
filter in event logs.
2005-03-27 22:16:05 +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
84854c09c6 Removed some classes from being added explicitly 2005-02-25 06:20: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
0bab403ceb Improving the HTML for preferences, getting rid of DST. 2005-02-18 01:44:51 +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
6c40f0dc2a Changing an instance of 1 => SITEID, and making the course filter
drop down menu respect $CFG->adminseesall (for admins only of course)
2005-02-18 01:32:49 +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
3a5d4d8525 There were other magic numbers that needed changing as well.
There's also a bug in there with DST and repeating events. No easy way
to fix it right now, but I documented it to squash later.
2005-02-17 15:06:01 +00:00
defacer
60979d31cd Magic number 1 => SITEID 2005-02-17 14:59:53 +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
moodler
d57fc786e4 Make the calendar more theme-setting friendly 2005-02-13 08:50:37 +00:00
defacer
760e522b04 This small visual detail was trying to hide and escape. :P 2005-02-12 16:00:47 +00:00
defacer
1372ef74aa When confirming deleting an event, changed OK/Cancel to Yes/No and added
some distance between those uncomfortably close buttons.
2005-02-12 14:46:20 +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
moodler
4a2c4132d5 Removed some $THEME stuff 2005-01-25 17:16:34 +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
defacer
86f092d25e New "Calendar" section in Admin -> Configuration.
Includes preliminary support for DST!
Includes "admin sees all events or only own?" setting (bug 1972)

WARNING: Modified moodlelib.php to explicitly specify NOT-DST when
calling mktime() and gmmktime(). This is essential since we don't want
PHP to second-guess us for the DST matters, but... it may affect existing
code?
2004-12-15 07:14:41 +00:00
defacer
9c6bf80e71 Removed last instance of the evil SECS_IN_DAY constant that is the ticket
to wrong code when DST comes into play

Fixed calendar_get_upcoming to perform DST corrections according to the
server's TZ (now the users as calendar doesn't support that, but it's a start)

Removed some dead code
2004-12-01 21:54:49 +00:00
defacer
cb48251dec Fixed some warnings I introduced a while back by incorrect use of optional_parameter() 2004-12-01 21:52:09 +00:00
defacer
77e9d3cf4c Minor code style changes 2004-12-01 21:49:23 +00:00
mjollnir_
e6d1d120b1 Merged from MOODLE_14_STABLE: Changes to calls to get_courses to not get all fields 2004-11-22 05:41:14 +00:00
mjollnir_
da862d410f Merged from MOODLE_14_STABLE: Fix for calendar set filters to not query the database for groups of a course if it doesn't use groups 2004-11-22 03:17:49 +00:00
defacer
3c7e1b65be Fixes for slightly incorrect behavior on days where the DST setting changes.
Not quite correct in some places though (those require more attention).
2004-11-20 20:10:03 +00:00
defacer
482dbe0cd4 Correct construction of SQL clauses (fix for SC#20).
Improved conformance with the new _param() functions a bit.
2004-11-19 02:47:00 +00:00
moodler
2038a163d8 Merged sesskey fix from stable 2004-11-05 06:29:48 +00:00
defacer
a94329a8ed Fix for bug #2004 (Bug of the Year! :D):
Events in each day are now displayed ordered by starting time, and not by
eventid as before. Thanks to Gustav for pointing this out!
2004-10-29 17:21:19 +00:00
moodler
647213f731 Some changes for XHTML compatibility 2004-10-07 05:52:39 +00:00
stronk7
1066e0dc62 Changed some conditions against the $USER variable
to work fine under PHP5.

Bug 2053
(http://moodle.org/bugs/bug.php?op=show&bugid=2053)

Merged from MOODLE_14_STABLE
2004-10-06 16:52:24 +00:00
defacer
02ce384808 Merging fix for bug 1957 from MOODLE_14_STABLE. 2004-09-19 22:25:21 +00:00
defacer
4c7d113714 Nit-picking corrections... behavior doesn't change at all. 2004-09-18 16:14:54 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00