- small bugfix. Display date correctly

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@766 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Sebastian 15 years ago
parent 2dca007dbf
commit 283c563d84

@ -15,7 +15,7 @@
</tr> </tr>
<tr> <tr>
<td>{$PALANG.pUsersVacation_activefrom}:</td> <td>{$PALANG.pUsersVacation_activefrom}:</td>
<td><input name="fActiveFrom" value="{$fActiveFrom}" readonly="readonly" style="background:#eee;"/> <td><input name="fActiveFrom" value="{$tActiveFrom}" readonly="readonly" style="background:#eee;"/>
{literal} {literal}
<script language="JavaScript"> <script language="JavaScript">
new tcal ({ new tcal ({
@ -29,7 +29,7 @@
</tr> </tr>
<tr> <tr>
<td>{$PALANG.pUsersVacation_activeuntil}:</td> <td>{$PALANG.pUsersVacation_activeuntil}:</td>
<td><input name="fActiveUntil" value="{$fActiveUntil}" readonly="readonly" style="background:#eee;"/> <td><input name="fActiveUntil" value="{$tActiveUntil}" readonly="readonly" style="background:#eee;"/>
{literal} {literal}
<script language="JavaScript"> <script language="JavaScript">
new tcal ({ new tcal ({

@ -48,11 +48,15 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
{ {
$tSubject = ''; $tSubject = '';
$tBody = ''; $tBody = '';
$tActiveFrom = '';
$tActiveUntil = '';
$details = $vh->get_details(); $details = $vh->get_details();
if($details != false) { if($details != false) {
$tSubject = $details['subject']; $tSubject = $details['subject'];
$tBody = $details['body']; $tBody = $details['body'];
$fActiveFrom = $details['activeFrom'];
$fActiveUntil = $details['activeUntil'];
} }
if($vh->check_vacation()) { if($vh->check_vacation()) {
$tMessage = $PALANG['pUsersVacation_welcome_text']; $tMessage = $PALANG['pUsersVacation_welcome_text'];

Loading…
Cancel
Save