> </td> <td><?php echo $hostname; ?> </td> <td><?php echo $ip; ?> </td> </tr> <?php } } if ($net_list = getNetList()) { ?> <tr> <th width="70px"> <button class="th" id="all" onclick="onClickAllNet()">+</button>/ <button class="th" id="inv" onclick="onClickInvNet()">-</button> </th> <th><?php echo gettext('Netname'); ?> </th> <th><?php echo gettext('IPs'); ?> </th> </tr>
$already = array(); $i = 0; foreach ($port_list as $port) { if ($i > 100) { continue; } $port_number = $port->get_port_number(); if (!$already[$port_number]) { echo "{$port_number}={$port_number}\n"; $i++; } $already[$port_number]++; } } else { $host_list = getHostList(); $net_list = getNetList(); if (count($host_list) + count($net_list) > 100) { echo "Total=" . (count($host_list) + count($net_list)) . "\n"; } $i = 0; foreach ($host_list as $host) { if ($i > 100) { continue; } $hostname = $host->get_hostname(); $ip = $host->get_ip(); if ($from == 'ANY') { $checked = ' checked="checked"'; } elseif (in_array($ip, split(',', $from_list))) { $checked = $default_checked == '' ? ' checked="checked"' : ''; } else {