summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/rbs/new_gbm.php
blob: 3300ffb00801db7a2ad6b78092d1db8095b1f242 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
include('../standard_header.inc.php');

# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt. 
$titel = "Remote Boot Service Management";
# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc.
$mainnr = 4;
$mnr = -1; 
$sbmnr = -1;
# 3. Dateiname und evtl. Pfad des Templates für die Webseite
$webseite = "new_gbm.dwt";

include("../class.FastTemplate.php");

include('rbs_header.inc.php');

###################################################################################

$mnr = $_GET['mnr'];
$sbmnr = $_GET['sbmnr'];

# Menuleisten erstellen
createMainMenu($rollen, $mainnr);
createRBSMenu($rollen, $mnr, $auDN, $sbmnr);

###################################################################################

$rbsDN = $_GET['rbsdn'];

$gbmcn = str_replace ( "_", " ", $_GET['gbmcn']);

# RBS Daten 				
$rbs_data = get_node_data($rbsDN, array("cn","nfsserverip","exportpath","tftpserverip","tftppath","nbdserverip"));
$template->assign(array("RBSCN" => $rbs_data['cn'],
								"TFTP" => $rbs_data['tftpserverip'],
								"TFTPPATH" => $rbs_data['tftppath'],
								"NFS" => $rbs_data['nfsserverip'],
								"NFSPATH" => $rbs_data['exportpath'],
								"NBD" => $rbs_data['nbdserverip']));
								

$options = "<option value='none' selected>----------------------------</option>
				<option value='nfs'><b>nfs://".$rbs_data['nfsserverip'].":/".$rbs_data['exportpath']."</b></option>
				<option value='nbd'>nbd://".$rbs_data['nbdserverip'].":</option>
				<option value='dnbd'>dnbd://".$rbs_data['nbdserverip'].":</option>";

$template->assign(array("GBMCN" => $gbmcn,
								"LABEL" => "",
								"KERNEL" => "",
								"INITRD" => "",
								"SELECTOPTIONS" => $options,
								"ROOTFS" => "",
								"IPAPPEND" => "",
								"RBSDN" => $rbsDN,
								"MNR" => $mnr,
           		       	"SBMNR" => $sbmnr));



###################################################################################

include("rbs_footer.inc.php");

?>