diff options
| author | Tarik Gasmi | 2007-05-14 10:03:48 +0200 |
|---|---|---|
| committer | Tarik Gasmi | 2007-05-14 10:03:48 +0200 |
| commit | 59cf91925ca8da43d2427331b23e4673b0e53095 (patch) | |
| tree | 871f39414143192cb3e8bd6f4bd2b7462e7076b9 /ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php | |
| parent | Some webinterface data. (diff) | |
| download | core-59cf91925ca8da43d2427331b23e4673b0e53095.tar.gz core-59cf91925ca8da43d2427331b23e4673b0e53095.tar.xz core-59cf91925ca8da43d2427331b23e4673b0e53095.zip | |
Other webinterface data.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1077 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php')
| -rw-r--r-- | ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php new file mode 100644 index 00000000..1104f496 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php @@ -0,0 +1,65 @@ +<?php + +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. +$mainnr = 5; +$mnr = 2; +$sbmnr = -1; +$mcnr = -1; +# 3. Dateiname und evtl. Pfad des Templates für die Webseite +$webseite = "dhcpsubnets.dwt"; + +include("../class.FastTemplate.php"); + +include('dhcp_header.inc.php'); + +################################################################################### + +# Menuleisten erstellen +createMainMenu($rollen, $mainnr); +createDhcpMenu($rollen, $mnr, $auDN, $sbmnr); + +################################################################################### + +$template->assign(array("SUBNETDN" => "", + "SUBNETCN" => "Noch keine Subnets angelegt", + "NETMASK" => "", + "DHCP" => "", + "RANGE" => "", + "HOSTS" => "")); + +# rbservice und pxe daten (voerst nur ein rbs) +$subnet_array = get_dhcpsubnets($auDN,array("dn","cn","dhcpoptnetmask","dhcprange","dhcphlpcont")); + +$template->define_dynamic("Subnets", "Webseite"); +foreach ($subnet_array as $subnet){ + $range = ""; + if ($subnet['dhcprange'] != ""){ + $exp = explode('_',$subnet['dhcprange']); + $range = $exp[0]." - ".$exp[1]; + } + if ($subnet['dhcphlpcont'] != ""){ + $exp = ldap_explode_dn($subnet['dhcphlpcont'],1); + $dhcpservice = $exp[0]." [".$exp[2]."]"; + }else{ + $dhcpservice = ""; + } + + $template->assign(array("SUBNETDN" => $subnet['dn'], + "SUBNETCN" => $subnet['cn'], + "NETMASK" => $subnet['dhcpoptnetmask'], + "DHCP" => $dhcpservice, + "RANGE" => $range, + "HOSTS" => "")); + $template->parse("SUBNETS_LIST", ".Subnets"); +} + + +################################################################################### + +include("dhcp_footer.inc.php"); + +?> |
