bernd commited on 2007-12-05 11:56:05
Zeige 1 geänderte Dateien mit 36 Einfügungen und 2 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@835 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -51,6 +51,25 @@ output("<script type=\"text/javascript\"> |
51 | 51 |
document.getElementById('docroot').value = document.getElementById('defaultdocroot').firstChild.nodeValue; |
52 | 52 |
} |
53 | 53 |
} |
54 |
+ |
|
55 |
+ function showAppropriateLines() { |
|
56 |
+ if (document.getElementById('vhost_type_regular').checked == true) { |
|
57 |
+ document.getElementById('block_webapp').style.display = 'none'; |
|
58 |
+ document.getElementById('block_localpath').style.display = ''; |
|
59 |
+ document.getElementById('block_php').style.display = ''; |
|
60 |
+ } |
|
61 |
+ else if ((document.getElementById('vhost_type_dav').checked == true) || |
|
62 |
+ (document.getElementById('vhost_type_svn').checked == true)) { |
|
63 |
+ document.getElementById('block_webapp').style.display = 'none'; |
|
64 |
+ document.getElementById('block_localpath').style.display = 'none'; |
|
65 |
+ document.getElementById('block_php').style.display = 'none'; |
|
66 |
+ } |
|
67 |
+ else if (document.getElementById('vhost_type_webapp').checked == true) { |
|
68 |
+ document.getElementById('block_webapp').style.display = ''; |
|
69 |
+ document.getElementById('block_localpath').style.display = 'none'; |
|
70 |
+ document.getElementById('block_php').style.display = 'none'; |
|
71 |
+ } |
|
72 |
+ } |
|
54 | 73 |
</script>"); |
55 | 74 |
|
56 | 75 |
$defaultdocroot = $vhost['domain']; |
... | ... |
@@ -77,12 +96,27 @@ $form = " |
77 | 96 |
<tr><td>Name</td> |
78 | 97 |
<td><input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" value=\"{$vhost['hostname']}\" onchange=\"defaultDocumentRoot()\" /><strong>.</strong>".domainselect($vhost['domain_id'], 'onchange="defaultDocumentRoot()"'); |
79 | 98 |
$form .= "<br /><input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" value=\"aliaswww\" {$s}/> <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label></td><td><em>keiner</em></td></tr> |
80 |
- <tr><td>Lokaler Pfad</td> |
|
99 |
+ <tr><td>Verwendung</td> |
|
100 |
+ <td> |
|
101 |
+ <input onclick=\"showAppropriateLines()\" type=\"radio\" name=\"vhost_type\" id=\"vhost_type_regular\" value=\"regular\" /><label for=\"vhost_type_regular\"> Normal (selbst Dateien hinterlegen)</label><br /> |
|
102 |
+ <input onclick=\"showAppropriateLines()\" type=\"radio\" name=\"vhost_type\" id=\"vhost_type_dav\" value=\"dav\" /><label for=\"vhost_type_dav\"> WebDAV</label><br /> |
|
103 |
+ <input onclick=\"showAppropriateLines()\" type=\"radio\" name=\"vhost_type\" id=\"vhost_type_svn\" value=\"svn\" /><label for=\"vhost_type_svn\"> Subversion-Server</label><br /> |
|
104 |
+ <input onclick=\"showAppropriateLines()\" type=\"radio\" name=\"vhost_type\" id=\"vhost_type_webapp\" value=\"webapp\" /><label for=\"vhost_type_webapp\"> Eine vorgefertigte Applikation nutzen</label> |
|
105 |
+ </td> |
|
106 |
+ <td> </td> |
|
107 |
+ </tr> |
|
108 |
+ <tr id=\"block_webapp\"> |
|
109 |
+ <td>Vorgefertigte Applikation</td> |
|
110 |
+ <td><select name=\"webapp\" size=\"1\"><option value=\"drupal-5\">Drupal 5.x</option></select> |
|
111 |
+ </td> |
|
112 |
+ <td> </td> |
|
113 |
+ </tr> |
|
114 |
+ <tr id=\"block_localpath\"><td>Lokaler Pfad</td> |
|
81 | 115 |
<td><input type=\"checkbox\" id=\"use_default_docroot\" name=\"use_default_docroot\" value=\"1\" onclick=\"useDefaultDocroot()\" ".($is_default_docroot ? 'checked="checked" ' : '')."/> <label for=\"use_default_docroot\">Standardeinstellung benutzen</label><br /> |
82 | 116 |
<strong>".$vhost['homedir']."/</strong> <input type=\"text\" id=\"docroot\" name=\"docroot\" size=\"30\" value=\"".$docroot."\" ".($is_default_docroot ? 'disabled="disabled" ' : '')."/> |
83 | 117 |
</td> |
84 | 118 |
<td id=\"defaultdocroot\">{$defaultdocroot}</td></tr> |
85 |
- <tr><td>PHP</td> |
|
119 |
+ <tr id=\"block_php\"><td>PHP</td> |
|
86 | 120 |
<td><select name=\"php\" id=\"php\"> |
87 | 121 |
<option value=\"none\" ".($vhost['php'] == NULL ? 'selected="selected"' : '')." >kein PHP</option> |
88 | 122 |
<option value=\"mod_php\" ".($vhost['php'] == 'mod_php' ? 'selected="selected"' : '')." >als Apache-Modul</option> |
89 | 123 |