bernd commited on 2012-02-17 10:09:34
Zeige 1 geänderte Dateien mit 8 Einfügungen und 1 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@2199 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -18,7 +18,14 @@ if (count($certs) > 0) |
18 | 18 |
output("<table><tr><th>Name/Details</th><th>CommonName</th><th>Gültig ab</th><th>Gültig bis</th><th> </th></tr>"); |
19 | 19 |
foreach ($certs as $c) |
20 | 20 |
{ |
21 |
- output("<tr><td>".internal_link('showcert', $c['subject'], "mode=cert&id={$c['id']}")."</td><td>{$c['cn']}</td><td>{$c['valid_from']}</td><td>{$c['valid_until']}</td><td>".internal_link('refreshcert', '<img src="'.$prefix.'images/refresh.png" title="Neue Version des Zertifikats einspielen" />', 'id='.$c['id'])."   ".internal_link('savecert', '<img src="'.$prefix.'images/delete.png" />', 'action=delete&id='.$c['id'])."</td></tr>"); |
|
21 |
+ $style=""; |
|
22 |
+ if ($c['valid_until'] <= date('Y-m-d')) { |
|
23 |
+ $style=' style="background-color: #f88;" '; |
|
24 |
+ } |
|
25 |
+ elseif ($c['valid_until'] <= date('Y-m-d', time()+(30*24*3600))) { |
|
26 |
+ $style=' style="background-color: #ff8;" '; |
|
27 |
+ } |
|
28 |
+ output("<tr><td{$style}>".internal_link('showcert', $c['subject'], "mode=cert&id={$c['id']}")."</td><td{$style}>{$c['cn']}</td><td{$style}>{$c['valid_from']}</td><td{$style}>{$c['valid_until']}</td><td>".internal_link('refreshcert', '<img src="'.$prefix.'images/refresh.png" title="Neue Version des Zertifikats einspielen" />', 'id='.$c['id'])."   ".internal_link('savecert', '<img src="'.$prefix.'images/delete.png" />', 'action=delete&id='.$c['id'])."</td></tr>"); |
|
22 | 29 |
} |
23 | 30 |
output("</table>"); |
24 | 31 |
} |
25 | 32 |