2 <!-- $Id: userprefs.tmpl,v 1.21 2002-02-14 03:45:05 carstenklapp Exp $ -->
6 $offset = $request->getPref('timeOffset') * 3600;
7 $serverTime = $time - $offset;
9 $timeOffsetInput = HTML::input(array('type' => "text",
12 'name' => "pref[timeOffset]",
14 'value' => $request->getPref('timeOffset')));
16 $RelativeDatesCB = HTML(HTML::input(array('type' => 'hidden',
17 'name' => 'pref[relativeDates][]',
19 HTML::input(array('type' => 'checkbox',
20 'name' => 'pref[relativeDates][]',
22 'checked' => (bool) $request->getPref('relativeDates'))));
24 <form action="<?=WikiURL($page)?>" method="post">
25 <input type="hidden" name="pagename" value="<?=$request->getArg('pagename')?>" />
26 <h2><?=_("Edit Area Size")?></h2>
28 <input type="text" name="pref[editHeight]" size="4" maxlength="4" class="numeric"
29 value="<?=$request->getPref('editHeight')?>" />
31 <input type="text" name="pref[editWidth]" size="4" maxlength="4" class="numeric"
32 value="<?=$request->getPref('editWidth')?>" />
34 <p><?=_("Note that many browsers will automatically adjust the width of the editing area so that it fills the browser window. In this case, the width preference will be ignored.")?></p>
36 <h2><?=_("Time Zone")?></h2>
38 <?=fmt("Add %s hours to the server's local time when reporting times.",
42 <?=fmt("The current time at the server is %s.",
43 HTML::strong($Theme->formatDateTime($serverTime)))?>
44 <?=fmt("With the current offset, this would be reported as %s.",
45 HTML::strong($Theme->formatDateTime($time)))?>
48 <h2><?=_("Date Format")?></h2>
49 <p><?=$RelativeDatesCB?>
50 <?=_("Show relative dates using 'Today' and 'Yesterday'.")?>
54 <p><?=Button("submit:", _("Update Preferences"), 'wikiaction')?></p>