summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/ip/ip_deleg.php
diff options
context:
space:
mode:
authorTarik Gasmi2007-05-14 10:03:48 +0200
committerTarik Gasmi2007-05-14 10:03:48 +0200
commit59cf91925ca8da43d2427331b23e4673b0e53095 (patch)
tree871f39414143192cb3e8bd6f4bd2b7462e7076b9 /ldap-site-mngmt/webinterface/ip/ip_deleg.php
parentSome webinterface data. (diff)
downloadcore-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/ip/ip_deleg.php')
-rw-r--r--ldap-site-mngmt/webinterface/ip/ip_deleg.php102
1 files changed, 102 insertions, 0 deletions
diff --git a/ldap-site-mngmt/webinterface/ip/ip_deleg.php b/ldap-site-mngmt/webinterface/ip/ip_deleg.php
new file mode 100644
index 00000000..dafdaff6
--- /dev/null
+++ b/ldap-site-mngmt/webinterface/ip/ip_deleg.php
@@ -0,0 +1,102 @@
+<?php
+
+include('../standard_header.inc.php');
+
+# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt.
+$titel = "IP Address Management";
+# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc.
+$mainnr = 2;
+$mnr = 3;
+# 3. Dateiname und evtl. Pfad des Templates für die Webseite
+$webseite = "ip_deleg.dwt";
+
+include("../class.FastTemplate.php");
+
+include("ip_header.inc.php");
+
+#############################################################################
+
+# Menuleiste erstellen
+createMainMenu($rollen, $mainnr);
+createIPMenu($rollen, $mnr);
+
+include("ip_blocks.inc.php");
+
+
+#############################################################################
+
+$template->assign(array("CHILDOU" => "Noch keine untergeordnete AU angelegt",
+ "RANGE1" => "",
+ "RANGE2" => "",
+ "CHILDDN" => ""));
+
+$childau_array = get_childau($auDN,array("dn","ou","maxipblock"));
+# print_r ($childau_array);
+
+$template->define_dynamic("Delegs", "Webseite");
+$template->define_dynamic("AUs", "Webseite");
+
+foreach ($childau_array as $childau){
+
+ $template->clear_parse("DELEGS_LIST");
+ if ( count($childau['maxipblock']) > 1 ){
+ foreach ($childau['maxipblock'] as $j){
+ $exp = explode('_',$j);
+ $template->assign(array("CHILDOU" => $childau['ou'],
+ "RANGE1" => $exp[0],
+ "RANGE2" => $exp[1],
+ "CHILDDN" => $childau['dn'],
+ "AUDN" => $auDN));
+ $template->parse("DELEGS_LIST", ".Delegs");
+ $template->clear_dynamic("Delegs");
+ }
+ $template->assign(array("CHILDOU" => $childau['ou'],
+ "RANGE1" => "",
+ "RANGE2" => "",
+ "CHILDDN" => $childau['dn'],
+ "AUDN" => $auDN));
+ $template->parse("DELEGS_LIST", ".Delegs");
+ $template->clear_dynamic("Delegs");
+ $template->assign(array("OU" => $childau['ou']));
+ $template->parse("AUS_LIST", ".AUs");
+
+ }elseif ( count($childau['maxipblock']) == 1 ){
+
+ $exp = explode('_',$childau['maxipblock']);
+ $template->assign(array("CHILDOU" => $childau['ou'],
+ "RANGE1" => $exp[0],
+ "RANGE2" => $exp[1],
+ "CHILDDN" => $childau['dn'],
+ "AUDN" => $auDN));
+ $template->parse("DELEGS_LIST", ".Delegs");
+ $template->clear_dynamic("Delegs");
+ $template->assign(array("CHILDOU" => $childau['ou'],
+ "RANGE1" => "",
+ "RANGE2" => "",
+ "CHILDDN" => $childau['dn'],
+ "AUDN" => $auDN));
+ $template->parse("DELEGS_LIST", ".Delegs");
+ $template->clear_dynamic("Delegs");
+ $template->assign(array("OU" => $childau['ou']));
+ $template->parse("AUS_LIST", ".AUs");
+
+ }else{
+ $template->assign(array("CHILDOU" => $childau['ou'],
+ "RANGE1" => "",
+ "RANGE2" => "",
+ "CHILDDN" => $childau['dn'],
+ "AUDN" => $auDN));
+ $template->parse("DELEGS_LIST", ".Delegs");
+ $template->clear_dynamic("Delegs");
+ $template->assign(array("OU" => $childau['ou']));
+ $template->parse("AUS_LIST", ".AUs");
+ }
+
+}
+
+
+#####################################################################################
+
+include("ip_footer.inc.php");
+
+?>