1 <form method=
"post" action=
"event.php" id=
"eventform">
2 <table cellpadding=
"5" cellspacing=
"0">
4 <td style=
"vertical-align: top; text-align: right;">
5 <?php print_string('eventname', 'calendar'); ?>:
8 <input type=
"text" name=
"name" size=
"67" value=
"<?php p($form->name); ?>" />
9 <?php
if (isset($err['name'])) formerr($err['name']); ?>
13 <td style=
"vertical-align: top; text-align: right;">
14 <?php print_string('eventdescription', 'calendar'); ?>:
18 print_textarea($usehtmleditor, 20, 65, 630, 300, "description", $form->description
);
19 if (isset($err['description'])) formerr($err['description']);
24 <td style=
"vertical-align: top; text-align: right;"><?php print_string('eventdate', 'calendar'); ?>:
</td>
26 <?php print_date_selector('startday', 'startmon', 'startyr', $form->timestart
);?>
27 <?php print_string('eventtime', 'calendar');?>
28 <?php print_time_selector('starthr', 'startmin', $form->timestart
) ?>
29 <?php if (isset($err['timestart'])) formerr($err['timestart']); ?>
33 <td style=
"vertical-align: top; text-align: right;">
34 <?php print_string('eventduration', 'calendar'); ?>:
38 <input type=
"radio" name=
"duration" value=
"0" id=
"duration_none" <?php if($form->duration
== 0) echo 'checked="checked"'; ?>/>
39 <label for=
"duration_none">
40 <?php print_string('durationnone', 'calendar'); ?>
44 <input type=
"radio" name=
"duration" value=
"1" id=
"duration_yes" <?php if($form->duration
== 1) echo 'checked="checked"'; ?>/>
45 <label for=
"duration_yes">
46 <?php print_string('durationuntil', 'calendar'); ?>
48 <?php print_date_selector('endday', 'endmon', 'endyr', $form->timestart +
$form->timeduration
);?>
49 <?php print_string('eventtime', 'calendar');?>
50 <?php print_time_selector('endhr', 'endmin', $form->timestart +
$form->timeduration
) ?>
51 <?php if (isset($err['timeduration'])) formerr($err['timeduration']); ?>
54 <input type=
"radio" name=
"duration" value=
"2" id=
"duration_minutes" <?php if($form->duration
== 2) echo 'checked="checked"'; ?>/>
55 <label for=
"duration_minutes"><?php print_string('durationminutes', 'calendar'); ?>:
</label>
56 <input type=
"text" name=
"minutes" size=
"3" value=
"<?php p($form->minutes); ?>" />
57 <?php
if (isset($err['minutes'])) formerr($err['minutes']); ?>
61 <?php if($repeatcount > 1) { ?>
63 <td style=
"vertical-align: top; text-align: right;">
64 <?php print_string('eventrepeat', 'calendar'); ?>:
68 <input type=
"radio" name=
"repeats" value=
"1" id=
"edit_all" checked=
"checked" />
69 <label for=
"edit_all">
70 <?php print_string('repeateditall', 'calendar', $repeatcount); ?>
74 <input type=
"radio" name=
"repeats" value=
"0" id=
"edit_this" />
75 <label for=
"edit_this">
76 <?php print_string('repeateditthis', 'calendar'); ?>
83 <td align=
"center" colspan=
"2"><p><input type=
"submit" value=
"<?php print_string('savechanges') ?>" /></p
></td
>
87 <input type
="hidden" name
="id" value
="<?php echo $form->id; ?>" />
88 <input type
="hidden" name
="courseid" value
="<?php echo $form->courseid; ?>" />
89 <input type
="hidden" name
="format" value
="<?php echo $form->format; ?>" />
90 <input type
="hidden" name
="action" value
="edit" />