File: create-alias-domain.php

package info (click to toggle)
postfixadmin 2.3.5-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,200 kB
  • sloc: php: 25,767; xml: 14,485; perl: 964; sh: 664; python: 169; makefile: 84
file content (62 lines) | stat: -rw-r--r-- 1,912 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
<div id="edit_form">
<form name="alias_domain" method="post">
<table>
   <tr>
      <td colspan="3"><h3><?php print $PALANG['pCreate_alias_domain_welcome']; ?></h3></td>
   </tr>

<?php
if (count($alias_domains) > 0) {
?>

   <tr>
      <td><?php print $PALANG['pCreate_alias_domain_alias'] . ":"; ?></td>
      <td>
      <select class="flat" name="alias_domain">
      <?php
      foreach ($alias_domains as $dom)
      {
         print "<option value=\"$dom\"".(($fAliasDomain == $dom) ? ' selected' : '').">$dom</option>\n";
      }
      ?>
      </select>
      <td><?php print $PALANG['pCreate_alias_domain_alias_text']; ?></td>
   </tr>
   <tr>
      <td><?php print $PALANG['pCreate_alias_domain_target'] . ":"; ?></td>
      <td>
      <select class="flat" name="target_domain">
      <?php
      foreach ($target_domains as $dom)
      {
         print "<option value=\"$dom\"".(($fTargetDomain == $dom) ? ' selected' : '').">$dom</option>\n";
      }
      ?>
      </select>
      <td><?php print $PALANG['pCreate_alias_domain_target_text']; ?></td>
   </tr>
   <tr>
      <td><?php print $PALANG['pCreate_alias_domain_active'] . ":"; ?></td>
      <td><input class="flat" type="checkbox" name="active" value="1"<?php if ($fActive) { print ' checked'; } ?> /></td>
      <td>&nbsp;</td>
   </tr>
<?php
}
?>
   <tr>
      <td colspan="3" class="standout"><?php if ($error) { print '<span class="error_msg">'; } print $tMessage; if ($error) { print '</span>'; } ?></td>
   </tr>
<?php
if (count($alias_domains) > 0) {
?>
   <tr>
      <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pCreate_alias_domain_button']; ?>" /></td>
   </tr>
<?php
}
?>
</table>
</form>
</div>
<?php /* vim: set ft=php expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?>