diff -Naurw moodle-clean/moodle/blocks/mrbs/lang/en_utf8/block_mrbs.php moodle-dev/blocks/mrbs/lang/en_utf8/block_mrbs.php
--- moodle-clean/moodle/blocks/mrbs/lang/en_utf8/block_mrbs.php 2009-04-22 12:31:36.000000000 +0100
+++ moodle-dev/blocks/mrbs/lang/en_utf8/block_mrbs.php 2009-05-08 11:17:09.000000000 +0100
@@ -22,6 +22,7 @@
$string['charset'] = 'UTF-8';
$string['class'] = 'class';
$string['click_to_reserve'] = 'Click on the cell to make a reservation.';
+$string['computerroom'] = 'Computer rooms only';
$string['config_admin_email'] = 'MRBS admin email';
$string['config_admin_email2'] = 'Email address of the MRBS administrator. In order to receive MRBS email notifications, the email address must be associated with a Moodle user account.';
$string['config_admin'] = 'MRBS Admin';
@@ -162,6 +163,7 @@
$string['match_entry'] = 'Match brief description';
$string['match_room'] = 'Match room';
$string['match_type'] = 'Match type';
+$string['mincapacity'] = 'Minimum capacity';
$string['minutes'] = 'minutes'; //duplicated in moodle.php but needed for view_entry.php foreach loop
$string['monthafter'] = 'Go To Month After';
$string['monthbefore'] = 'Go To Month Before';
@@ -186,7 +188,7 @@
$string['of'] = ' of ';
$string['pagewindow'] = 'Same window';
$string['password_twice'] = 'If you wish to change the password, please type the new password twice';
-$string['period'] = 'Period';
+$string['period'] = 'Start Period';
$string['periods'] = 'periods';
$string['please_contact'] = 'Please contact ';
$string['postbrowserlang'] = 'language.';
@@ -222,6 +224,7 @@
$string['room_admin_email'] = 'Room admin email';
$string['room'] = 'Room';
$string['rooms'] = 'Rooms';
+$string['roomsearch'] = 'Room Search';
$string['sched_conflict'] = 'Scheduling Conflict';
$string['search_for'] = 'Search For';
$string['search_results'] = 'Search Results for';
@@ -231,6 +234,7 @@
$string['slot'] = 'Slot';
$string['sort_rep_time'] = 'Start Date/Time';
$string['sort_rep'] = 'Sort Report by';
+$string['specialroom'] = 'Exclude special rooms';
$string['start_date'] = 'Start Time';
$string['submitquery'] = 'Run Report';
$string['sum_by_creator'] = 'Creator';
@@ -241,6 +245,7 @@
$string['summary_only'] = 'Summary only';
$string['sure'] = 'Are you sure?';
$string['system'] = 'System';
+$string['teachingroom'] = 'Teaching rooms only';
$string['through'] = ' through ';
$string['too_may_entrys'] = 'The selected options will create too many entries.
Please use different options!';
$string['type'] = 'Type';
diff -Naurw moodle-clean/moodle/blocks/mrbs/web/edit_entry.php moodle-dev/blocks/mrbs/web/edit_entry.php
--- moodle-clean/moodle/blocks/mrbs/web/edit_entry.php 2009-05-08 11:11:13.000000000 +0100
+++ moodle-dev/blocks/mrbs/web/edit_entry.php 2009-05-08 11:07:14.000000000 +0100
@@ -21,6 +21,8 @@
// $rep_type could use a closer look but I believe this is not passed via URL -ab.
$start_min = optional_param('start_min', 0, PARAM_INT);
$rep_num_weeks = optional_param('rep_num_weeks', 0, PARAM_INT);
+$duration = optional_param('duration', 60, PARAM_INT);
+$all_day = optional_param('all_day', FALSE, PARAM_BOOL);
#If we dont know the right date then make it up
if(($day==0) or ($month==0) or ($year==0))
@@ -72,14 +74,18 @@
$name = $row[0];
$create_by = $row[1];
$description = $row[2];
+ $start_time = $row[3];
$start_day = userdate($row[3], '%d');
$start_month = userdate($row[3], '%m');
$start_year = userdate($row[3], '%Y');
$start_hour = userdate($row[3], '%H');
$start_min = userdate($row[3], '%M');
+ $end_time = $row[4];
$duration = $row[4] - $row[3] - cross_dst($row[3], $row[4]);
$type = $row[5];
$room_id = $row[6];
+ //put this here so that a move can be coded into the get data
+ if(!empty($room)){$room_id=$room;}
$entry_type = $row[7];
$rep_id = $row[8];
@@ -151,11 +157,12 @@
// Avoid notices for $hour and $minute if periods is enabled
(isset($hour)) ? $start_hour = $hour : '';
(isset($minute)) ? $start_min = $minute : '';
- $duration = ($enable_periods ? 60 : 60 * 60);
+ //$duration = ($enable_periods ? 60 : 60 * 60);
$type = "I";
$room_id = $room;
+ $start_time = mktime(12,$period,00,$start_month,$start_day,$start_year);
unset($id);
-
+ $end_time=$start_time;
$rep_id = 0;
$rep_type = 0;
$rep_end_day = $day;
diff -Naurw moodle-clean/moodle/blocks/mrbs/web/functions.php moodle-dev/blocks/mrbs/web/functions.php
--- moodle-clean/moodle/blocks/mrbs/web/functions.php 2009-05-08 11:11:13.000000000 +0100
+++ moodle-dev/blocks/mrbs/web/functions.php 2009-05-08 11:09:20.000000000 +0100
@@ -74,7 +74,7 @@
| Department | Room | Description | Capacity |
|---|