bernd commited on 2007-08-13 13:16:31
Zeige 1 geänderte Dateien mit 24 Einfügungen und 18 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@627 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -22,11 +22,11 @@ output("<h3>Aliasnamen für Subdomain bearbeiten</h3>"); |
22 | 22 |
|
23 | 23 |
$mainalias = (strstr($vhost['options'], 'aliaswww') ? '<br /><strong>www.'.$vhost['fqdn'].'</strong>' : ''); |
24 | 24 |
|
25 |
-output(" |
|
25 |
+$form = " |
|
26 | 26 |
<table> |
27 | 27 |
<tr><th>Adresse</th><th>Verhalten</th><th> </th></tr> |
28 | 28 |
<tr><td><strong>{$vhost['fqdn']}</strong>{$mainalias}</td><td>Haupt-Adresse</td><td> </td></tr> |
29 |
-"); |
|
29 |
+"; |
|
30 | 30 |
|
31 | 31 |
foreach ($aliases AS $alias) { |
32 | 32 |
$aliastype = 'Zusätzliche Adresse'; |
... | ... |
@@ -43,33 +43,39 @@ foreach ($aliases AS $alias) { |
43 | 43 |
$typetoggle = (strstr($alias['options'], 'forward') ? $remove_forward : $to_forward); |
44 | 44 |
|
45 | 45 |
|
46 |
- output("<tr> |
|
46 |
+ $form .= "<tr> |
|
47 | 47 |
<td>{$alias['fqdn']}{$wwwalias}</td> |
48 | 48 |
<td>{$aliastype}<br />{$typetoggle}</td> |
49 | 49 |
<td>".internal_link('save.php', 'Aliasname löschen', "action=deletealias&alias={$alias['id']}")."</td></tr> |
50 |
- "); |
|
50 |
+ "; |
|
51 | 51 |
} |
52 | 52 |
|
53 |
-output('</table>'); |
|
54 |
- |
|
55 |
- |
|
56 |
-output(html_form('vhosts_add_alias', 'save.php', 'action=addalias&vhost='.$vhost['id'], " |
|
57 |
-<div style=\"margin-top: 1em; padding: 1em;\"> |
|
58 |
-<h4>Neuen Aliasnamen hinzufügen</h4> |
|
59 |
-<p> |
|
53 |
+$form .= " |
|
54 |
+<tr> |
|
55 |
+ <td> |
|
56 |
+ <strong>Neuen Aliasnamen hinzufügen</strong><br /> |
|
60 | 57 |
<input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" value=\"\" /> |
61 | 58 |
<strong>.</strong>".domainselect()."<br /> |
62 | 59 |
<input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" value=\"aliaswww\" /> |
63 |
- <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label><br /> |
|
64 |
- Modus: <select name=\"options[]\"> |
|
60 |
+ <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label> |
|
61 |
+ </td> |
|
62 |
+ <td> |
|
63 |
+ <select name=\"options[]\"> |
|
65 | 64 |
<option value=\"\">zusätzliche Adresse</option> |
66 | 65 |
<option value=\"forward\">Umleitung auf Haupt-Adresse</option> |
67 | 66 |
</select> |
68 |
-</p> |
|
69 |
-<p> |
|
70 |
- <input type=\"submit\" value=\"Hinzufügen\" /></p> |
|
71 |
-</div> |
|
72 |
-")); |
|
67 |
+ </td> |
|
68 |
+ <td> |
|
69 |
+ <input type=\"submit\" value=\"Hinzufügen\" /> |
|
70 |
+ </td> |
|
71 |
+</tr> |
|
72 |
+</table>"; |
|
73 |
+ |
|
74 |
+output(html_form('vhosts_add_alias', 'save.php', 'action=addalias&vhost='.$vhost['id'], $form)); |
|
75 |
+ |
|
76 |
+output("<p> |
|
77 |
+ <a href=\"vhosts.php\">Zurück zur Übersicht</a> |
|
78 |
+</p>"); |
|
73 | 79 |
|
74 | 80 |
|
75 | 81 |
?> |
76 | 82 |