MDL-8857
[moodle-linuxchix.git] / calendar / event_select.html
blob1e827f713ffcd48bb5c09848bebb87cbdfb6017f
1 <form method="post" action="event.php">
2 <table class="formtable">
3 <tr>
4 <td>
5 <?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>
6 <?php } ?>
7 <?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>
8 <select name='groupid'>
9 <option value=''></option>
10 <?php foreach($allowed->groups as $group) {?>
11 <option value='<?php echo $group->id; ?>' <?php if($group->id == $groupid) echo 'selected="selected"';?>><?php echo $group->name; ?></option>
12 <?php }?>
13 </select>
14 </div>
15 <?php } ?>
16 <?php if(!empty($allowed->courses)) { ?>
17 <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>
18 <?php } ?>
19 <?php if(!empty($allowed->site)) { ?>
20 <div><input type='radio' name='type' value='site' id='type_site' /><label for='type_site'><?php print_string('typesite', 'calendar') ?></label></div>
21 <?php } ?>
22 </td>
23 </tr>
24 <tr>
25 <td style="text-align: center;">
26 <input type="submit" value=" <?php print_string('ok') ?> " />
27 <input type="button" onclick="document.location.href='view.php?view=upcoming';" value=" <?php print_string('cancel') ?> " />
28 </td>
29 </tr>
30 </table>
31 <p>
32 <input type="hidden" name="action" value="new" />
33 <input type="hidden" name="timestart" value="<?php echo $form->timestart; ?>" />
34 </p>
35 </form>