]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/userprefs.tmpl
assigned css classes to form input buttons
[SourceForge/phpwiki.git] / themes / default / templates / userprefs.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: userprefs.tmpl,v 1.21 2002-02-14 03:45:05 carstenklapp Exp $ -->
3 <?php
4
5 $time = time();
6 $offset = $request->getPref('timeOffset') * 3600;
7 $serverTime = $time - $offset;
8
9 $timeOffsetInput = HTML::input(array('type' => "text",
10                                      'size' => 6,
11                                      'maxlength' => 6,
12                                      'name' => "pref[timeOffset]",
13                                      'class' => "numeric",
14                                      'value' => $request->getPref('timeOffset')));
15
16 $RelativeDatesCB = HTML(HTML::input(array('type' => 'hidden',
17                                           'name' => 'pref[relativeDates][]',
18                                           'value' => '0')),
19                         HTML::input(array('type' => 'checkbox',
20                                           'name' => 'pref[relativeDates][]',
21                                           'value' => '1',
22                                           'checked' => (bool) $request->getPref('relativeDates'))));
23 ?>
24 <form action="<?=WikiURL($page)?>" method="post">
25   <input type="hidden" name="pagename" value="<?=$request->getArg('pagename')?>" />
26   <h2><?=_("Edit Area Size")?></h2>
27   <p><?=_("Height")?>
28      <input type="text" name="pref[editHeight]" size="4" maxlength="4" class="numeric"
29             value="<?=$request->getPref('editHeight')?>" />
30      <?=_("Width")?>
31      <input type="text" name="pref[editWidth]" size="4" maxlength="4" class="numeric"
32             value="<?=$request->getPref('editWidth')?>" />
33   </p>
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>
35
36   <h2><?=_("Time Zone")?></h2>
37   <p>
38     <?=fmt("Add %s hours to the server's local time when reporting times.",
39            $timeOffsetInput)?>
40   </p>
41   <p>
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)))?>
46   </p>
47
48   <h2><?=_("Date Format")?></h2>
49   <p><?=$RelativeDatesCB?>
50      <?=_("Show relative dates using 'Today' and 'Yesterday'.")?>
51   </p>
52
53   <hr />
54   <p><?=Button("submit:", _("Update Preferences"), 'wikiaction')?></p>
55 </form>