From 15f2912e641f1ae46d3536b765820e5a3af42913 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 4 Sep 2010 13:52:03 +0000 Subject: [PATCH] changed tabs --- lam/lib/modules.inc | 78 +++++++++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 27 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 8a6aeabb..6b7674ec 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1231,31 +1231,30 @@ class accountContainer { return; } } - if (checkIfWriteAccessIsAllowed()) { - $this->printCommonControls(); - } - echo "
\n"; - // create module menu echo "type."list-bright\" border=0 width=\"100%\" style=\"border-collapse: collapse;\">\n"; - echo "type."list-bright\" valign=\"top\">type."list-bright\">\n"; + } + // create module menu + echo "type."list-bright\" valign=\"top\">\n"; + echo "
\n"; // content header - echo "
type . "list-bright\">\n"; - echo "\n"; - echo "\n"; - echo "type . "list-bright\">\n"; + $this->printContentHeader(); // content area - echo "\n"; // Display rest of html-page - echo "
"; + if (checkIfWriteAccessIsAllowed()) { + echo "
\n"; + $this->printCommonControls(); + echo "
"; + echo '
'; // tab menu $this->printModuleTabs(); - echo "
\n"; - $this->printContentHeader(); - echo "
"; // display html-code from modules $return = call_user_func(array($this->module[$this->order[$this->current_page]], 'display_html_'.$this->subpage)); $y = 5000; parseHtml($this->order[$this->current_page], $return, array(), false, $y, $this->type); + echo "\n"; + echo "\n"; + echo "
\n"; + echo "\n"; $this->printPageFooter(); } @@ -1377,17 +1376,17 @@ class accountContainer { * Prints common controls like the save button and the ou selection. */ private function printCommonControls() { - echo "type."list\" style=\"border-width:0px;\" width=\"100%\">"; + echo "
"; echo ""; echo ""; - echo "
"; // save button - echo " \n"; + echo " \n"; // reset button if ($this->dn_orig!='') { - echo "\n"; + echo "\n"; } if ($this->showSetPasswordButton()) { echo "    "; - echo " \n"; + echo " \n"; } echo ""; @@ -1404,11 +1403,37 @@ class accountContainer { echo "\n"; } echo " \n"; - echo "  \n"; + echo " \n"; printHelpLink(getHelp('', '401'), '401'); } echo "
"; + echo ""; + ?> + + '; - echo ''; } /** @@ -1539,12 +1563,12 @@ class accountContainer { echo "\n"; // display DN if (isset($this->dn_orig) && ($this->dn_orig != '')) { - echo _("DN") . ": " . htmlspecialchars($this->dn_orig) . ""; + echo _("DN") . ": " . htmlspecialchars($this->dn_orig); } echo "\n"; echo "\n"; echo _('Suffix') . ": "; - echo "\n"; // loop through all suffixes $rootsuffix = $_SESSION['config']->get_Suffix($this->type); foreach ($_SESSION['ldap']->search_units($rootsuffix) as $suffix) {