From 12183ece8e4cb1bb81072a72f696572c8b3a07ee Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Tue, 18 Sep 2007 15:18:38 +0000 Subject: ldap-site-mngmt: actualized WebIF and DHCPConfig Generationscript git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1340 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/dhcp/dhcppool.php | 125 ++++++++++++++++++++----- 1 file changed, 100 insertions(+), 25 deletions(-) (limited to 'ldap-site-mngmt/webinterface/dhcp/dhcppool.php') diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcppool.php b/ldap-site-mngmt/webinterface/dhcp/dhcppool.php index dd648f49..2d7da0ff 100644 --- a/ldap-site-mngmt/webinterface/dhcp/dhcppool.php +++ b/ldap-site-mngmt/webinterface/dhcp/dhcppool.php @@ -3,7 +3,7 @@ include('../standard_header.inc.php'); # 1. Seitentitel - wird in der Titelleiste des Browser angezeigt. $titel = "DHCP Service Management"; -# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc. +# 2. Nummern der zugehörigen Menus. $mainnr = 5; $mnr = 3; $sbmnr = -1; @@ -11,7 +11,6 @@ $sbmnr = -1; $webseite = "dhcppool.dwt"; include("../class.FastTemplate.php"); - include('dhcp_header.inc.php'); @@ -28,36 +27,119 @@ include("ip_blocks.inc.php"); ################################################################################### -$template->assign(array("POOLDN" => "", +$template->define_dynamic("Poolform", "Webseite"); +$template->assign(array("POOLFORMULAR" => "", + #"POOLDN" => "", "CN" => "", "SUBNETDN" => "", - "SUBNET" => "", - "RANGE1" => "", - "RANGE2" => "", + #"SUBNET" => "", + #"RANGE1" => "", + #"RANGE2" => "", "DESCRIPTION" => "", "STATEMENTS" => "", - "ALLOW" => "", - "DENY" => "", - "IGNORE" => "", "DEFAULTLEASE" => "", "MAXLEASE" => "", "MNR" => $mnr)); -# DHCP Subnet Daten -#$dhcppoolDN = $_GET['dn']; +# DHCP Pools Daten holen $attributes = array("dn","cn","dhcphlpcont","dhcprange","description","dhcpstatements","dhcpoptallow", "dhcpoptdefault-lease-time","dhcpoptdeny","dhcpoptignore","dhcpoptmax-lease-time", "dhcpoptgeneric"); $pools = get_dhcppools($auDN, $attributes); #print_r($pools); + +if (count($pools) != 0){ + + + +$poolform = " +