[Hw4mdl-svn] SF.net SVN: hw4mdl: [79] trunk/moodle/mod/liveclassroom/mod.html
Brought to you by:
jhlinder,
trollinger
|
From: <sh...@us...> - 2006-10-10 12:24:13
|
Revision: 79
http://svn.sourceforge.net/hw4mdl/?rev=79&view=rev
Author: shazan
Date: 2006-10-10 05:24:04 -0700 (Tue, 10 Oct 2006)
Log Message:
-----------
add activity form update
Modified Paths:
--------------
trunk/moodle/mod/liveclassroom/mod.html
Modified: trunk/moodle/mod/liveclassroom/mod.html
===================================================================
--- trunk/moodle/mod/liveclassroom/mod.html 2006-10-10 12:22:30 UTC (rev 78)
+++ trunk/moodle/mod/liveclassroom/mod.html 2006-10-10 12:24:04 UTC (rev 79)
@@ -81,7 +81,7 @@
<tr valign="top">
<td align="right"><b><font color="red">*</font><?php print_string("name") ?>:</b></td>
- <td>
+ <td align="left">
<input type="text" name="name" size="30" value="">
</td>
</tr>
@@ -90,35 +90,38 @@
<?php
if($course->format == "weeks"){
- //Display the lsit of the weeks
+ //Display the list of the weeks
?>
<td align="right"><b><?php print_string('weeksformat', 'liveclassroom')?>:</b></td>
- <td>
+ <td align="left">
<SELECT name="section">
<?php
-
- $weekdate = $course->startdate; // this should be 0:00 Monday of that week
- $weekdate += 7200; // Add two hours to avoid possible DST problems
- $section = 1;
- // $sectionmenu = array();
- $weekofseconds = 604800;
- $course->enddate = $course->startdate + ($weekofseconds * $course->numsections);
- $k=0;
- while ($weekdate < $course->enddate) {
- $nextweekdate = $weekdate + ($weekofseconds);
- $weekday = userdate($weekdate, '%d %B') ;
- $endweekday = userdate($weekdate+518400, '%d %B');
- $list_weeks[$k] = $weekday.' - '.$endweekday;
- ?>
- <OPTION <?php if($_GET['section']==$k+1) { echo "selected"; }?> VALUE="<?php p($k+1) ?>"><?php p($list_weeks[$k]) ?></OPTION>
- <?php
- $k++;
- $section++;
- $weekdate = $nextweekdate;
- }
-
+
+ $weekdate = $course->startdate; // this should be 0:00 Monday of that week
+ $weekdate += 7200; // Add two hours to avoid possible DST problems
+ $section = 1;
+ // $sectionmenu = array();
+ $weekofseconds = 604800;
+ $course->enddate = $course->startdate + ($weekofseconds * $course->numsections);
+ $list_weeks[0]="Section 0"; //For first section
+ $k=1;
+ while ($weekdate < $course->enddate) {
+ $nextweekdate = $weekdate + ($weekofseconds);
+ $weekday = userdate($weekdate, '%d %B') ;
+ $endweekday = userdate($weekdate+518400, '%d %B');
+ $list_weeks[$k] = $weekday.' - '.$endweekday;
+
+ $k++;
+ $section++;
+ $weekdate = $nextweekdate;
+ }
+ for($l=0;$l<sizeof($list_weeks);$l++){
?>
+ <OPTION <?php if($_GET['section']==$l) { echo "selected"; }?> VALUE="<?php p($l) ?>"><?php p($list_weeks[$l]) ?></OPTION>
+ <?php
+ }
+ ?>
</SELECT>
</td>
<?php
@@ -147,10 +150,10 @@
?>
<tr valign="top">
<td align="right"><b><?php print_string('topicformat', 'liveclassroom') ?>:</b></td>
- <td>
+ <td align="left">
<select name="section">
<?php
- $section = 1;
+ $section = 0;
while ($section <= $course->numsections) {
if (!$thissection = get_record('course_sections', 'course',$course->id, 'section', $section)) {
notify('Error getting course_sections!');
@@ -172,10 +175,10 @@
<tr valign="top">
<td align="right"><b><?php print_string('liveclassroomtype', 'liveclassroom')?>:</b></td>
- <td>
+ <td align="left">
<?php
include_once($CFG->dirroot.'/mod/liveclassroom/lib.php');
-
+
$list_type_rooms = liveclassroom_get_list_type_rooms($course);
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|