0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/templates/edit-vacation.tpl
Greg a5ce5620cf Made it possible for admins and superadmins to set a vacation message,
edit vacation messages, and remove them.

main.php added to admin directory so admin and / can share more
templates.

the new edit-vacation.php in admin and / are identical except
for template references

languages/en.lang and languages/default.lang are in sync now

I attempted to add some of the new .lang variables I created to
the spanish file (I don't know it that well, hope its OK)

fixed a bug in users/vacation.php

Added a "Main" menu item to the admin menu that gets you back to where
you started when you log in.



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@2 a1433add-5e2c-0410-b055-b7f2511e0802
2007-06-19 22:38:05 +00:00

45 lines
1.4 KiB
Smarty

<script type="text/javascript">
function newLocation()
{
window.location="<?php print $fCanceltarget; ?>"
}
</script>
<div id="edit_form">
<form name="edit-vacation" method="post">
<table>
<tr>
<td colspan="3"><h3><?php print $PALANG['pUsersVacation_welcome']; ?></h3></td>
</tr>
<tr>
<td><?php print $PALANG['pUsersLogin_username'] . ":"; ?></td>
<td><?php print $tUseremail; ?></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><?php print $PALANG['pUsersVacation_subject'] . ":"; ?></td>
<td><textarea class="flat" cols="60" name="fSubject" ><?php print $tSubject; ?></textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><?php print $PALANG['pUsersVacation_body'] . ":"; ?></td>
<td><textarea class="flat" rows="10" cols="60" name="fBody" ><?php print htmlentities($tBody,ENT_QUOTES); ?></textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3" class="hlp_center">
<input class="button" type="submit" name="fChange" value="<?php print $PALANG['pEdit_vacation_set']; ?>" />
<input class="button" type="submit" name="fBack" value="<?php print $PALANG['pEdit_vacation_remove']; ?>" />
<input class="button" type="button" name="fCancel" value="<?php print $PALANG['exit']; ?>" onclick="newLocation()" />
</td>
</tr>
<tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td>
</tr>
</table>
</form>
</div>