Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / calendar / event_edit.html
blob617686044446e39d734154cc744b8771265f02f7
1 <form method="post" action="event.php" id="eventform">
2 <table cellpadding="5" cellspacing="0">
3 <tr>
4 <td style="vertical-align: top; text-align: right;">
5 <?php print_string('eventname', 'calendar'); ?>:
6 </td>
7 <td>
8 <input type="text" name="name" size="67" value="<?php p($form->name); ?>" />
9 <?php if (isset($err['name'])) formerr($err['name']); ?>
10 </td>
11 </tr>
12 <tr>
13 <td style="vertical-align: top; text-align: right;">
14 <?php print_string('eventdescription', 'calendar'); ?>:
15 </td>
16 <td>
17 <?php
18 print_textarea($usehtmleditor, 20, 65, 630, 300, "description", $form->description);
19 if (isset($err['description'])) formerr($err['description']);
21 </td>
22 </tr>
23 <tr>
24 <td style="vertical-align: top; text-align: right;"><?php print_string('eventdate', 'calendar'); ?>:</td>
25 <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']); ?>
30 </td>
31 </tr>
32 <tr>
33 <td style="vertical-align: top; text-align: right;">
34 <?php print_string('eventduration', 'calendar'); ?>:
35 </td>
36 <td>
37 <div>
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'); ?>
41 </label>
42 </div>
43 <div>
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'); ?>
47 </label>
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']); ?>
52 </div>
53 <div>
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']); ?>
58 </div>
59 </td>
60 </tr>
61 <?php if($repeatcount > 1) { ?>
62 <tr>
63 <td style="vertical-align: top; text-align: right;">
64 <?php print_string('eventrepeat', 'calendar'); ?>:
65 </td>
66 <td>
67 <div>
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); ?>
71 </label>
72 </div>
73 <div>
74 <input type="radio" name="repeats" value="0" id="edit_this" />
75 <label for="edit_this">
76 <?php print_string('repeateditthis', 'calendar'); ?>
77 </label>
78 </div>
79 </td>
80 </tr>
81 <?php } ?>
82 <tr>
83 <td align="center" colspan="2"><p><input type="submit" value="<?php print_string('savechanges') ?>" /></p></td>
84 </tr>
85 </table>
86 <p>
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" />
91 <input type="hidden" name="course" value="<?php p($urlcourse); ?>" />
92 </p>
93 </form>