From 4940ba069f4fab37cd4c4fd998d9a0087a103490 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 31 May 2018 09:11:05 +0200 Subject: [PATCH] responsive design --- lam/templates/help.php | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/lam/templates/help.php b/lam/templates/help.php index 9a968d6b..3d24434d 100644 --- a/lam/templates/help.php +++ b/lam/templates/help.php @@ -63,12 +63,14 @@ include_once("../help/help.inc"); // Include help/help.inc which provides $helpA */ function echoHTMLHead() { echo $_SESSION['header']; + $title = "LDAP Account Manager Help"; + printHeaderContents($title, '..'); ?> - LDAP Account Manager Help Center - - + " . $helpEntry['Headline'] . "\n"; - $format = "

" . $helpEntry['Text'] . "

\n"; + echo "

" . $helpEntry['Headline'] . "

\n"; + $format = "

" . $helpEntry['Text'] . "

\n"; if (isset($helpEntry['attr'])) { $format .= '

' . _('Technical name') . ': ' . $helpEntry['attr'] . ''; } echo $format; if(isset($helpEntry['SeeAlso']) && is_array($helpEntry['SeeAlso'])) { - echo '

' . _('See also') . ': ' . $helpEntry['SeeAlso']['text'] . '

'; + echo '

' . _('See also') . ': ' . $helpEntry['SeeAlso']['text'] . '

'; } echoHTMLFoot(); } @@ -104,7 +106,7 @@ function displayHelp($helpEntry) { if (!isset($_GET['HelpNumber'])) { $errorMessage = "Sorry no help number submitted."; echoHTMLHead(); - statusMessage("ERROR","",$errorMessage); + statusMessage("ERROR", "", $errorMessage); echoHTMLFoot(); exit; } @@ -121,12 +123,10 @@ if(isset($_GET['module']) && !($_GET['module'] == 'main') && !($_GET['module'] = $helpEntry = getHelp($_GET['module'],$_GET['HelpNumber']); } if (!$helpEntry) { - $variables = array(); - array_push($variables, htmlspecialchars($_GET['HelpNumber'])); - array_push($variables, htmlspecialchars($_GET['module'])); + $variables = array(htmlspecialchars($_GET['HelpNumber']), htmlspecialchars($_GET['module'])); $errorMessage = _("Sorry this help id ({bold}%s{endbold}) is not available for this module ({bold}%s{endbold})."); echoHTMLHead(); - statusMessage("ERROR","",$errorMessage,$variables); + statusMessage("ERROR", "", $errorMessage, $variables); echoHTMLFoot(); exit; } @@ -135,11 +135,10 @@ if(isset($_GET['module']) && !($_GET['module'] == 'main') && !($_GET['module'] = else { /* If submitted help number is not in help/help.inc print error message */ if (!array_key_exists($_GET['HelpNumber'],$helpArray)) { - $variables = array(); - array_push($variables, htmlspecialchars($_GET['HelpNumber'])); + $variables = array(htmlspecialchars($_GET['HelpNumber'])); $errorMessage = _("Sorry this help number ({bold}%s{endbold}) is not available."); echoHTMLHead(); - statusMessage("ERROR","",$errorMessage,$variables); + statusMessage("ERROR", "", $errorMessage, $variables); echoHTMLFoot(); exit; }