Issue:
[moodle-pu.git] / calendar / preferences.html
blobb4e52c07aef023488437c32b0d6065f8d2b39b14
1 <form method="post" action="preferences.php" id="prefform">
3 <table class="formtable">
4 <tr>
5 <th style="width: 30%;" scope="row"><?php print_string('pref_timeformat', 'calendar')?>:</th>
6 <td>
7 <?php
8 $options = array();
9 $options['0'] = get_string('default', 'calendar');
10 $options[CALENDAR_TF_12] = get_string('timeformat_12', 'calendar');
11 $options[CALENDAR_TF_24] = get_string('timeformat_24', 'calendar');
12 choose_from_menu ($options, "timeformat", $prefs->timeformat, "", "", "");
14 <p><?php print_string('explain_timeformat', 'calendar'); ?></p>
15 </td>
16 </tr>
18 <tr>
19 <th scope="row"><?php print_string('pref_startwday', 'calendar')?>:</th>
20 <td>
21 <?php
22 $options = array();
23 $options[0] = get_string('sunday', 'calendar');
24 $options[1] = get_string('monday', 'calendar');
25 $options[2] = get_string('tuesday', 'calendar');
26 $options[3] = get_string('wednesday', 'calendar');
27 $options[4] = get_string('thursday', 'calendar');
28 $options[5] = get_string('friday', 'calendar');
29 $options[6] = get_string('saturday', 'calendar');
30 choose_from_menu($options, 'startwday', $prefs->startwday, '', '', '');
32 <p><?php print_string('explain_startwday', 'calendar'); ?></p>
33 </td>
34 </tr>
36 <tr>
37 <th scope="row"><?php print_string('pref_maxevents', 'calendar')?>:</th>
38 <td>
39 <?php
40 $options = NULL;
41 for ($i=1; $i<=20; $i++) {
42 $options[$i] = $i;
44 choose_from_menu ($options, "maxevents", $prefs->maxevents, "", "", "");
46 <p><?php print_string('explain_maxevents', 'calendar'); ?></p>
47 </td>
48 </tr>
50 <tr>
51 <th scope="row"><?php print_string('pref_lookahead', 'calendar')?>:</th>
52 <td>
53 <?php
54 $options = NULL;
55 for ($i=1; $i<=200; $i++) {
56 $options[$i] = $i;
58 choose_from_menu ($options, "lookahead", $prefs->lookahead, "", "", "");
60 <p><?php print_string('explain_lookahead', 'calendar'); ?></p>
61 </td>
62 </tr>
64 <tr>
65 <th scope="row"><?php print_string('pref_persistflt', 'calendar')?>:</th>
66 <td>
67 <?php choose_from_menu (array(0 => get_string('no'), 1 => get_string('yes')), 'persistflt', $prefs->persistflt, '', '', ''); ?>
68 <p><?php print_string('explain_persistflt', 'calendar'); ?></p>
69 </td>
70 </tr>
72 <tr>
73 <td colspan="2" style="text-align: center;">
74 <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
75 </tr>
76 </table>
78 </form>