Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  au_u_0100.php

  Sprache: PHP
 

<?php
#---------------------------------------------------------------------------------
#au_u_0100 = Statuskontrolle Objektorientiert
#
#---------------------------------------------------------------------------------
?>
<html>
<title>
::::Sprecherarchiv Statuskontrolle ::::
</title>

<style type="text/css" media="all">

body {
 
  margin: 15 0 0 15;
  background-color: #23130E;
  /*background-color: navy;*/
  /*ckground-image: url(./images/logo_sprecherarchiv.jpg);*/
  background-repeat: no-repeat;
  background-position: top right;




h1, h2, h3 {
   font-family: Arial, Helvetica;
   color : green;


h4, h5, h6 {
   font-family: Arial, Helvetica;
   color : green;


th {
  color: white;
}

td#t0 {
  color: white;
}

td#t1 {
  color: gray;
}

td#t7 {
  color: olive;
}

td#t8 {
  color: green;
}

td#t9 {
  color: silver;
}

td#tx {
  color: red;
}

td#tb {
  color: blue;
}

td#tpk {
  color: yellow;
}

td#tpkm {
  color: #BBAB1E;
}

td#ta {
  color: teal;
}

</style>

<head>
  <title>Kontrolle Sprecherarchiv</title>
  <meta http-equiv='content-type' content='text/html; charset=iso-8859-1'>
</head>



<?
$datum=date("d.m.Y G:i:s");
#echo "<h2><font color='yellow'><u>Statistik Sprecherarchiv, Stand: $datum </u></font></h3>";
echo "<h4>Stand: $datum</h4>";
require_once("au_uc_0100.php");   #Class au_uc_0100

#----------------------------------------------------------------
$au_0100 = new au_uc_0100;  #Alle Informationen besorgen (Class->Methoden)
#----------------------------------------------------------------

#-----------------------------------------------------------------------------------------Informationen 1 anzeigen
$counter=$au_0100->counter;
anzeigen_teil1($counter);

#-----------------------------------------------------------------Informationen 2 (Sprecherstati) anzeigen und erklären
$counter2=$au_0100->counter2;
anzeigen_teil2($counter2);

#----------------------------------------------------------------------------------------die letzten 50 login anzeigen 
$log=$au_0100->log;
anzeigen_teil3($log);



function anzeigen_teil1($counter){
#---------------------------------------------------------------
#alle Daten des Sprecherarchivs als Counter andrucken 
#---------------------------------------------------------------
?>
 <h4><u>1. User im Sprecherarchiv</u></h4>  
 
 <table width='50%'>
   <th align = 'left'>User-Typ</th>
   <th align='right'>gesamt</th>
   <th align='right'>OK.</th>
   <th align='right'>gelöscht</th>
   <th align='right'>gesperrt</th>
   <th align='center'>temp. Proben</th>
   <th align='center'>mp3-Backup</th>
   <th align='center'>Aufträge in arbeit</th>
<? 

 foreach ($counter as $wert1 => $inhalt1){
    echo "<tr>";
    echo "<td id='t1'>" . $wert1 . "</td>"
    $i=0; 
    foreach($inhalt1 as $wert2 => $inhalt2){
       $i++;
       switch ($i){
          case 3:  //gesperrte User
            if ($inhalt2 > 0) 
               echo "<td align='center' id='tb'>" . $inhalt2 . "</td>"
            else
               echo "<td align='center' id='t1'>" . $inhalt2 . "</td>"
            break;   
          case 4:  //gesperrte User
            if ($inhalt2 > 0) 
               echo "<td align='center' id='tx'>" . $inhalt2 . "</td>"
            else
               echo "<td align='center' id='t1'>" . $inhalt2 . "</td>"
            break;   
          case 5:  //temp. Proben
            if ($inhalt2 > 0) 
               echo "<td align='center' id='tx'>" . $inhalt2 . "</td>"
            else
               echo "<td align='center' id='t1'>" . $inhalt2 . "</td>"
            break;   
          case 6:  //mp3-Backup
            if ($inhalt2 > 0) 
               echo "<td align='center' id='tx'>" . $inhalt2 . "</td>"
            else
               echo "<td align='center' id='t1'>" . $inhalt2 . "</td>"
            break
          case 7:  //Kundenaufträge in arbeit
            if ($inhalt2 > 0) 
               echo "<td align='center' id='tx'>" . $inhalt2 . "</td>"
            else
               echo "<td align='center' id='t1'>" . $inhalt2 . "</td>"
            break;   
          default:
            echo "<td align='right' id='t1'>" . $inhalt2 . "</td>"
       }   
       
    }
    echo "</tr>";
 }
 echo "</table>";
 echo "<hr />";
}


function anzeigen_teil2($counter2){
#---------------------------------------------------------------
#Es werden die Sprecherstatis analysiert und mit Countern zur Anzeige gebracht 
#---------------------------------------------------------------
?> 
 <h4><u>2. Sprecheranalyse</u></h4>
  
 <table>
   <th align='left'>Status</th>
   <th align='right'>Anzahl</th>
   <th align='center'>  </th>
   <th align='center'>Erklärung</th>
<? 
 
 foreach ($counter2 as $wert2 => $inhalt2){
    echo "<tr>";
    echo "<td align='right'><font color='gray'>" . $wert2 . "</font></td>"
   
    foreach($inhalt2 as $wert3 => $inhalt3){
       echo "<td align='right'><font color='gray'>" . $inhalt3 . "</font></td>"
       echo "<td>  </td>";
       switch ($wert2){
       case "6":
         echo "<td id='t6'>Neuanmeldungen (gesperrt), noch nicht vom ADMIN freigegeben </td>";
         break;

       case "7":
         echo "<td id='t7'>Altsprecher (aus Access), Stammdaten noch nicht überarbeitet</td>";
         break;
                 
       case "8":
         echo "<td id='t8'>alles OK, Sprecher hat alte Stammdaten überarbeitet oder es ist eine Neuanmeldung</td>";
         break;
         
       case "9":
         echo "<td id='t9'>logisch glöschte Sprecher</td>";
         break;
                     
       default:  
         echo "<td id='tx'> = Status-Code undefiniert, nicht vorgesehen</td>";
         break;
                
     }
    }
    echo "</tr>";
 }
 echo "</table>";
 echo "<hr />";

}


function anzeigen_teil3($log){
#---------------------------------------------------------------
#Es werden die letzten 50 logins angezeigt 
#---------------------------------------------------------------
?>
 <h4><u>3. die letzten 50 Login's</u></h4>
 <table>
   <th>Login-Nr.</th>
   <th>User</th>
   <th>Date/Time</th>
   <th>Login-Status</th>
   <th>Info-Text</th>
<? 
 $agru = "";
 $ngru = "";
  
 foreach ($log as $wert1 => $row){
    echo "<tr>";   
    if ($_SERVER["SERVER_NAME"] == "gr2")   $ngru = substr($row['Date'],8,2);
    else                                    $ngru = substr($row['Date'],6,2);
       
    if ($agru != $ngru){
       if ($agru != "") {
          echo "<tr>";
          echo "<td><hr /></td>";
       } 
       $agru = $ngru; 
       echo "<tr>"
    }else
       echo "<tr>";
        
    if ($row['User_ID'] == 'K1978st' or $row['User_ID'] == 'P1979st' or $row['User_ID'] == 'K1963st' or $row['User_ID'] == 'P1970st')
       musterzugang($row);
    else 
       standard_login($row);
              
    echo "</tr>";
   
 }

}


function standard_login($row){
#---------------------------------------------------------------
#Standard-Login-Sonderbehandlung 
#---------------------------------------------------------------
              
if ($row['Status'] == 'OK.'){
         
   if ($_SERVER["SERVER_NAME"] == "gr2"){
      $dt=$row['Date'];
      $dt_string = substr($dt,8,2) . '-' . substr($dt,5,2) . '-' . substr($dt,0,4) . " " . substr($dt,11);
      
   }else{
      $dt=$row['Date'];
      $dt_string = substr($dt,6,2) . '-' . substr($dt,4,2) . '-' . substr($dt,0,4) . " " . substr($dt,8,2) . ':' . substr($dt,10,2) . ':' . substr($dt,12,2);
   }    
   
   
   switch (substr($row['User_ID'],0,1)){
      case 'X':
        echo "<td align='center' id='ta'>" . $row['lfdnr']   . "</td>"
        echo "<td id='ta'>" . $row['User_ID'] . "</td>"
        echo "<td id='ta'>" . $dt_string . "</td>"
        echo "<td align='center' id='ta'>" . $row['Status']  . "</td>"
        echo "<td id='ta'>Admin</td> ";     
        break;
      case 'P':
         echo "<td align='center' id='tpk'>" . $row['lfdnr']   . "</td>"
        echo "<td id='tpk'>" . $row['User_ID'] . "</td>"
        echo "<td id='tpk'>" . $dt_string . "</td>"
        echo "<td align='center' id='tpk'>" . $row['Status']  . "</td>"
        echo "<td id='tpk'>Partner</td> ";     
        break;  
      case 'K':
        echo "<td align='center' id='tpk'>" . $row['lfdnr']   . "</td>"
        echo "<td id='tpk'>" . $row['User_ID'] . "</td>"
        echo "<td id='tpk'>" . $dt_string . "</td>"
        echo "<td align='center' id='tpk'>" . $row['Status']  . "</td>"
        echo "<td id='tpk'>Kunde</td> ";     
        break;  
      default:
        echo "<td align='center' id='t9'>" . $row['lfdnr']   . "</td>"
        echo "<td id='t9'>" . $row['User_ID'] . "</td>"
        echo "<td id='t9'>" . $dt_string . "</td>"
        echo "<td align='center' id='t9'>" . $row['Status']  . "</td>"
        echo "<td id='t9'>Sprecher</td> "
        break;    
   
   }
   
}else{  #nok
   echo "<td align='center' id='tx'>" . $row['lfdnr']   . "</td>"
   
   echo "<td id='tx'>" . $row['User_ID'] . "</td>"
        
   if ($_SERVER["SERVER_NAME"] == "gr2"){
      $dt=$row['Date'];
      $dt_string = substr($dt,8,2) . '-' . substr($dt,5,2) . '-' . substr($dt,0,4) . " " . substr($dt,11);
      echo "<td id='tx'>" . $dt_string . "</td>"
   }else{
      $dt=$row['Date'];
      $dt_string = substr($dt,6,2) . '-' . substr($dt,4,2) . '-' . substr($dt,0,4) . " " . substr($dt,8,2) . ':' . substr($dt,10,2) . ':' . substr($dt,12,2);
   echo "<td id='tx'>" . $dt_string . "</td>"
   }    
    
   echo "<td align='center' id='tx'>"   . $row['Status']  . "</td>"
       
   echo "<td id='tx'>" .  $row['Fehler_text']  . "</td> "
}

} #end function


function musterzugang($row){
#---------------------------------------------------------------
# Musterzugang wird besonders farblich gekennzeichnet
#---------------------------------------------------------------
  echo "<td align='center' id='tpkm'>" . $row['lfdnr']   . "</td>"

  echo "<td id='tpkm'>" . $row['User_ID'] . "</td>"

  if ($_SERVER["SERVER_NAME"] == "gr2"){
     $dt=$row['Date'];
     $dt_string = substr($dt,8,2) . '-' . substr($dt,5,2) . '-' . substr($dt,0,4) . " " . substr($dt,11);
     echo "<td id='tpkm'>" . $dt_string . "</td>"
  }else{
     $dt=$row['Date'];
     $dt_string = substr($dt,6,2) . '-' . substr($dt,4,2) . '-' . substr($dt,0,4) . " " . substr($dt,8,2) . ':' . substr($dt,10,2) . ':' . substr($dt,12,2);
     echo "<td id='tpkm'>" . $dt_string . "</td>"
  } 

  echo "<td align='center' id='tpkm'>"   . $row['Status']  . "</td>"

  if (substr($row['User_ID'],0,1) == 'K')
     echo "<td id='tpkm'>Muster-Zugang Kunde</td> "
  else
     echo "<td id='tpkm'>Muster-Zugang Partner</td> "

}#end function Musterzugang

?>

</body>
</html>

Messung V0.5 in Prozent
C=100 H=76 G=88

¤ Dauer der Verarbeitung: 0.20 Sekunden  (vorverarbeitet am  2026-04-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge