Révision f11afbf7
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/diag_states_summary.php | ||
---|---|---|
136 | 136 |
function print_summary_table($label, $iparr, $sort = TRUE) { ?> |
137 | 137 |
|
138 | 138 |
<h3><?php echo $label; ?></h3> |
139 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
139 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="states summary">
|
|
140 | 140 |
<tr> |
141 | 141 |
<td class="listhdrr"><?=gettext("IP");?></td> |
142 | 142 |
<td class="listhdrr"># <?=gettext("States");?></td> |
... | ... | |
149 | 149 |
uksort($iparr, "sort_by_ip"); |
150 | 150 |
foreach($iparr as $ip => $ipinfo) { ?> |
151 | 151 |
<tr> |
152 |
<td class='vncell'><?php echo $ip; ?></td>
|
|
153 |
<td class='vncell'><?php echo $ipinfo['seen']; ?></td>
|
|
154 |
<td class='vncell'> </td>
|
|
155 |
<td class='vncell'> </td>
|
|
156 |
<td class='vncell'> </td>
|
|
157 |
<td class='vncell'> </td>
|
|
152 |
<td class="vncell"><?php echo $ip; ?></td>
|
|
153 |
<td class="vncell"><?php echo $ipinfo['seen']; ?></td>
|
|
154 |
<td class="vncell"> </td>
|
|
155 |
<td class="vncell"> </td>
|
|
156 |
<td class="vncell"> </td>
|
|
157 |
<td class="vncell"> </td>
|
|
158 | 158 |
</tr> |
159 | 159 |
<?php foreach($ipinfo['protos'] as $proto => $protoinfo) { ?> |
160 | 160 |
<tr> |
161 |
<td class='list'> </td>
|
|
162 |
<td class='list'> </td>
|
|
163 |
<td class='listlr'><?php echo $proto; ?></td>
|
|
164 |
<td class='listr' align="center"><?php echo $protoinfo['seen']; ?></td>
|
|
165 |
<td class='listr' align="center"><span title="<?php echo build_port_info($protoinfo['srcports'], $proto); ?>"><?php echo count($protoinfo['srcports']); ?></span></td>
|
|
166 |
<td class='listr' align="center"><span title="<?php echo build_port_info($protoinfo['dstports'], $proto); ?>"><?php echo count($protoinfo['dstports']); ?></span></td>
|
|
161 |
<td class="list"> </td>
|
|
162 |
<td class="list"> </td>
|
|
163 |
<td class="listlr"><?php echo $proto; ?></td>
|
|
164 |
<td class="listr" align="center"><?php echo $protoinfo['seen']; ?></td>
|
|
165 |
<td class="listr" align="center"><span title="<?php echo build_port_info($protoinfo['srcports'], $proto); ?>"><?php echo count($protoinfo['srcports']); ?></span></td>
|
|
166 |
<td class="listr" align="center"><span title="<?php echo build_port_info($protoinfo['dstports'], $proto); ?>"><?php echo count($protoinfo['dstports']); ?></span></td>
|
|
167 | 167 |
</tr> |
168 | 168 |
<?php } ?> |
169 | 169 |
<?php } ?> |
... | ... | |
176 | 176 |
$pgtitle = array(gettext("Diagnostics"),gettext("State Table Summary")); |
177 | 177 |
require_once("guiconfig.inc"); |
178 | 178 |
include("head.inc"); |
179 |
echo "<body>"; |
|
179 | 180 |
include("fbegin.inc"); |
180 | 181 |
|
181 | 182 |
|
... | ... | |
186 | 187 |
?> |
187 | 188 |
|
188 | 189 |
<?php include("fend.inc"); ?> |
190 |
</body> |
|
191 |
</html> |
Formats disponibles : Unified diff
Tidy up "diag_states_summary.php" XHTML
Add SUMMARY to TABLES
Update single quotes to double quotes in HTML
Add missing BODY, closing BODY and closing HTML tags