Browse code

Usability fix

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@627 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on13/08/2007 13:16:31
Showing1 changed files
... ...
@@ -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>&nbsp;</th></tr>
28 28
     <tr><td><strong>{$vhost['fqdn']}</strong>{$mainalias}</td><td>Haupt-Adresse</td><td>&nbsp;</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>
60
-  <input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" value=\"\" />
61
-    <strong>.</strong>".domainselect()."<br />
62
-  <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[]\">
65
-    <option value=\"\">zusätzliche Adresse</option>
66
-    <option value=\"forward\">Umleitung auf Haupt-Adresse</option>
67
-  </select>
68
-</p>
69
-<p>
70
-  <input type=\"submit\" value=\"Hinzufügen\" /></p>
71
-</div>
72
-"));
53
+$form .= "
54
+<tr>
55
+  <td>
56
+    <strong>Neuen Aliasnamen hinzufügen</strong><br />
57
+    <input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" value=\"\" />
58
+      <strong>.</strong>".domainselect()."<br />
59
+    <input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" value=\"aliaswww\" />
60
+      <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label>
61
+  </td>
62
+  <td>
63
+    <select name=\"options[]\">
64
+      <option value=\"\">zusätzliche Adresse</option>
65
+      <option value=\"forward\">Umleitung auf Haupt-Adresse</option>
66
+    </select>
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
 ?>