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/computers/new_host.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ldap-site-mngmt/webinterface/computers/new_host.php') diff --git a/ldap-site-mngmt/webinterface/computers/new_host.php b/ldap-site-mngmt/webinterface/computers/new_host.php index 92184308..507fc0ac 100644 --- a/ldap-site-mngmt/webinterface/computers/new_host.php +++ b/ldap-site-mngmt/webinterface/computers/new_host.php @@ -32,11 +32,22 @@ $hostdesc = str_replace ( "_", " ", $_GET['hostdesc']); $mac = str_replace ( "_", " ", $_GET['mac']); $ip = str_replace ( "_", " ", $_GET['ip']); +# DHCP Einbindung +$objecttype = "nodhcp"; +$dhcp_selectbox = ""; +$altdhcp = alternative_dhcpobjects($objecttype,"",""); +if (count($altdhcp) != 0){ + foreach ($altdhcp as $item){ + $dhcp_selectbox .= " + "; + } +} $template->assign(array("HOSTNAME" => $hostname, "HOSTDESC" => $hostdesc, "MAC" => $mac, "IP" => $ip, + "DHCPSELECT" => $dhcp_selectbox, "MOUSE" => "", "GRAPHIC" => "", "MONITOR" => "", -- cgit v1.2.3-55-g7522