2 <!-- $Id: userprefs.tmpl,v 1.13 2002-02-07 03:51:33 carstenklapp Exp $ -->
6 * Default to server's timezone if user's pref not chosen yet.
8 if ($PreftimeOffset = $request->getPref('timeOffset'))
9 $defaultOffset = $PreftimeOffset;
11 $defaultOffset = TimezoneOffset(false, true);
13 $yourTime = date('D, j M Y H:i:s ', time() + PrefTimezoneOffset()) . $defaultOffset;
16 * Generate the popup menu.
19 for ($z = -14; $z < 12; $z++) {
20 $tz_val = seconds2zoneOffset($z*60*60, true);
21 $tz_string = seconds2zoneOffset($z*60*60);
23 $selected = $defaultOffset == $tz_val ? array('selected' => 'selected') : array();
24 $select->pushContent(HTML::option(array_merge(array('value' => $tz_val),
30 $TimeZoneSelect = HTML("GMT ", HTML::select(array('name' => "pref[timeOffset]"), $select));
34 <form action="<?=WikiURL($page)?>" method="post">
35 <input type="hidden" name="pagename" value="<?=$request->getArg('pagename')?>" />
39 <td colspan="2"><h2><?=_("Edit Area Size")?></h2></td>
41 <td align="right"><?=_("Height")?></td>
43 <input type="text" name="pref[editHeight]" size="4" maxlength="4"
44 value="<?=$request->getPref('editHeight')?>" />
48 <td align="right"><?=_("Width")?></td>
50 <input type="text" name="pref[editWidth]" size="4" maxlength="4"
51 value="<?=$request->getPref('editWidth')?>" />
56 <td colspan="2"><h2><?=_("Time Zone")?></h2></td>
58 <td align="right"><?=_("Server time:")?></td>
59 <td><?= Rfc2822DateTime() ?></td>
61 <td align="right"><?=_("Your time:")?></td>
62 <td><?= $yourTime ?></td>
66 <?= $TimeZoneSelect ?>
69 <!--until timezone functions have been fully debugged-->
70 <td></td><td><small>Times converted to your zone will be marked with an asterisk (*).</small></td>
75 <?=Button("submit:", _("Update Preferences"))?>