2004-12-15 07:14:41 +00:00
|
|
|
|
|
|
|
<form method="post" action="calendar.php">
|
2005-04-10 07:08:03 +00:00
|
|
|
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
|
2005-02-16 23:51:26 +00:00
|
|
|
<table class="formtable">
|
2004-12-15 07:14:41 +00:00
|
|
|
<tr>
|
|
|
|
<th>adminseesall:</th>
|
|
|
|
<td>
|
2005-02-16 23:51:26 +00:00
|
|
|
<div><?php print_string('helpadminseesall', 'admin'); ?></div>
|
|
|
|
<p>
|
2004-12-15 07:14:41 +00:00
|
|
|
<select name="adminseesallcourses">
|
|
|
|
<option value="0" <?php if(empty($CFG->calendar_adminseesall)) echo "selected='selected'"; ?>><?php print_string('adminseesownevents', 'admin'); ?></option>
|
|
|
|
<option value="1" <?php if(!empty($CFG->calendar_adminseesall)) echo "selected='selected'"; ?>><?php print_string('adminseesallevents', 'admin'); ?></option>
|
|
|
|
</select>
|
2005-02-16 23:51:26 +00:00
|
|
|
</p>
|
2004-12-15 07:14:41 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2004-12-16 18:49:57 +00:00
|
|
|
<tr>
|
|
|
|
<th>startwday:</th>
|
|
|
|
<td>
|
2005-02-16 23:51:26 +00:00
|
|
|
<div><?php print_string('helpstartofweek', 'admin'); ?></div>
|
|
|
|
<p><?php choose_from_menu($weekdays, 'startwday', empty($CFG->calendar_startwday) ? 0 : $CFG->calendar_startwday, ''); ?></p>
|
2004-12-16 18:49:57 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>weekenddays:</th>
|
|
|
|
<td>
|
2005-02-16 23:51:26 +00:00
|
|
|
<div><?php print_string('helpweekenddays', 'admin'); ?></div>
|
|
|
|
<p>
|
2005-04-10 07:08:03 +00:00
|
|
|
<input type="checkbox" name="weekend[]" value="1" id="weekend1" <?php if(CALENDAR_WEEKEND & 2) echo 'checked="checked"'; ?> /> <label for="weekend1"><?php print_string('monday', 'calendar'); ?></label>
|
|
|
|
<input type="checkbox" name="weekend[]" value="2" id="weekend2" <?php if(CALENDAR_WEEKEND & 4) echo 'checked="checked"'; ?> /> <label for="weekend2"><?php print_string('tuesday', 'calendar'); ?></label>
|
|
|
|
<input type="checkbox" name="weekend[]" value="3" id="weekend3" <?php if(CALENDAR_WEEKEND & 8) echo 'checked="checked"'; ?> /> <label for="weekend3"><?php print_string('wednesday', 'calendar'); ?></label>
|
|
|
|
<input type="checkbox" name="weekend[]" value="4" id="weekend4" <?php if(CALENDAR_WEEKEND & 16) echo 'checked="checked"'; ?> /> <label for="weekend4"><?php print_string('thursday', 'calendar'); ?></label>
|
|
|
|
<input type="checkbox" name="weekend[]" value="5" id="weekend5" <?php if(CALENDAR_WEEKEND & 32) echo 'checked="checked"'; ?> /> <label for="weekend5"><?php print_string('friday', 'calendar'); ?></label>
|
|
|
|
<input type="checkbox" name="weekend[]" value="6" id="weekend6" <?php if(CALENDAR_WEEKEND & 64) echo 'checked="checked"'; ?> /> <label for="weekend6"><?php print_string('saturday', 'calendar'); ?></label>
|
|
|
|
<input type="checkbox" name="weekend[]" value="0" id="weekend0" <?php if(CALENDAR_WEEKEND & 1) echo 'checked="checked"'; ?> /> <label for="weekend0"><?php print_string('sunday', 'calendar'); ?></label>
|
2005-02-16 23:51:26 +00:00
|
|
|
</p>
|
2004-12-16 18:49:57 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>upcoming_lookahead:</th>
|
|
|
|
<td>
|
2005-02-16 23:51:26 +00:00
|
|
|
<div><?php print_string('helpupcominglookahead', 'admin'); ?></div>
|
|
|
|
<p><input type="text" name="lookahead" size="3" value="<?php echo CALENDAR_UPCOMING_DAYS; ?>" /></p>
|
2004-12-16 18:49:57 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>upcoming_maxevents:</th>
|
|
|
|
<td>
|
2005-02-16 23:51:26 +00:00
|
|
|
<div><?php print_string('helpupcomingmaxevents', 'admin'); ?></div>
|
|
|
|
<p><input type="text" name="maxevents" size="3" value="<?php echo CALENDAR_UPCOMING_MAXEVENTS; ?>" /></p>
|
2004-12-16 18:49:57 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2004-12-15 07:14:41 +00:00
|
|
|
<tr>
|
2005-04-10 09:33:46 +00:00
|
|
|
<th>timezones:</th>
|
2004-12-15 07:14:41 +00:00
|
|
|
<td>
|
2005-03-05 20:07:13 +00:00
|
|
|
<div><?php print_string('helpforcetimezone', 'admin'); ?></div>
|
2005-02-16 23:51:26 +00:00
|
|
|
<p>
|
2005-04-10 18:23:18 +00:00
|
|
|
<?php if (empty($timezones)) {
|
|
|
|
print_string('notimezonesexist', 'admin');
|
|
|
|
} else {
|
|
|
|
choose_from_menu($timezones, 'forcetimezone', $CFG->forcetimezone, get_string('timezonenotforced', 'admin'), '', '99');
|
2005-04-10 07:08:03 +00:00
|
|
|
|
2005-04-10 18:23:18 +00:00
|
|
|
} ?>
|
2005-02-16 23:51:26 +00:00
|
|
|
</p>
|
2005-04-10 09:31:58 +00:00
|
|
|
<p><a href="timezoneimport.php"><?php print_string('importtimezones', 'admin'); ?>...</a> </p>
|
2005-04-10 07:08:03 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" align="center">
|
|
|
|
<input type="submit" value="<?php print_string('savechanges'); ?>" />
|
2004-12-15 07:14:41 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|