diff options
author | Tarik Gasmi | 2007-09-27 16:40:23 +0200 |
---|---|---|
committer | Tarik Gasmi | 2007-09-27 16:40:23 +0200 |
commit | ecc473303fbee5f5466d2477157b5fd682357003 (patch) | |
tree | 2776e2d1d44543e60e15fba30d98d630a551c59c /ldap-site-mngmt/webinterface/au/child_au.php | |
parent | Added text to PXE image "please select" and "use arrow keys". Dirks idea. (diff) | |
download | core-ecc473303fbee5f5466d2477157b5fd682357003.tar.gz core-ecc473303fbee5f5466d2477157b5fd682357003.tar.xz core-ecc473303fbee5f5466d2477157b5fd682357003.zip |
Reorganized LSM Webinterface
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1353 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt/webinterface/au/child_au.php')
-rw-r--r-- | ldap-site-mngmt/webinterface/au/child_au.php | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/ldap-site-mngmt/webinterface/au/child_au.php b/ldap-site-mngmt/webinterface/au/child_au.php index bd8f1ebc..665f1da2 100644 --- a/ldap-site-mngmt/webinterface/au/child_au.php +++ b/ldap-site-mngmt/webinterface/au/child_au.php @@ -1,26 +1,23 @@ <?php include('../standard_header.inc.php'); -include("../class.FastTemplate.php"); # Filename of Template $webseite = "child_au.dwt"; include('au_header.inc.php'); - ############################################################################### # Menus $mnr = 2; $sbmnr = -1; -$sbmnr = $_GET['sbmnr']; +#$sbmnr = $_GET['sbmnr']; createMainMenu($rollen, $mainnr); createAUMenu($rollen, $mnr, $auDN, $sbmnr); - ############################################################################### # MainPage Data @@ -33,33 +30,40 @@ $domprefix = str_replace('.uni-freiburg.de','',$childau[0]['associateddomain']); #print_r($domprefix); $template->assign(array("CHILDOU" => $childau[0]['ou'], - "CHILDCN" => $childau[0]['cn'], - "CHILDDN" => $childauDN, - "CHILDDOMAIN" => $domprefix, - "CHILDDESC" => $childau[0]['description'], - "AUDN" => $auDN, - "SBMNR" => $sbmnr)); + "CHILDCN" => $childau[0]['cn'], + "CHILDDN" => $childauDN, + "CHILDDOMAIN" => $domprefix, + "CHILDDESC" => $childau[0]['description'], + "RANGE1" => "", + "RANGE2" => "", + "AUDN" => $auDN, + "SBMNR" => $sbmnr)); # MaxIPBlocks $mipb = $childau[0]['maxipblock']; -$mipbs = ""; + +# IP Delegs +$template->define_dynamic("Delegs", "Webseite"); +#print_r($mipb); if (count($mipb) > 1){ - for ($i=0; $i < count($mipb) - 1; $i++){ - $exp = explode('_',$mipb[$i]); - $mipbs .= "$exp[0] - $exp[1]<br>"; + foreach ($mipb as $block){ + $exp = explode('_',$block); + $template->assign(array("RANGE1" => $exp[0], + "RANGE2" => $exp[1])); + $template->parse("DELEGS_LIST", ".Delegs"); } - $exp = explode('_',$mipb[$i]); - $mipbs .= "$exp[0] - $exp[1]"; - $template->assign(array("MIPBS" => $mipbs)); -} -elseif(count($mipb) == 1){ + $template->clear_dynamic("Delegs"); +}elseif(count($mipb) == 1){ $exp = explode('_',$mipb); - $mipbs .= "$exp[0] - $exp[1]"; - $template->assign(array("MIPBS" => $mipbs)); -} -else{ - $template->assign(array("MIPBS" => $mipbs)); + $template->assign(array("RANGE1" => $exp[0], + "RANGE2" => $exp[1])); + $template->parse("DELEGS_LIST", ".Delegs"); + $template->clear_dynamic("Delegs"); } +$template->assign(array("RANGE1" => "", + "RANGE2" => "")); +$template->parse("DELEGS_LIST", ".Delegs"); +#$template->clear_dynamic("Delegs"); ############################################################################### |