bernd commited on 2009-06-19 10:14:10
Zeige 1 geänderte Dateien mit 5 Einfügungen und 1 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1399 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -36,7 +36,11 @@ foreach ($records AS $rec) |
36 | 36 |
$data .= ' ('.$rec['spec'].')'; |
37 | 37 |
} |
38 | 38 |
$ttl = ($rec['ttl'] ? $rec['ttl'] : 3600); |
39 |
- output("<tr><td>".internal_link('dns_record_edit', $rec['fqdn'], "id={$rec['id']}")."</td><td>".strtoupper($rec['type'])."</td><td>$data</td><td>{$ttl} Sek.</td><td>".internal_link('dns_record_save', '<img src="'.$prefix.'images/delete.png" width="16" height="16" alt="löschen" title="Record löschen" />', "id={$rec['id']}&action=delete")."</td></tr>\n"); |
|
39 |
+ $link = $rec['fqdn']; |
|
40 |
+ if (in_array($rec['type'], array('a', 'aaaa', 'mx', 'cname'))) { |
|
41 |
+ $link = internal_link('dns_record_edit', $rec['fqdn'], "id={$rec['id']}"); |
|
42 |
+ } |
|
43 |
+ output("<tr><td>{$link}</td><td>".strtoupper($rec['type'])."</td><td>$data</td><td>{$ttl} Sek.</td><td>".internal_link('dns_record_save', '<img src="'.$prefix.'images/delete.png" width="16" height="16" alt="löschen" title="Record löschen" />', "id={$rec['id']}&action=delete")."</td></tr>\n"); |
|
40 | 44 |
} |
41 | 45 |
foreach ($auto_records AS $rec) |
42 | 46 |
{ |
43 | 47 |