$mcnr = -1;
###################################################################################
$sbmnr = $_GET['sbmnr'];
# Menuleisten erstellen
createMainMenu($rollen, $mainnr);
createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr);
###################################################################################
$hostDN = "HostName=" . $_GET['host'] . ",cn=computers," . $auDN;
# Rechner Daten
$attributes = array("hostname", "domainname", "ipaddress", "hwaddress", "description", "hlprbservice", "dhcphlpcont", "dhcpoptfixed-address", "dhcpopthardware", "dhcpoptfilename", "dhcpoptnext-server", "hw-mouse", "hw-graphic", "hw-monitor");
$host = get_node_data($hostDN, $attributes);
$rbsDN = $host['hlprbservice'];
if ($rbsDN) {
    $exprbs = ldap_explode_dn($rbsDN, 1);
    # Rechnerspezifische PXEs
    $hostpxeconfigs = get_pxeconfigs2($hostDN, array("dn", "cn", "description", "timerange"));
    $pxehost = "<tr>\n\t\t\t\t\t\t<td colspan='3' width='50%' class='tab_h'>\n\t\t\t\t\t\t<b>Client <code class='font_object'> " . $host['hostname'] . " \n\t\t\t\t\t\t</code> - spezifische PXE Konfigurationen (Bootmen&uuml;s)</b></td>\n\t\t\t\t\t</tr>";
    if (count($hostpxeconfigs) != 0) {
        for ($i = 0; $i < count($hostpxeconfigs); $i++) {
            $pxelink = "<a href='pxe.php?dn=" . $hostpxeconfigs[$i]['dn'] . "&mnr=1&sbmnr=" . $sbmnr . "&mcnr=" . $i . "&nodedn=" . $hostDN . "' class='headerlink'>" . $hostpxeconfigs[$i]['cn'] . "</a>";
            $trange = "";
            if (count($hostpxeconfigs[$i]['timerange']) > 1) {
                foreach ($hostpxeconfigs[$i]['timerange'] as $tr) {
                    $exptime = array_merge(explode('_', $tr), array($hostpxeconfigs[$i]['cn']));
                    $timeranges[$i][] = $exptime;
                    # Für grafische Wo-Ansicht
                    if ($exptime[0] == "X") {
                        $exptime[0] = "t&auml;glich";
                    }
                    # if ($exptime[1] == "X" && $exptime[2] == "X"){$exptime[1] = ""; $exptime[2]= "";}
                    $trange .= $exptime[0] . ", von " . $exptime[1] . ":00 bis " . $exptime[2] . ":59 <br> ";
include '../standard_header.inc.php';
# Dateiname und evtl. Pfad des Templates für die Webseite
$webseite = "pxeconfigs.dwt";
include 'computers_header.inc.php';
###################################################################################
$mnr = 2;
$sbmnr = -1;
$mcnr = -1;
# Menuleisten erstellen
createMainMenu($rollen, $mainnr);
createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr);
###################################################################################
$rbsDN = $_GET['rbsdn'];
$template->assign(array("PXEDN" => "", "PXECN" => "Noch keine PXE Boot Konfiguration angelegt", "TRANGES" => "", "PXECLIENTS" => "", "RBS" => "", "CN" => ""));
$pxe_array = get_pxeconfigs2("", array("dn", "cn", "timerange", "rbservicedn", "pxeclientdn"));
$template->define_dynamic("Pxeconf", "Webseite");
for ($i = 0; $i < count($pxe_array); $i++) {
    # PXE Config Name
    $pxename = "<a href='pxe.php?dn=" . $pxe_array[$i]['dn'] . "&mnr=" . $mnr . "&sbmnr=" . $i . "' class='headerlink'>" . $pxe_array[$i]['cn'] . "</a><br>";
    # Timerange Komponenten
    $trange = "";
    if (count($pxe_array[$i]['timerange']) > 1) {
        foreach ($pxe_array[$i]['timerange'] as $tr) {
            $exptime = array_merge(explode('_', $tr), $pxe_array[$i]['cn']);
            $wopltranges[$i][] = $exptime;
            # Für grafische Wo-Ansicht
            if ($exptime[0] == "X") {
                $exptime[0] = "t&auml;glich";
            }
            # if ($exptime[1] == "X" && $exptime[2] == "X"){$exptime[1] = ""; $exptime[2]= "";}