]> git.mjollnir.org Git - moodle.git/commitdiff
There's a "parse error" report (http://moodle.org/mod/forum/discuss.php?d=11423)
authordefacer <defacer>
Mon, 23 Aug 2004 12:16:29 +0000 (12:16 +0000)
committerdefacer <defacer>
Mon, 23 Aug 2004 12:16:29 +0000 (12:16 +0000)
which I cannot reproduce in a flash, but maybe this should fix it? I just added
some semicolons after the echoes and before the PHP closing tag.

calendar/event_select.html

index 40707606081b374216364b612e639f181360d336..872c9d51224820af9f2c2ac08a8a99db53bc4c4a 100644 (file)
@@ -1,37 +1,37 @@
-<table class="formtable">\r
-  <form method="post" action="event.php">\r
-  <p>\r
-  <input type="hidden" name="action" value="new" />\r
-  <input type="hidden" name="timestart" value="<?php echo $form->timestart; ?>" />\r
-  </p>\r
-  <tr>\r
-    <td style="vertical-align: top; text-align: right;"><?php print_string('eventkind', 'calendar'); ?>:</td>\r
-    <td>\r
-    <?php if(!empty($allowed->user)) { ?><p><input type='radio' name='type' value='user' id='type_user' checked='checked' /><label for='type_user'><?php print_string('typeuser', 'calendar') ?></label></p>\r
-    <?php } ?>\r
-    <?php if(!empty($allowed->groups)) { ?><p><input type='radio' name='type' value='group' id='type_group' /><label for='type_group'><?php echo get_string('typegroup', 'calendar').' '.get_string('groupfor'); ?></label>\r
-      <select name='groupid'>\r
-        <option value=''></option>\r
-      <?php foreach($allowed->groups as $group) {?>\r
-        <option value='<?php echo $group->id?>' <?php if($group->id == $groupid) echo 'selected="selected"';?>><?php echo $group->name?></option>\r
-      <?php }?>\r
-      </select>\r
-    <?php } ?>\r
-    <?php if(!empty($allowed->courses)) { ?>\r
-      <p><input type='radio' name='type' value='course' id='type_course' /><input type="hidden" name="courseid" value="<?php echo($courseid) ?>" /><label for='type_course'><?php print_string('typecourse', 'calendar') ?></label></p>\r
-    <?php } ?>\r
-    <?php if(!empty($allowed->site)) { ?>\r
-      <p><input type='radio' name='type' value='site' id='type_site' /><label for='type_site'><?php print_string('typesite', 'calendar') ?></label></p>\r
-    <?php } ?>\r
-    </td>\r
-  </tr>\r
-  <tr>\r
-    <td>&nbsp;</td>\r
-    <td>\r
-      <p><input type="submit" value=" <?php print_string('ok') ?> ">\r
-      <input type="button" onclick="document.location.href='view.php?view=upcoming';" value=" <?php print_string('cancel') ?> ">\r
-      </p>\r
-    </td>\r
-  </tr>\r
-  </form>\r
-</table>\r
+<table class="formtable">
+  <form method="post" action="event.php">
+  <p>
+  <input type="hidden" name="action" value="new" />
+  <input type="hidden" name="timestart" value="<?php echo $form->timestart; ?>" />
+  </p>
+  <tr>
+    <td style="vertical-align: top; text-align: right;"><?php print_string('eventkind', 'calendar'); ?>:</td>
+    <td>
+    <?php if(!empty($allowed->user)) { ?><p><input type='radio' name='type' value='user' id='type_user' checked='checked' /><label for='type_user'><?php print_string('typeuser', 'calendar') ?></label></p>
+    <?php } ?>
+    <?php if(!empty($allowed->groups)) { ?><p><input type='radio' name='type' value='group' id='type_group' /><label for='type_group'><?php echo get_string('typegroup', 'calendar').' '.get_string('groupfor'); ?></label>
+      <select name='groupid'>
+        <option value=''></option>
+      <?php foreach($allowed->groups as $group) {?>
+        <option value='<?php echo $group->id; ?>' <?php if($group->id == $groupid) echo 'selected="selected"';?>><?php echo $group->name; ?></option>
+      <?php }?>
+      </select>
+    <?php } ?>
+    <?php if(!empty($allowed->courses)) { ?>
+      <p><input type='radio' name='type' value='course' id='type_course' /><input type="hidden" name="courseid" value="<?php echo($courseid) ?>" /><label for='type_course'><?php print_string('typecourse', 'calendar') ?></label></p>
+    <?php } ?>
+    <?php if(!empty($allowed->site)) { ?>
+      <p><input type='radio' name='type' value='site' id='type_site' /><label for='type_site'><?php print_string('typesite', 'calendar') ?></label></p>
+    <?php } ?>
+    </td>
+  </tr>
+  <tr>
+    <td>&nbsp;</td>
+    <td>
+      <p><input type="submit" value=" <?php print_string('ok') ?> ">
+      <input type="button" onclick="document.location.href='view.php?view=upcoming';" value=" <?php print_string('cancel') ?> ">
+      </p>
+    </td>
+  </tr>
+  </form>
+</table>