PostfixAdmin - web based virtual user administration interface for Postfix mail servers https://postfixadmin.github.io/postfixadmin/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.9 KiB

  1. <?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
  2. <div id="edit_form">
  3. <form name="alias_domain" method="post">
  4. <table>
  5. <tr>
  6. <td colspan="3"><h3><?php print $PALANG['pCreate_alias_domain_welcome']; ?></h3></td>
  7. </tr>
  8. <?php
  9. if (count($alias_domains) > 0) {
  10. ?>
  11. <tr>
  12. <td><?php print $PALANG['pCreate_alias_domain_alias'] . ":"; ?></td>
  13. <td>
  14. <select class="flat" name="alias_domain">
  15. <?php
  16. foreach ($alias_domains as $dom)
  17. {
  18. print "<option value=\"$dom\"".(($fAliasDomain == $dom) ? ' selected' : '').">$dom</option>\n";
  19. }
  20. ?>
  21. </select>
  22. <td><?php print $PALANG['pCreate_alias_domain_alias_text']; ?></td>
  23. </tr>
  24. <tr>
  25. <td><?php print $PALANG['pCreate_alias_domain_target'] . ":"; ?></td>
  26. <td>
  27. <select class="flat" name="target_domain">
  28. <?php
  29. foreach ($target_domains as $dom)
  30. {
  31. print "<option value=\"$dom\"".(($fTargetDomain == $dom) ? ' selected' : '').">$dom</option>\n";
  32. }
  33. ?>
  34. </select>
  35. <td><?php print $PALANG['pCreate_alias_domain_target_text']; ?></td>
  36. </tr>
  37. <tr>
  38. <td><?php print $PALANG['pCreate_alias_domain_active'] . ":"; ?></td>
  39. <td><input class="flat" type="checkbox" name="active" value="1"<?php if ($fActive) { print ' checked'; } ?> /></td>
  40. <td>&nbsp;</td>
  41. </tr>
  42. <?php
  43. }
  44. ?>
  45. <tr>
  46. <td colspan="3" class="standout"><?php if ($error) { print '<span class="error_msg">'; } print $tMessage; if ($error) { print '</span>'; } ?></td>
  47. </tr>
  48. <?php
  49. if (count($alias_domains) > 0) {
  50. ?>
  51. <tr>
  52. <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pCreate_alias_domain_button']; ?>" /></td>
  53. </tr>
  54. <?php
  55. }
  56. ?>
  57. </table>
  58. </form>
  59. </div>
  60. <?php /* vim: set ft=php expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?>