0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
postfixadmin/templates/users_edit-alias.tpl
Mischa Peters 85dc57beee Initial Import in SourceForge
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1 a1433add-5e2c-0410-b055-b7f2511e0802
2007-03-24 07:27:00 +00:00

61 lines
1.7 KiB
Smarty

<div id="edit_form">
<form name="alias" method="post">
<table>
<tr>
<td colspan="3"><h3><?php print $PALANG['pEdit_alias_welcome']; ?></h3></td>
</tr>
<tr>
<td><?php print $PALANG['pEdit_alias_address'] . ":"; ?></td>
<td><?php print $USERID_USERNAME; ?></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><?php print $PALANG['pEdit_alias_goto'] . ":"; ?></td>
<td><textarea class="flat" rows="4" cols="30" name="fGoto">
<?php
$array = preg_split ('/,/', $tGoto);
if (!in_array($USERID_USERNAME,$array))
{
$just_forward="YES";
}
else
{
$just_forward="NO";
}
for ($i = 0 ; $i < sizeof ($array) ; $i++)
{
if (empty ($array[$i])) continue;
if ($array[$i] == "$USERID_USERNAME@$vacation_domain")
{
$vacation = "YES";
continue;
}
print "$array[$i]\n";
}
?>
</textarea>
<input type="hidden" name="fVacation" value="<?php print $vacation; ?>">
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2">
<input class="flat" type="radio" name="fForward_and_store" value="YES" <?php ($just_forward=="NO") ? print 'checked' : ''; ?> />
<?php print $PALANG['pEdit_alias_forward_and_store']; ?><br />
<input class="flat" type="radio" name="fForward_and_store" value="NO" <?php ($just_forward=="YES") ? print 'checked' : ''; ?> />
<?php print $PALANG['pEdit_alias_forward_only']; ?>
</td>
</tr>
<tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pEdit_alias_button']; ?>"></td>
</tr>
<tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td>
</tr>
</table>
</form>
</div>