|
|
@@ -45,25 +45,25 @@ print_editdevice_submenu($page_url,$id,$device['device_type'],$user_info['login'
|
|
|
</b> <br>
|
|
|
<table class="data">
|
|
|
<tr align="center">
|
|
|
- <td></td>
|
|
|
- <td width=30><b>id</b></td>
|
|
|
- <td><b><?php echo WEB_network_subnet; ?></b></td>
|
|
|
- <td>
|
|
|
- <input type="submit" onclick="return confirm('<?php print WEB_msg_delete; ?>?')" name="s_remove" value="<?php print WEB_btn_remove; ?>">
|
|
|
- </td>
|
|
|
+ <td></td>
|
|
|
+ <td width=10><b>id</b></td>
|
|
|
+ <td><b><?php echo WEB_network_subnet; ?></b></td>
|
|
|
+ <td>
|
|
|
+ <input type="submit" onclick="return confirm('<?php print WEB_msg_delete; ?>?')" name="s_remove" value="<?php print WEB_btn_remove; ?>">
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<?php
|
|
|
-$gateway_subnets = get_records_sql($db_link,'SELECT gateway_subnets.*,subnets.subnet,subnets.comment FROM gateway_subnets LEFT JOIN subnets ON gateway_subnets.subnet_id = subnets.id WHERE gateway_subnets.device_id='.$id.' ORDER BY subnets.subnet ASC');
|
|
|
+$gateway_subnets = get_records_sql($db_link,'SELECT gateway_subnets.*,subnets.subnet,subnets.comment FROM gateway_subnets LEFT JOIN subnets ON gateway_subnets.subnet_id = subnets.id WHERE gateway_subnets.device_id='.$id);
|
|
|
foreach ( $gateway_subnets as $row ) {
|
|
|
print "<tr align=center>\n";
|
|
|
- print "<td class=\"data\" style='padding:0'><input type=checkbox name=gs_id[] value='{$row['id']}'></td>\n";
|
|
|
+ print "<td class=\"data\" style='padding:0' width=30><input type=checkbox name=gs_id[] value='{$row['id']}'></td>\n";
|
|
|
print "<td class=\"data\"><input type=\"hidden\" name='n_id[]' value='{$row['id']}'>{$row['id']}</td>\n";
|
|
|
- print "<td class=\"data\">".get_subnet_description($db_link,$row['subnet_id'])."</td>\n";
|
|
|
- print "</tr>\n";
|
|
|
+ print "<td class=\"data\">"; print get_subnet_description($db_link,$row['subnet_id']); print "</td>\n";
|
|
|
+ print "<td></td></tr>\n";
|
|
|
}
|
|
|
?>
|
|
|
<tr>
|
|
|
-<td colspan=2><?php print WEB_btn_add; print_gateway_select($db_link,"new_subnet",$id); ?>
|
|
|
+<td colspan=3><?php print WEB_btn_add; print_add_gw_subnets($db_link,$id,"new_subnet"); ?>
|
|
|
</td>
|
|
|
<td>
|
|
|
<input type="submit" name="s_create" value="<?php echo WEB_btn_add; ?>">
|