PHP Classes

File: views/help.php

Recommend this page to a friend!
  Classes of Axel Hahn   Pimped Apache Status   views/help.php   Download  
File: views/help.php
Role: Example script
Content type: text/plain
Description: Sample output
Class: Pimped Apache Status
Display the requests handled by an Apache server
Author: By
Last change: Beta 2.00.06 - max 10 values in js graph; fix footer in admin; some colors
v2 beta - first commit for github
Date: 5 years ago
Size: 2,131 bytes
 

Contents

Class file image Download
<?php
/*
 * PIMPED APACHE-STATUS
 *
 * view: HELP
 */

// ----------------------------------------------------------------------
// Legende
// ----------------------------------------------------------------------
   
$s='';
    foreach (
$oDatarenderer->getCssClasses() as $sGroup=>$aData){
       
       
$s.= '<br><strong>'.$aLangTxt["cmtLegend".$sGroup].'</strong><br><br><div style="margin: 0 30% 0 20px; ">';
        foreach(
$aData as $key=>$aProperties){
           
$sComment="key " . $key;
            if (
array_key_exists("cmtStatus".$key, $aLangTxt))$sComment=$aLangTxt["cmtStatus".$key];
            if (
array_key_exists("cmtRequest".$key, $aLangTxt))$sComment=$aLangTxt["cmtRequest".$key];
            if (
array_key_exists("cmtexectime".$key, $aLangTxt))$sComment=$aLangTxt["cmtexectime".$key];
           
           
$s.='<div class="'.$aProperties["class"].'">'.$sComment;
            if (
$key=="warning" || $key=="critical"){
               
$s.=" (&gt;".$aCfg["execTimeRequest"][$key]."s)";
            }
           
$s.='</div>';
        }
       
$s.='</div><br>';
    }

// ----------------------------------------------------------------------
// Output
// ----------------------------------------------------------------------

$content=
       
$oDatarenderer->themeBox(
               
$aCfg['icons']['help-doc'] .' '. $aLangTxt['lblHelpDoc'],
               
$aLangTxt['lblHelpDocContent'].
               
'<ul>' . $oDatarenderer->renderLI($aEnv["links"]["project"]) . '</ul>'
               
.'<p>'.
                   
$aLangTxt['lblHelpBookmarklet'].
                   
$oDatarenderer->genBookmarklet().'
                </p>'
,
               
$aLangTxt['lblHintHelpDoc']
        )
        .
$oDatarenderer->themeBox(
               
$aCfg['icons']['help-color'] .' '. $aLangTxt['lblHelpColors'],
               
$s,
               
$aLangTxt['lblHintHelpColors']
        )
        .
$oDatarenderer->themeBox(
               
$aCfg['icons']['help-thanks'] .' '. $aLangTxt['lblHelpThanks'],
               
$aLangTxt['lblHelpThanksContent'],
               
$aLangTxt['lblHintHelpThanks']
        );