You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
970 B

<!DOCTYPE html>
<head>
<title>DHCP web-viewer</title>
</head>
<html>
<body>
<a href="/hosts/">отчет по занятым хостам</a>
<h1>Leases report</h1>
<br /><br />
<table border="1">
<caption>Таблица аренды адресов</caption>
<tr>
<th>IP адрес</th>
<th>Имя хоста</th>
<th>Mac адрес</th>
<th>адрес арендован</th>
</tr>
%for a in A:
<tr>
%for i in a:
<td>
%if i == '-':
<font size="5" color="red" face="Arial">-</font>
%end
%if i == '+':
<font size="5" color="green" face="Arial">+</font>
%end
%if not i == '+' and not i == '-':
{{i}}
%end
</td>
%end
</tr>
%end
</table>
</body>
</html>

Powered by TurnKey Linux.