bernd commited on 2009-02-11 18:34:39
Zeige 14 geänderte Dateien mit 87 Einfügungen und 14 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1244 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -2,7 +2,7 @@ html { |
2 | 2 |
font-family: Verdana, Arial, Helvetica; |
3 | 3 |
font-size: 12px; |
4 | 4 |
color: #000000; |
5 |
- background-color: #EFEFEF; |
|
5 |
+ background-color: #fff; |
|
6 | 6 |
} |
7 | 7 |
|
8 | 8 |
|
... | ... |
@@ -10,7 +10,7 @@ body { |
10 | 10 |
font-family: Verdana, Arial, Helvetica, sans-serif; |
11 | 11 |
font-size: 12px; |
12 | 12 |
color: #000000; |
13 |
- background-color: #EFEFEF; |
|
13 |
+ background-color: #fff; |
|
14 | 14 |
} |
15 | 15 |
|
16 | 16 |
|
... | ... |
@@ -56,6 +56,7 @@ p.admininfo { |
56 | 56 |
|
57 | 57 |
p.userinfo { |
58 | 58 |
margin: 3px; |
59 |
+ margin-top: 1.5em; |
|
59 | 60 |
margin-bottom: 1.5em; |
60 | 61 |
padding: 0.5em; |
61 | 62 |
border: 1px solid black; |
... | ... |
@@ -132,6 +133,7 @@ div.menu img { |
132 | 133 |
} |
133 | 134 |
|
134 | 135 |
a.menuitem { |
136 |
+ font-weight: normal; |
|
135 | 137 |
display: block; |
136 | 138 |
padding: 4px; |
137 | 139 |
margin: 3px; |
... | ... |
@@ -144,15 +146,14 @@ a.submenuitem { |
144 | 146 |
} |
145 | 147 |
|
146 | 148 |
a.active { |
147 |
- padding: 3px; |
|
148 |
- border: 1px solid #000000; |
|
149 |
+ text-decoration: underline; |
|
150 |
+ font-weight: bold; |
|
151 |
+ color: #425d6c; |
|
149 | 152 |
} |
150 | 153 |
|
151 | 154 |
a.menuitem:hover { |
152 |
- padding: 3px; |
|
153 |
- border: 1px dotted #000000; |
|
154 |
- text-decoration: none; |
|
155 |
- color: #000000; |
|
155 |
+ text-decoration: underline; |
|
156 |
+ color: #425d6c; |
|
156 | 157 |
} |
157 | 158 |
|
158 | 159 |
|
... | ... |
@@ -197,17 +198,49 @@ div.content { |
197 | 198 |
margin-left: 200px; |
198 | 199 |
padding-left: 10px; |
199 | 200 |
border-left: 1px solid #000000; |
201 |
+ overflow: hidden; |
|
200 | 202 |
} |
201 | 203 |
|
204 |
+div.overview { |
|
205 |
+ margin: 2em; |
|
206 |
+ max-width: 50em; |
|
207 |
+} |
|
208 |
+ |
|
209 |
+div.overview div.block { |
|
210 |
+ float: left; |
|
211 |
+ margin: 1em; |
|
212 |
+ padding: 1em; |
|
213 |
+ /*background-color: #b2c2cb;*/ |
|
214 |
+ width: 10em; |
|
215 |
+ min-height: 5em; |
|
216 |
+ text-align: center; |
|
217 |
+ background-color: #eee; |
|
218 |
+} |
|
219 |
+ |
|
220 |
+div.overview div.block img { |
|
221 |
+ display: block; |
|
222 |
+ margin: 0 auto; |
|
223 |
+ margin-bottom: 1em; |
|
224 |
+} |
|
225 |
+ |
|
226 |
+/* |
|
227 |
+div.overview div.block a { |
|
228 |
+ color: #000; |
|
229 |
+} |
|
230 |
+*/ |
|
202 | 231 |
|
203 | 232 |
div.foot { |
204 |
- border-top: 2px dotted #000000; |
|
233 |
+ clear: both; |
|
234 |
+ border-top: 1px solid #425d6c; |
|
235 |
+ color: #425d6c; |
|
205 | 236 |
font-size: 90%; |
206 | 237 |
} |
207 | 238 |
|
208 | 239 |
|
209 | 240 |
h3 { |
210 |
- border-bottom: 2px dotted #000000; |
|
241 |
+ color: #425d6c; |
|
242 |
+ padding-bottom: 2px; |
|
243 |
+ border-bottom: 1px solid #425d6c; |
|
211 | 244 |
} |
212 | 245 |
|
213 | 246 |
|
... | ... |
@@ -219,6 +252,16 @@ table { |
219 | 252 |
border-collapse: collapse; |
220 | 253 |
} |
221 | 254 |
|
255 |
+tr.odd td, |
|
256 |
+tr.even td { |
|
257 |
+ border: none; |
|
258 |
+ padding: 0.5em 0.5em; |
|
259 |
+} |
|
260 |
+ |
|
261 |
+tr.odd { |
|
262 |
+ background: #eee; |
|
263 |
+} |
|
264 |
+ |
|
222 | 265 |
td { |
223 | 266 |
border: 1px solid black; |
224 | 267 |
padding: 0.5em; |
... | ... |
@@ -230,7 +273,8 @@ th { |
230 | 273 |
|
231 | 274 |
a { |
232 | 275 |
text-decoration: none; |
233 |
- font-weight: bold; |
|
276 |
+ /*font-weight: bold;*/ |
|
277 |
+ color: #425d6c; |
|
234 | 278 |
|
235 | 279 |
} |
236 | 280 |
|
... | ... |
@@ -142,7 +142,7 @@ function check_form_token($form_id, $formtoken = NULL) |
142 | 142 |
|
143 | 143 |
|
144 | 144 |
|
145 |
-function internal_link($file, $label, $querystring = '') |
|
145 |
+function internal_link($file, $label, $querystring = '', $attribs = '') |
|
146 | 146 |
{ |
147 | 147 |
$debugstr = ''; |
148 | 148 |
global $debugmode; |
... | ... |
@@ -150,7 +150,7 @@ function internal_link($file, $label, $querystring = '') |
150 | 150 |
$debugstr = 'debug&'; |
151 | 151 |
$querystring = str_replace('&', '&', $querystring); |
152 | 152 |
|
153 |
- return "<a href=\"{$file}?{$debugstr}${querystring}\">{$label}</a>"; |
|
153 |
+ return "<a href=\"{$file}?{$debugstr}${querystring}\" {$attribs} >{$label}</a>"; |
|
154 | 154 |
} |
155 | 155 |
|
156 | 156 |
|
... | ... |
@@ -42,7 +42,35 @@ default: |
42 | 42 |
|
43 | 43 |
|
44 | 44 |
output('<h3>Administration</h3> |
45 |
-<p>Herzlich willkommen, '.$role.'.</p>'); |
|
45 |
+<p>Herzlich willkommen, '.$role.".</p>\n"); |
|
46 | 46 |
|
47 |
+output("<p>Auf der linken Seite sehen Sie ein Auswahlmenü mit den Funktionen, die Ihnen in diesem Webinterface zur Verfügung stehen.</p> |
|
48 |
+<p>Nachfolgend sehen Sie eine Auswahl typischer Aufgaben.</p>\n"); |
|
49 |
+ |
|
50 |
+output("<div class=\"overview\">"); |
|
51 |
+ |
|
52 |
+if ($_SESSION['role'] & ROLE_MAILACCOUNT || $_SESSION['role'] & ROLE_VMAIL_ACCOUNT) { |
|
53 |
+ output("<div class=\"block\">".internal_link("../email/chpass", "<img src=\"{$prefix}images/pwchange.png\" alt=\"\" /> Passwort ändern ")."</div>"); |
|
54 |
+} |
|
55 |
+ |
|
56 |
+if ($_SESSION['role'] & ROLE_CUSTOMER || $_SESSION['role'] & ROLE_SYSTEMUSER) { |
|
57 |
+ output("<div class=\"block\">".internal_link("chpass", "<img src=\"{$prefix}images/pwchange.png\" alt=\"\" /> Passwort ändern ")."</div>"); |
|
58 |
+} |
|
59 |
+ |
|
60 |
+if ($_SESSION['role'] & ROLE_CUSTOMER) { |
|
61 |
+ output("<div class=\"block\">".internal_link("../invoice/current", "<img src=\"{$prefix}images/invoice.png\" alt=\"\" /> Ihre Rechnungen ")."</div>"); |
|
62 |
+} |
|
63 |
+ |
|
64 |
+if ($_SESSION['role'] & ROLE_SYSTEMUSER) { |
|
65 |
+ output("<div class=\"block\">".internal_link("../email/vmail", "<img src=\"{$prefix}images/email.png\" alt=\"\" /> E-Mail-Adressen verwalten ")."</div>"); |
|
66 |
+ output("<div class=\"block\">".internal_link("../vhosts/vhosts", "<img src=\"{$prefix}images/webserver.png\" alt=\"\" /> Webserver-Einstellungen ")."</div>"); |
|
67 |
+ output("<div class=\"block\">".internal_link("../mysql/databases", "<img src=\"{$prefix}images/mysql.png\" alt=\"\" /> MySQL-Datenbanken ")."</div>"); |
|
68 |
+} |
|
69 |
+ |
|
70 |
+if ($_SESSION['role'] & ROLE_CUSTOMER) { |
|
71 |
+ output("<div class=\"block\">".internal_link("../jabber/accounts", "<img src=\"{$prefix}images/jabber.png\" alt=\"\" /> Jabber-Accounts ")."</div>"); |
|
72 |
+} |
|
73 |
+ |
|
74 |
+output("</div>"); |
|
47 | 75 |
|
48 | 76 |
?> |
49 | 77 |