X-Git-Url: http://git.pjr.cc/?p=PHPIPManager.git;a=blobdiff_plain;f=lib%2Fwww.php;h=79409a8d88a45514e80aa6b3a80ec15c14d13a82;hp=1b8085de3286c07ef1a51c2de35c216634543446;hb=0264b5a42242521bd85ab2568f4bf23381df7a36;hpb=2569c990f8e6d6cd66bf85e0db5da9dcd671825a diff --git a/lib/www.php b/lib/www.php index 1b8085d..79409a8 100644 --- a/lib/www.php +++ b/lib/www.php @@ -1,6 +1,7 @@ // print_r($row); // echo "
"; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; // now we search for sub's echo "
".$row["sn_name"]."".$row["sn_ip"]."/".$row["sn_mask"]."".$row["sn_desc"]."Allocate SubnetDelete SupernetAllocate SubnetDelete Supernet

"; } @@ -130,7 +131,35 @@ function www_ip_addSuperRange() } else { header("Location: index.php?error=invalid ipaddress"); } +} + +function www_ip_allocateSubRange() +{ + global $db, $wwwConnector; + + $id = $_REQUEST["id"]; + + $res = $db->dbobject->query("select * from supernet where sn_id=='$id'"); + + foreach($res as $row) { + $sn = $row["sn_ip"]; + } + $wwwConnector->header(); + $wwwConnector->printError(); + ?> +sql is
+
+ + + + + + +
Subnet Name
Subnet IP
Subnet Mask
Description
+
+footer(); } ?> \ No newline at end of file