1 <form method=
"post" action=
"event.php">
2 <table class=
"formtable">
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>
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>
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>
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>
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') ?> " />
32 <input type
="hidden" name
="action" value
="new" />
33 <input type
="hidden" name
="timestart" value
="<?php echo $form->timestart; ?>" />