CSS changes

This commit is contained in:
Roland Gruber 2013-01-19 13:18:52 +00:00
parent fc0f0be3bd
commit 01dbb1cb01
24 changed files with 208 additions and 70 deletions

View File

@ -1,11 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html><head><title>LAM type HowTo</title>
<head>
<title>LAM type HowTo</title>
<link rel="stylesheet" type="text/css" href="style/layout.css"> <link rel="stylesheet" type="text/css" href="style/layout.css">
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body>
</head>
<body>
<div style="text-align: center;"> <div style="text-align: center;">
<h1>Type HowTo</h1> <h1>Type HowTo</h1>
<br> <br>
@ -26,12 +25,11 @@ module which handles Samba domains is used as example.<br>
<h3><a href="type_list.htm">3. Custom list view</a></h3> <h3><a href="type_list.htm">3. Custom list view</a></h3>
<br> <br>
<br> <br>
<h2><a href="type_profile.htm">2. The default profile</a></h2> <h2><a href="type_profile.htm">2. The default profiles</a></h2>
<br> <br>
<h2><a href="type_icon.htm">3. List icon</a></h2> <h2><a href="type_icon.htm">3. List icon</a></h2>
<br> <br>
<h2><a href="type_css.htm">4. Type specific CSS file</a></h2> <h2><a href="type_css.htm">4. Type specific CSS file</a></h2>
</div> </div>
</div> </div>
</body> </body></html>
</html>

View File

@ -1,28 +1,64 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html><head>
<head>
<title>Type HowTo - Default profile</title> <title>Type HowTo - Default profile</title>
<link rel="stylesheet" type="text/css" href="style/layout.css"> <link rel="stylesheet" type="text/css" href="style/layout.css">
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
</head>
<body> <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
</head><body>
<div style="text-align: center;"> <div style="text-align: center;">
<h1>Type HowTo - Default profile</h1> <h1>Type HowTo - Default profiles</h1>
</div>
<h2>Account profile
</h2>
<br> <br>
<div style="text-align: left;"><br>
You have to provide a default profile for your account type. If you do You have to provide a default profile for your account type. If you do
not want to specify default values then just provide an empty file.<br> not want to specify default values then just provide an empty file.<br>
Save your profile as <span style="font-weight: bold;">default.&lt;your Save your profile as <span style="font-weight: bold;">default.&lt;your
type&gt;</span> in <span style="font-weight: bold;">config/profiles</span>.<br> type&gt;</span> in <span style="font-weight: bold;">config/templates/profiles</span>.<br>
<br> <br>
<br> <br>
<span style="font-weight: bold; text-decoration: underline;">Example:</span><br
style="font-weight: bold; text-decoration: underline;"> <span style="font-weight: bold; text-decoration: underline;">Example:</span><br style="font-weight: bold; text-decoration: underline;">
<br> <br>
The <span style="font-style: italic;">smbDomain</span> type has only The <span style="font-style: italic;">smbDomain</span> type has only
an empty default profile. It is saved as <span an empty default profile. It is saved as <span style="font-weight: bold;">config/templates/profiles/default.smbDomain</span>.<br>
style="font-weight: bold;">config/profiles/default.smbDomain</span>.<br>
</div> <br>
</div>
</body> <br>
</html>
<br>
<h2>PDF structure<br>
</h2>
Please provide a default PDF structure for your new account type. It is
named <span style="font-weight: bold;">default.&lt;your type&gt;.xml</span>
and stored in <span style="font-weight: bold;">config/templates/pdf</span>.<br>
<br>
<br>
<span style="font-weight: bold; text-decoration: underline;">Example:</span><br>
<br>
The <span style="font-style: italic;">smbDomain</span> type has the
default PDF structure in <span style="font-weight: bold;">config/templates/pdf/default.smbDomain.xml</span>.<br>
<br>
</body></html>

View File

@ -15,6 +15,8 @@
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15"><title>Upgrade notes</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15"><title>Upgrade notes</title>
@ -32,7 +34,27 @@ This is a list of API changes for all LAM releases.
<br> <br>
<h2>3.9 -&gt; 4.0</h2>Module interface:<br> <h2>4.0 -&gt; 4.1</h2>CSS changes:<br>
<ul>
<li>type specific "td.{TYPE}nav-activepage" was replaced by common "td.activepage" in layout.css</li>
<li>renamed ".{TYPE}list-bright" to ".{TYPE}-bright" and ".{TYPE}list-dark" to ".{TYPE}-dark"</li>
<li>removed "table.{TYPE}list input", "table.{TYPE}list select",
"table.{TYPE}list button", "fieldset.{TYPE}edit input",
"fieldset.{TYPE}edit select", "fieldset.{TYPE}edit button"</li>
<li>removed "input.{TYPE}" and "select.{TYPE}"</li>
<li>removed "table.{TYPE}nav" and "table.{TYPE}nav input"</li>
<li>removed "table.{TYPE}list td,th"</li>
<li>new ".{TYPE}-border"</li>
<li>replaced "table.{TYPE}list" by ".{TYPE}-border" and "table.accountlist"<br>
</li>
<li>replaced "fieldset.{TYPE}edit" by ".{TYPE}-border" and ".{TYPE}-bright"</li>
<li>moved type styles from 600_type_{TYPE}.css to 500_layout.css<br>
</li>
</ul>
<br>
<h2>3.9 -&gt; 4.0</h2>
Module interface:<br>
<ul> <ul>
<li>new function: <span style="font-weight: bold;">doUploadPreActions()</span></li> <li>new function: <span style="font-weight: bold;">doUploadPreActions()</span></li>
<li>function <span style="font-weight: bold;">doUploadPostActions() </span>contains attributes by reference<span style="font-weight: bold;"><br> <li>function <span style="font-weight: bold;">doUploadPostActions() </span>contains attributes by reference<span style="font-weight: bold;"><br>

View File

@ -2228,7 +2228,7 @@ class htmlFieldset extends htmlElement {
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
$class = 'ui-corner-all'; $class = 'ui-corner-all';
if ($scope != null) { if ($scope != null) {
$class .= ' ' . $scope . 'edit'; $class .= ' ' . $scope . '-border ' . $scope . '-bright';
} }
echo "<fieldset class=\"$class\">\n"; echo "<fieldset class=\"$class\">\n";
// generate legend // generate legend

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2012 Roland Gruber Copyright (C) 2003 - 2013 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -280,7 +280,7 @@ class lamList {
echo("</td>"); echo("</td>");
if ($count > $this->maxPageEntries) { if ($count > $this->maxPageEntries) {
echo("<td class=\"" . $this->type . "nav-activepage\" align=\"right\">"); echo("<td class=\"activepage\" align=\"right\">");
if ($this->page != 1) { if ($this->page != 1) {
echo("<a title=\"" . _('Jump to first page') . "\" href=\"list.php?type=" . $this->type . "&amp;norefresh=true&amp;page=1" . echo("<a title=\"" . _('Jump to first page') . "\" href=\"list.php?type=" . $this->type . "&amp;norefresh=true&amp;page=1" .
"&amp;sort=" . $this->sortColumn . "&amp;sortdirection=" . $this->sortDirection . $this->filterText . "\">" . "&amp;sort=" . $this->sortColumn . "&amp;sortdirection=" . $this->sortDirection . $this->filterText . "\">" .
@ -326,8 +326,8 @@ class lamList {
*/ */
protected function listPrintTableHeader() { protected function listPrintTableHeader() {
// print table header // print table header
echo "<table id=\"accountTable\" frame=\"box\" rules=\"none\" class=\"" . $this->type . "list\" width=\"100%\"><thead>\n"; echo "<table id=\"accountTable\" frame=\"box\" rules=\"none\" class=\"" . $this->type . "-border accountlist ui-corner-all\" width=\"100%\"><thead>\n";
echo "<tr class=\"" . $this->type . "list-dark\">\n<th width=22 height=34></th>\n<th></th>\n"; echo "<tr class=\"" . $this->type . "-dark\">\n<th width=22 height=34></th>\n<th></th>\n";
// table header // table header
for ($k = 0; $k < sizeof($this->descArray); $k++) { for ($k = 0; $k < sizeof($this->descArray); $k++) {
if (strtolower($this->attrArray[$k]) == $this->sortColumn) { if (strtolower($this->attrArray[$k]) == $this->sortColumn) {
@ -345,7 +345,7 @@ class lamList {
echo "</tr>\n"; echo "</tr>\n";
// print filter row // print filter row
echo "<tr align=\"center\" class=\"" . $this->type . "list-bright\">\n"; echo "<tr align=\"center\" class=\"" . $this->type . "-bright\">\n";
echo "<td width=22 height=34>"; echo "<td width=22 height=34>";
printHelpLink(getHelp('', '250'), '250'); printHelpLink(getHelp('', '250'), '250');
echo "</td>\n"; echo "</td>\n";
@ -376,6 +376,7 @@ class lamList {
} }
} }
$filterInput = new htmlInputField('filter' . strtolower($this->attrArray[$k]), $value); $filterInput = new htmlInputField('filter' . strtolower($this->attrArray[$k]), $value);
$filterInput->setCSSClasses(array($this->type . '-dark'));
$filterInput->setFieldSize('15'); $filterInput->setFieldSize('15');
$filterInput->setOnKeyPress("SubmitForm('apply_filter', event);"); $filterInput->setOnKeyPress("SubmitForm('apply_filter', event);");
parseHtml(null, $filterInput, array(), false, $this->tabindex, $this->type); parseHtml(null, $filterInput, array(), false, $this->tabindex, $this->type);
@ -412,10 +413,10 @@ class lamList {
for ($i = $table_begin; $i < $table_end; $i++) { for ($i = $table_begin; $i < $table_end; $i++) {
$rowID = base64_encode($info[$i]['dn']); $rowID = base64_encode($info[$i]['dn']);
if ((($i - $table_begin) % 2) == 1) { if ((($i - $table_begin) % 2) == 1) {
$classes = ' ' . $this->type . 'list-bright'; $classes = ' ' . $this->type . '-bright';
} }
else { else {
$classes = ' ' . $this->type . 'list-dark'; $classes = ' ' . $this->type . '-dark';
} }
echo("<tr class=\"$classes\"" . echo("<tr class=\"$classes\"" .
" onClick=\"list_click('" . $rowID . "')\"\n" . " onClick=\"list_click('" . $rowID . "')\"\n" .
@ -433,7 +434,7 @@ class lamList {
} }
// display select all link // display select all link
$colspan = sizeof($this->attrArray) + 1; $colspan = sizeof($this->attrArray) + 1;
echo "<tr class=\"" . $this->type . "list-bright\">\n"; echo "<tr class=\"" . $this->type . "-bright\">\n";
echo "<td align=\"center\"><a href=\"#\" onClick=\"list_switchAccountSelection();\"><img height=16 width=16 src=\"../../graphics/select.png\" alt=\"select all\"></a></td>\n"; echo "<td align=\"center\"><a href=\"#\" onClick=\"list_switchAccountSelection();\"><img height=16 width=16 src=\"../../graphics/select.png\" alt=\"select all\"></a></td>\n";
echo "<td colspan=$colspan>&nbsp;<a href=\"#\" onClick=\"list_switchAccountSelection();\">" . echo "<td colspan=$colspan>&nbsp;<a href=\"#\" onClick=\"list_switchAccountSelection();\">" .
"<font color=\"black\">" . _("Select all") . "</font></a></td>\n"; "<font color=\"black\">" . _("Select all") . "</font></a></td>\n";
@ -641,7 +642,7 @@ class lamList {
$this->listPrintHeader(); $this->listPrintHeader();
echo "<div class=\"ui-tabs-nav " . $this->type . "list-bright\">"; echo "<div class=\"ui-tabs-nav " . $this->type . "-bright\">";
echo "<div class=\"smallPaddingContent\">\n"; echo "<div class=\"smallPaddingContent\">\n";
echo "<form action=\"list.php?type=" . $this->type . "&amp;norefresh=true\" method=\"post\">\n"; echo "<form action=\"list.php?type=" . $this->type . "&amp;norefresh=true\" method=\"post\">\n";

View File

@ -936,13 +936,13 @@ class accountContainer {
} }
} }
echo '<div id="passwordMessageArea"></div>'; echo '<div id="passwordMessageArea"></div>';
echo "<table class=\"".$this->type."list-bright\" border=0 width=\"100%\" style=\"border-collapse: collapse;\">\n"; echo "<table class=\"".$this->type."-bright\" border=0 width=\"100%\" style=\"border-collapse: collapse;\">\n";
if (checkIfWriteAccessIsAllowed()) { if (checkIfWriteAccessIsAllowed()) {
echo "<tr class=\"".$this->type."list-bright\"><td style=\"padding: 15px 15px 0px 15px;\">\n"; echo "<tr class=\"".$this->type."-bright\"><td style=\"padding: 15px 15px 0px 15px;\">\n";
$this->printCommonControls($tabindex); $this->printCommonControls($tabindex);
echo "</td></tr>\n"; echo "</td></tr>\n";
} }
echo "<tr class=\"".$this->type."list-bright\" valign=\"top\"><td style=\"padding: 15px;\">"; echo "<tr class=\"".$this->type."-bright\" valign=\"top\"><td style=\"padding: 15px;\">";
// print title bar // print title bar
echo '<div class="titleBar ui-corner-top">'; echo '<div class="titleBar ui-corner-top">';
echo '<table width="100%"><tr>'; echo '<table width="100%"><tr>';
@ -1255,7 +1255,7 @@ class accountContainer {
else { else {
$text = _("Account was modified successfully."); $text = _("Account was modified successfully.");
} }
echo "<div class=\"".$this->type."list-bright smallPaddingContent\">"; echo "<div class=\"".$this->type."-bright smallPaddingContent\">";
$container = new htmlTable(); $container = new htmlTable();
// show messages // show messages
@ -1340,7 +1340,7 @@ class accountContainer {
$buttonImage = $this->module[$this->order[$i]]->getIcon(); $buttonImage = $this->module[$this->order[$i]]->getIcon();
$activatedClass = ''; $activatedClass = '';
if ($this->order[$this->current_page] == $this->order[$i]) { if ($this->order[$this->current_page] == $this->order[$i]) {
$activatedClass = ' ui-tabs-selected ui-state-active ' . $this->type . 'list-bright'; $activatedClass = ' ui-tabs-selected ui-state-active ' . $this->type . '-bright';
} }
// print button // print button
echo '<li class="ui-state-default ui-corner-left' . $activatedClass . '">'; echo '<li class="ui-state-default ui-corner-left' . $activatedClass . '">';

View File

@ -95,6 +95,11 @@ legend {
color:black; color:black;
} }
/* color for active page digit */
td.activepage {
color:red;
}
select { select {
background:#F5F5F5 none repeat-x scroll 50% 50%; background:#F5F5F5 none repeat-x scroll 50% 50%;
border:1px solid #AAAAAA; border:1px solid #AAAAAA;
@ -117,6 +122,13 @@ table.lamHeader {
height: 35px; height: 35px;
} }
/* table preferences */
table.accountlist {
border-width:1px;
border-style:solid;
border-collapse:collapse;
}
.rightToLeftText { .rightToLeftText {
text-align: right; text-align: right;
} }
@ -463,3 +475,72 @@ h4.schema_oclass_sub {
font-size: 80%; font-size: 80%;
} }
/** colors for account types */
.alias-border { border-color:#af8800; }
.alias-bright { background-color:#fff3c8 !important; }
.alias-dark { background-color:#ffe27f !important; }
.asteriskExt-border { border-color:#af8800; }
.asteriskExt-bright { background-color:#fff3c8 !important; }
.asteriskExt-dark { background-color:#ffe27f !important; }
.automountType-border { border-color:#7167bf; }
.automountType-bright { background-color:#d6e3ff !important; }
.automountType-dark { background-color:#a8c3ff !important; }
.dhcp-border { border-color:#527510; }
.dhcp-bright { background-color:#d4f19b !important; }
.dhcp-dark { background-color:#9fc653 !important; }
.gon-border { border-color:#7167bf; }
.gon-bright { background-color:#d6e3ff !important; }
.gon-dark { background-color:#a8c3ff !important; }
.group-border { border-color:#7167bf; }
.group-bright { background-color:#d6e3ff !important; }
.group-dark { background-color:#a8c3ff !important; }
.host-border { border-color:#911a1a; }
.host-bright { background-color:#ffe2dd !important; }
.host-dark { background-color:#ffc4ba !important; }
.mailAlias-border { border-color:#af8800; }
.mailAlias-bright { background-color:#fff3c8 !important; }
.mailAlias-dark { background-color:#ffe27f !important; }
.netgroup-border { border-color:#7167bf; }
.netgroup-bright { background-color:#d6e3ff !important; }
.netgroup-dark { background-color:#a8c3ff !important; }
.nisObjectType-border { border-color:#7167bf; }
.nisObjectType-bright { background-color:#d6e3ff !important; }
.nisObjectType-dark { background-color:#a8c3ff !important; }
.ppolicyType-border { border-color:#af8800; }
.ppolicyType-bright { background-color:#fff3c8 !important; }
.ppolicyType-dark { background-color:#ffe27f !important; }
.smbDomain-border { border-color:#1d993e; }
.smbDomain-bright { background-color:#c9ddd2 !important; }
.smbDomain-dark { background-color:#a8ddbf !important; }
.sudo-border { border-color:#9b8523; }
.sudo-bright { background-color:#fffde2 !important; }
.sudo-dark { background-color:#fff2a3 !important; }
.user-border { border-color:#9b8523; }
.user-bright { background: #fffde2 !important; }
.user-dark { background-color:#fff2a3 !important; }
.zarafaAddressListType-border { border-color:#7167bf; }
.zarafaAddressListType-bright { background-color:#d6e3ff !important; }
.zarafaAddressListType-dark { background-color:#a8c3ff !important; }
.zarafaDynamicGroupType-border { border-color:#7167bf; }
.zarafaDynamicGroupType-bright { background-color:#d6e3ff !important; }
.zarafaDynamicGroupType-dark { background-color:#a8c3ff !important; }

View File

@ -224,11 +224,11 @@ echo '</ul>';
jQuery(document).ready(function() { jQuery(document).ready(function() {
jQuery('#generalSettingsButton').addClass('ui-tabs-selected'); jQuery('#generalSettingsButton').addClass('ui-tabs-selected');
jQuery('#generalSettingsButton').addClass('ui-state-active'); jQuery('#generalSettingsButton').addClass('ui-state-active');
jQuery('#generalSettingsButton').addClass('userlist-bright'); jQuery('#generalSettingsButton').addClass('user-bright');
}); });
</script> </script>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom userlist-bright"> <div class="ui-tabs-panel ui-widget-content ui-corner-bottom user-bright">
<?php <?php
$container = new htmlTable(); $container = new htmlTable();

View File

@ -183,7 +183,7 @@ echo '</ul>';
jQuery(document).ready(function() { jQuery(document).ready(function() {
jQuery('#editmodules').addClass('ui-tabs-selected'); jQuery('#editmodules').addClass('ui-tabs-selected');
jQuery('#editmodules').addClass('ui-state-active'); jQuery('#editmodules').addClass('ui-state-active');
jQuery('#editmodules').addClass('userlist-bright'); jQuery('#editmodules').addClass('user-bright');
// set common width for select boxes // set common width for select boxes
var maxWidth = 0; var maxWidth = 0;
jQuery("select").each(function(){ jQuery("select").each(function(){
@ -194,7 +194,7 @@ jQuery(document).ready(function() {
}); });
</script> </script>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom userlist-bright"> <div class="ui-tabs-panel ui-widget-content ui-corner-bottom user-bright">
<?php <?php

View File

@ -201,11 +201,11 @@ echo '</ul>';
jQuery(document).ready(function() { jQuery(document).ready(function() {
jQuery('#edittypes').addClass('ui-tabs-selected'); jQuery('#edittypes').addClass('ui-tabs-selected');
jQuery('#edittypes').addClass('ui-state-active'); jQuery('#edittypes').addClass('ui-state-active');
jQuery('#edittypes').addClass('userlist-bright'); jQuery('#edittypes').addClass('user-bright');
}); });
</script> </script>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom userlist-bright"> <div class="ui-tabs-panel ui-widget-content ui-corner-bottom user-bright">
<?php <?php
$container = new htmlTable(); $container = new htmlTable();

View File

@ -182,11 +182,11 @@ echo '</ul>';
jQuery(document).ready(function() { jQuery(document).ready(function() {
jQuery('#moduleSettings').addClass('ui-tabs-selected'); jQuery('#moduleSettings').addClass('ui-tabs-selected');
jQuery('#moduleSettings').addClass('ui-state-active'); jQuery('#moduleSettings').addClass('ui-state-active');
jQuery('#moduleSettings').addClass('userlist-bright'); jQuery('#moduleSettings').addClass('user-bright');
}); });
</script> </script>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom userlist-bright"> <div class="ui-tabs-panel ui-widget-content ui-corner-bottom user-bright">
<?php <?php
@ -212,7 +212,7 @@ $modules = array_keys($options);
$_SESSION['conf_types'] = array(); $_SESSION['conf_types'] = array();
for ($i = 0; $i < sizeof($modules); $i++) { for ($i = 0; $i < sizeof($modules); $i++) {
if (sizeof($options[$modules[$i]]) < 1) continue; if (sizeof($options[$modules[$i]]) < 1) continue;
echo "<fieldset class=\"ui-corner-all useredit\">\n"; echo "<fieldset class=\"ui-corner-all user-border user-bright\">\n";
$icon = ''; $icon = '';
$module = new $modules[$i]('none'); $module = new $modules[$i]('none');
$iconImage = $module->getIcon(); $iconImage = $module->getIcon();

View File

@ -83,7 +83,7 @@ if (isset($_GET['type']) && isset($_SESSION['delete_dn'])) {
$_SESSION['account'] = new accountContainer($_GET['type'], 'account'); $_SESSION['account'] = new accountContainer($_GET['type'], 'account');
// Show HTML Page // Show HTML Page
include 'main_header.php'; include 'main_header.php';
echo "<div class=\"".$_GET['type']."list-bright smallPaddingContent\">"; echo "<div class=\"".$_GET['type']."-bright smallPaddingContent\">";
echo "<br>\n"; echo "<br>\n";
echo "<form action=\"delete.php\" method=\"post\">\n"; echo "<form action=\"delete.php\" method=\"post\">\n";
echo "<input name=\"type\" type=\"hidden\" value=\"" . $_GET['type'] . "\">\n"; echo "<input name=\"type\" type=\"hidden\" value=\"" . $_GET['type'] . "\">\n";
@ -142,7 +142,7 @@ if (isset($_POST['delete'])) {
include 'main_header.php'; include 'main_header.php';
echo "<form action=\"delete.php\" method=\"post\">\n"; echo "<form action=\"delete.php\" method=\"post\">\n";
echo "<input name=\"type\" type=\"hidden\" value=\"" . $_POST['type'] . "\">\n"; echo "<input name=\"type\" type=\"hidden\" value=\"" . $_POST['type'] . "\">\n";
echo "<div class=\"".$_POST['type']."list-bright smallPaddingContent\"><br>\n"; echo "<div class=\"".$_POST['type']."-bright smallPaddingContent\"><br>\n";
echo "<br>\n"; echo "<br>\n";
// Delete dns // Delete dns

View File

@ -173,7 +173,7 @@ $new_suff = str_replace("'", "", $new_suff);
$new_suff = explode(";", $new_suff); $new_suff = explode(";", $new_suff);
include 'main_header.php'; include 'main_header.php';
echo '<div class="userlist-bright smallPaddingContent">'; echo '<div class="user-bright smallPaddingContent">';
echo "<form action=\"initsuff.php\" method=\"post\">\n"; echo "<form action=\"initsuff.php\" method=\"post\">\n";
$container = new htmlTable(); $container = new htmlTable();
$container->addElement(new htmlOutputText(_("The following suffixes are missing in LDAP. LAM can create them for you.")), true); $container->addElement(new htmlOutputText(_("The following suffixes are missing in LDAP. LAM can create them for you.")), true);

View File

@ -98,7 +98,7 @@ if (isAccountTypeHidden($scope)) {
die(); die();
} }
echo '<div class="' . $scope . 'list-bright smallPaddingContent">'; echo '<div class="' . $scope . '-bright smallPaddingContent">';
$selectedModules = explode(',', $_POST['selectedModules']); $selectedModules = explode(',', $_POST['selectedModules']);
if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) { if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {

View File

@ -69,7 +69,7 @@ if (isAccountTypeHidden($scope)) {
die(); die();
} }
echo '<div class="' . $scope . 'list-bright smallPaddingContent">'; echo '<div class="' . $scope . '-bright smallPaddingContent">';
// create accounts // create accounts
$accounts = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_accounts'])); $accounts = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_accounts']));

View File

@ -118,7 +118,7 @@ $divClass = 'user';
if (isset($_REQUEST['type'])) { if (isset($_REQUEST['type'])) {
$divClass = $_REQUEST['type']; $divClass = $_REQUEST['type'];
} }
echo '<div class="' . $divClass . 'list-bright smallPaddingContent">'; echo '<div class="' . $divClass . '-bright smallPaddingContent">';
echo "<div class=\"title\">\n"; echo "<div class=\"title\">\n";
echo "<h2 class=\"titleText\">" . _("Account creation via file upload") . "</h2>\n"; echo "<h2 class=\"titleText\">" . _("Account creation via file upload") . "</h2>\n";
echo "</div>"; echo "</div>";
@ -225,7 +225,7 @@ include 'main_footer.php';
* @param array $selectedModules list of selected account modules * @param array $selectedModules list of selected account modules
*/ */
function showMainPage($scope, $selectedModules) { function showMainPage($scope, $selectedModules) {
echo '<div class="' . $scope . 'list-bright smallPaddingContent">'; echo '<div class="' . $scope . '-bright smallPaddingContent">';
// get input fields from modules // get input fields from modules
$columns = getUploadColumns($scope, $selectedModules); $columns = getUploadColumns($scope, $selectedModules);
$modules = array_keys($columns); $modules = array_keys($columns);
@ -318,7 +318,7 @@ function showMainPage($scope, $selectedModules) {
$dnSuffixRowCells[] = new htmlOutputText(''); $dnSuffixRowCells[] = new htmlOutputText('');
$dnSuffixRowCells[] = new htmlSpacer(null, '25px'); $dnSuffixRowCells[] = new htmlSpacer(null, '25px');
$dnSuffixRow = new htmlTableRow($dnSuffixRowCells); $dnSuffixRow = new htmlTableRow($dnSuffixRowCells);
$dnSuffixRow->setCSSClasses(array($scope . 'list-dark')); $dnSuffixRow->setCSSClasses(array($scope . '-dark'));
$columnContainer->addElement($dnSuffixRow); $columnContainer->addElement($dnSuffixRow);
$dnRDNRowCells = array(); $dnRDNRowCells = array();
$dnRDNRowCells[] = $columnSpacer; $dnRDNRowCells[] = $columnSpacer;
@ -338,7 +338,7 @@ function showMainPage($scope, $selectedModules) {
$dnRDNRowCells[] = new htmlOutputText(implode(", ", $rdnAttributes)); $dnRDNRowCells[] = new htmlOutputText(implode(", ", $rdnAttributes));
$dnRDNRowCells[] = new htmlSpacer(null, '25px'); $dnRDNRowCells[] = new htmlSpacer(null, '25px');
$dnRDNRow = new htmlTableRow($dnRDNRowCells); $dnRDNRow = new htmlTableRow($dnRDNRowCells);
$dnRDNRow->setCSSClasses(array($scope . 'list-bright')); $dnRDNRow->setCSSClasses(array($scope . '-bright'));
$columnContainer->addElement($dnRDNRow); $columnContainer->addElement($dnRDNRow);
// module options // module options
for ($m = 0; $m < sizeof($modules); $m++) { for ($m = 0; $m < sizeof($modules); $m++) {
@ -417,10 +417,10 @@ function showMainPage($scope, $selectedModules) {
$rowCells[] = new htmlSpacer(null, '25px'); $rowCells[] = new htmlSpacer(null, '25px');
$row = new htmlTableRow($rowCells); $row = new htmlTableRow($rowCells);
if ($odd) { if ($odd) {
$row->setCSSClasses(array($scope . 'list-dark')); $row->setCSSClasses(array($scope . '-dark'));
} }
else { else {
$row->setCSSClasses(array($scope . 'list-bright')); $row->setCSSClasses(array($scope . '-bright'));
} }
$odd = !$odd; $odd = !$odd;
$columnContainer->addElement($row); $columnContainer->addElement($row);

View File

@ -105,7 +105,7 @@ if (isset($_POST['createOU']) || isset($_POST['deleteOU'])) {
if ($sr && $info['count'] == 0) { if ($sr && $info['count'] == 0) {
// print header // print header
include 'main_header.php'; include 'main_header.php';
echo '<div class="userlist-bright smallPaddingContent">'; echo '<div class="user-bright smallPaddingContent">';
echo "<form action=\"ou_edit.php\" method=\"post\">\n"; echo "<form action=\"ou_edit.php\" method=\"post\">\n";
$tabindex = 1; $tabindex = 1;
$container = new htmlTable(); $container = new htmlTable();
@ -144,7 +144,7 @@ display_main($message, $error);
function display_main($message, $error) { function display_main($message, $error) {
// display main page // display main page
include 'main_header.php'; include 'main_header.php';
echo '<div class="userlist-bright smallPaddingContent">'; echo '<div class="user-bright smallPaddingContent">';
echo ("<form action=\"ou_edit.php\" method=\"post\">\n"); echo ("<form action=\"ou_edit.php\" method=\"post\">\n");
$tabindex = 1; $tabindex = 1;

View File

@ -148,7 +148,7 @@ for ($i = 0; $i < sizeof($templateClasses); $i++) {
include '../main_header.php'; include '../main_header.php';
?> ?>
<div class="userlist-bright smallPaddingContent"> <div class="user-bright smallPaddingContent">
<form action="pdfmain.php" method="post" name="pdfmainForm" > <form action="pdfmain.php" method="post" name="pdfmainForm" >
<?php <?php
if (isset($_GET['savedSuccessfully'])) { if (isset($_GET['savedSuccessfully'])) {

View File

@ -87,7 +87,7 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) {
} }
include '../main_header.php'; include '../main_header.php';
echo "<div class=\"userlist-bright smallPaddingContent\">\n"; echo "<div class=\"user-bright smallPaddingContent\">\n";
echo "<form name=\"profilemainForm\" action=\"profilemain.php\" method=\"post\">\n"; echo "<form name=\"profilemainForm\" action=\"profilemain.php\" method=\"post\">\n";
$container = new htmlTable(); $container = new htmlTable();

View File

@ -95,7 +95,7 @@ for ($i = 0; $i < sizeof($monitorResult); $i++) {
$monitorEntries = array_change_key_case($monitorEntries, CASE_LOWER); $monitorEntries = array_change_key_case($monitorEntries, CASE_LOWER);
include 'main_header.php'; include 'main_header.php';
echo '<div class="userlist-bright smallPaddingContent">'; echo '<div class="user-bright smallPaddingContent">';
$tabindex = 1; $tabindex = 1;
$container = new htmlTable(); $container = new htmlTable();
$spacer = new htmlSpacer('20px', null); $spacer = new htmlSpacer('20px', null);

View File

@ -44,7 +44,7 @@ checkIfToolIsActive('toolTests');
setlanguage(); setlanguage();
include '../main_header.php'; include '../main_header.php';
echo "<div class=\"userlist-bright smallPaddingContent\">\n"; echo "<div class=\"user-bright smallPaddingContent\">\n";
$container = new htmlTable(); $container = new htmlTable();
$container->addElement(new htmlSubTitle(_("LAM tests")), true); $container->addElement(new htmlSubTitle(_("LAM tests")), true);

View File

@ -45,7 +45,7 @@ checkIfToolIsActive('toolTests');
setlanguage(); setlanguage();
include '../main_header.php'; include '../main_header.php';
echo "<div class=\"userlist-bright smallPaddingContent\">\n"; echo "<div class=\"user-bright smallPaddingContent\">\n";
echo "<form action=\"lamdaemonTest.php\" method=\"post\">\n"; echo "<form action=\"lamdaemonTest.php\" method=\"post\">\n";
$container = new htmlTable(); $container = new htmlTable();

View File

@ -48,7 +48,7 @@ checkIfToolIsActive('toolTests');
setlanguage(); setlanguage();
include '../main_header.php'; include '../main_header.php';
echo "<div class=\"userlist-bright smallPaddingContent\">\n"; echo "<div class=\"user-bright smallPaddingContent\">\n";
$container = new htmlTable(); $container = new htmlTable();

View File

@ -56,7 +56,7 @@ foreach ($toSort as $key => $value) {
$tools[] = new $key(); $tools[] = new $key();
} }
echo "<div class=\"userlist-bright smallPaddingContent\">\n"; echo "<div class=\"user-bright smallPaddingContent\">\n";
// print tools table // print tools table
$container = new htmlTable(); $container = new htmlTable();