From 59cf91925ca8da43d2427331b23e4673b0e53095 Mon Sep 17 00:00:00 2001
From: Tarik Gasmi
Date: Mon, 14 May 2007 08:03:48 +0000
Subject: Other webinterface data.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1077 95ad53e4-c205-0410-b2fa-d234c58c8868
---
ldap-site-mngmt/webinterface/rbs/gbm.php | 110 +++++++++++++++++++++++++++++++
1 file changed, 110 insertions(+)
create mode 100644 ldap-site-mngmt/webinterface/rbs/gbm.php
(limited to 'ldap-site-mngmt/webinterface/rbs/gbm.php')
diff --git a/ldap-site-mngmt/webinterface/rbs/gbm.php b/ldap-site-mngmt/webinterface/rbs/gbm.php
new file mode 100644
index 00000000..59aefc5a
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/rbs/gbm.php
@@ -0,0 +1,110 @@
+assign(array("RBSCN" => $rbs_data['cn'],
+ "NFS" => $rbs_data['nfsserverip'],
+ "NFSPATH" => $rbs_data['exportpath'],
+ "TFTP" => $rbs_data['tftpserverip'],
+ "TFTPPATH" => $rbs_data['tftppath'],
+ "NBD" => $rbs_data['nbdserverip']));
+
+
+$template->assign(array("GBMDN" => $gbmDN,
+ "GBMCN" => "",
+ "LABEL" => "",
+ "KERNEL" => "",
+ "INITRD" => "",
+ "FSTYPE" => "",
+ "ROOTFS" => "",
+ "IPAPPEND" => ""));
+
+# GBM Daten
+$attributes = array("dn","cn","label","kernel","initrd","rootfstype","rootfspath","ipappend");
+$gbm = get_node_data($gbmDN, $attributes);
+
+if ($gbm['rootfstype'] == 'nfs'){
+ $options = "
+ ";
+}
+if ($gbm['rootfstype'] == 'nbd'){
+ $options = "
+ ";
+}
+if ($gbm['rootfstype'] == 'dnbd'){
+ $options = "
+ ";
+}
+if ($gbm['rootfstype'] != 'nfs' && $gbm['rootfstype'] != 'nbd' && $gbm['rootfstype'] != 'dnbd'){
+ $options = "
+ ";
+}
+
+
+$template->assign(array("GBMCN" => $gbm['cn'],
+ "LABEL" => $gbm['label'],
+ "KERNEL" => $gbm['kernel'],
+ "INITRD" => $gbm['initrd'],
+ "SELECTOPTIONS" => $options,
+ "ROOTFS" => $gbm['rootfspath'],
+ "IPAPPEND" => $gbm['ipappend'],
+ "RBSDN" => $rbsDN,
+ "MNR" => $mnr,
+ "SBMNR" => $sbmnr));
+
+
+###################################################################################
+
+include("rbs_footer.inc.php");
+
+?>
\ No newline at end of file
--
cgit v1.2.3-55-g7522