2 <!-- $Id: userprefs.tmpl,v 1.19 2002-02-08 22:03:04 dairiki Exp $ -->
6 $offset = $request->getPref('timeOffset') * 3600;
7 $serverTime = $time - $offset;
9 $timeOffsetInput = HTML::input(array('type' => "text",
11 'name' => "pref[timeOffset]",
12 'value' => $request->getPref('timeOffset')));
14 $RelativeDatesCB = HTML(HTML::input(array('type' => 'hidden',
15 'name' => 'pref[relativeDates][]',
17 HTML::input(array('type' => 'checkbox',
18 'name' => 'pref[relativeDates][]',
20 'checked' => (bool) $request->getPref('relativeDates'))));
22 <form action="<?=WikiURL($page)?>" method="post">
23 <input type="hidden" name="pagename" value="<?=$request->getArg('pagename')?>" />
24 <h2><?=_("Edit Area Size")?></h2>
26 <input type="text" name="pref[editHeight]" size="4" maxlength="4"
27 value="<?=$request->getPref('editHeight')?>" />
29 <input type="text" name="pref[editWidth]" size="4" maxlength="4"
30 value="<?=$request->getPref('editWidth')?>" />
32 <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>
34 <h2><?=_("Time Zone")?></h2>
36 <?=fmt("Add %s hours to the servers local time, when reporting times.",
38 (<?=fmt("The current time at server is %s.",
39 HTML::strong($Theme->formatDateTime($serverTime)))?>
40 <?=fmt("With the current offset, that would be reported as %s.",
41 HTML::strong($Theme->formatDateTime($time)))?>)
44 <h2><?=_("Date Format")?></h2>
45 <p><?=$RelativeDatesCB?>
46 <?=_("Show relative dates using 'Today' and 'Yesterday'.")?>
50 <p><?=Button("submit:", _("Update Preferences"))?></p>