1 <form method=
"post" action=
"preferences.php" id=
"prefform">
3 <table class=
"formtable">
5 <th style=
"width: 30%;" scope=
"row"><?php print_string('pref_timeformat', 'calendar')?>:
</th>
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>
19 <th scope=
"row"><?php print_string('pref_startwday', 'calendar')?>:
</th>
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>
37 <th scope=
"row"><?php print_string('pref_maxevents', 'calendar')?>:
</th>
41 for ($i=1; $i<=20; $i++
) {
44 choose_from_menu ($options, "maxevents", $prefs->maxevents
, "", "", "");
46 <p><?php print_string('explain_maxevents', 'calendar'); ?></p>
51 <th scope=
"row"><?php print_string('pref_lookahead', 'calendar')?>:
</th>
55 for ($i=1; $i<=200; $i++
) {
58 choose_from_menu ($options, "lookahead", $prefs->lookahead
, "", "", "");
60 <p><?php print_string('explain_lookahead', 'calendar'); ?></p>
65 <th scope=
"row"><?php print_string('pref_persistflt', 'calendar')?>:
</th>
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>
73 <td colspan=
"2" style=
"text-align: center;">
74 <input type=
"submit" value=
"<?php print_string("savechanges
") ?>" /></td
>