db_select($query); $smarty->assign("subnet_id", $subnet_id); $smarty->assign("subnet_address", $subnet[0]['subnet_address']); $smarty->assign("subnet_mask", $subnet[0]['subnet_mask']); // node $query = "SELECT node_id, node_ip FROM node WHERE subnet_id=" . $subnet_id . " ORDER BY INET_ATON(node_ip)"; $nodes = $db->db_select($query); $smarty->assign("nodes", $nodes); $smarty->display("subnetdel.tpl"); include("footer.php"); ?>