mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full XHTML 1.0 compliance. I hope I didn't miss anything.
- Loading branch information
defacer
committed
Sep 9, 2004
1 parent
67b1b6c
commit deaa884
Showing
7 changed files
with
76 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
<form method="post" action="event.php"> | ||
<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> | ||
<td style="vertical-align: top; text-align: right;"><?php print_string('eventkind', 'calendar'); ?>:</td> | ||
<td> | ||
<?php if(!empty($allowed->user)) { ?><div><input type='radio' name='type' value='user' id='type_user' checked='checked' /><label for='type_user'><?php print_string('typeuser', 'calendar') ?></label></div> | ||
<?php } ?> | ||
<?php if(!empty($allowed->groups)) { ?><div><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> | ||
</div> | ||
<?php } ?> | ||
<?php if(!empty($allowed->courses)) { ?> | ||
<div><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></div> | ||
<?php } ?> | ||
<?php if(!empty($allowed->site)) { ?> | ||
<div><input type='radio' name='type' value='site' id='type_site' /><label for='type_site'><?php print_string('typesite', 'calendar') ?></label></div> | ||
<?php } ?> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> </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> | ||
<td> </td> | ||
<td> | ||
<div> | ||
<input type="submit" value=" <?php print_string('ok') ?> " /> | ||
<input type="button" onclick="document.location.href='view.php?view=upcoming';" value=" <?php print_string('cancel') ?> " /> | ||
</div> | ||
</td> | ||
</tr> | ||
</form> | ||
</table> | ||
<p> | ||
<input type="hidden" name="action" value="new" /> | ||
<input type="hidden" name="timestart" value="<?php echo $form->timestart; ?>" /> | ||
</p> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters