diff --git a/lam/templates/main_header.php b/lam/templates/main_header.php index 5fe4dfd2..8736817f 100644 --- a/lam/templates/main_header.php +++ b/lam/templates/main_header.php @@ -33,7 +33,7 @@ setlanguage(); echo $_SESSION['header']; // number of list views (users, groups, ...) -$lists = 3; +$lists = 2; if ($_SESSION['config']->get_Hostsuffix() != "") $lists++; ?> @@ -46,16 +46,7 @@ if ($_SESSION['config']->get_Hostsuffix() != "") $lists++; \n"; @@ -73,7 +64,6 @@ if ($_SESSION['config']->get_Hostsuffix() != "") $lists++; ' . _("Domains") . '' . "\n"; echo '' . "\n"; echo '' . "\n"; if ($_SESSION['config']->get_Hostsuffix() != "") { diff --git a/lam/templates/tools.php b/lam/templates/tools.php new file mode 100644 index 00000000..0af182c1 --- /dev/null +++ b/lam/templates/tools.php @@ -0,0 +1,113 @@ +\n"; +echo "\n"; +echo ""; + +echo "\n"; + +// list of tools and descriptions +$tools = array(); +// profile editor +$tools[] = array( + "name" => _("Profile editor"), + "description" => _("Here you can manage your account profiles."), + "link" => "profedit/profilemain.php" + ); + +// Samba 3 domains +if ($_SESSION['config']->get_DomainSuffix() && ($_SESSION['config']->get_DomainSuffix() != "")) { +$tools[] = array( + "name" => _("Samba 3 domains"), + "description" => _("Manages Samba 3 domain accounts."), + "link" => "lists/listdomains.php" + ); +} + +// file upload +$tools[] = array( + "name" => _("File upload"), + "description" => _("Creates accounts by uploading a CSV formated file."), + "link" => "masscreate.php" + ); + +// OU editor +$tools[] = array( + "name" => _("OU editor"), + "description" => _("Manages OU objects in your LDAP tree."), + "link" => "ou_edit.php" + ); + +// PDF editor +$tools[] = array( + "name" => _("PDF editor"), + "description" => _("This tool allows you to customize the PDF pages."), + "link" => "pdfedit/pdfmain.php" + ); + +echo "

 

\n"; + +// print tools table +echo "
- - - - - - - - - -
+
' . _("Users") . '' . _("Groups") . '
\n"; + +for ($i = 0; $i < sizeof($tools); $i++) { + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; +} + +echo "
   
"; + echo "" . $tools[$i]['name'] . ""; + echo "

     "; + echo $tools[$i]['description']; + echo "   
\n"; + + +echo "\n"; +echo "\n"; + +?>