|
|
Quellcode-Bibliothek
© Kompilation durch diese Firma
[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]
Datei:
commenting.html
Sprache: HTML
Untersuchungsergebnis.php Download desShell {Shell[132] Ada[208] Abap[489]}zum Wurzelverzeichnis wechseln <?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 "Stand: $datum";
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 "";
echo "" . $wert1 . " | ";
$i=0;
foreach($inhalt1 as $wert2 => $inhalt2){
$i++;
switch ($i){
case 3: //gesperrte User
if ($inhalt2 > 0)
echo "" . $inhalt2 . " | ";
else
echo "" . $inhalt2 . " | ";
break;
case 4: //gesperrte User
if ($inhalt2 > 0)
echo "" . $inhalt2 . " | ";
else
echo "" . $inhalt2 . " | ";
break;
case 5: //temp. Proben
if ($inhalt2 > 0)
echo "" . $inhalt2 . " | ";
else
echo "" . $inhalt2 . " | ";
break;
case 6: //mp3-Backup
if ($inhalt2 > 0)
echo "" . $inhalt2 . " | ";
else
echo "" . $inhalt2 . " | ";
break;
case 7: //Kundenaufträge in arbeit
if ($inhalt2 > 0)
echo "" . $inhalt2 . " | ";
else
echo "" . $inhalt2 . " | ";
break;
default:
echo "" . $inhalt2 . " | ";
}
}
echo " ";
}
echo " | ";
echo " ";
}
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 "";
echo "" . $wert2 . " | ";
foreach($inhalt2 as $wert3 => $inhalt3){
echo "" . $inhalt3 . " | ";
echo " | ";
switch ($wert2){
case "6":
echo "Neuanmeldungen (gesperrt), noch nicht vom ADMIN freigegeben | ";
break;
case "7":
echo "Altsprecher (aus Access), Stammdaten noch nicht überarbeitet | ";
break;
case "8":
echo "alles OK, Sprecher hat alte Stammdaten überarbeitet oder es ist eine Neuanmeldung | ";
break;
case "9":
echo "logisch glöschte Sprecher | ";
break;
default:
echo " = Status-Code undefiniert, nicht vorgesehen | ";
break;
}
}
echo " ";
}
echo " | ";
echo " ";
}
function anzeigen_teil3($log){
#---------------------------------------------------------------
#Es werden die letzten 50 logins angezeigt
#---------------------------------------------------------------
?>
<h4><u>3. die letzten 50 Login's
<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 "";
if ($_SERVER["SERVER_NAME"] == "gr2") $ngru = substr($row['Date'],8,2);
else $ngru = substr($row['Date'],6,2);
if ($agru != $ngru){
if ($agru != "") {
echo "";
echo "
| ";
}
$agru = $ngru;
echo "";
}else
echo "";
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 " ";
}
}
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 "" . $row['lfdnr'] . " | ";
echo "" . $row['User_ID'] . " | ";
echo "" . $dt_string . " | ";
echo "" . $row['Status'] . " | ";
echo "Admin | ";
break;
case 'P':
echo "" . $row['lfdnr'] . " | ";
echo "" . $row['User_ID'] . " | ";
echo "" . $dt_string . " | ";
echo "" . $row['Status'] . " | ";
echo "Partner | ";
break;
case 'K':
echo "" . $row['lfdnr'] . " | ";
echo "" . $row['User_ID'] . " | ";
echo "" . $dt_string . " | ";
echo "" . $row['Status'] . " | ";
echo "Kunde | ";
break;
default:
echo "" . $row['lfdnr'] . " | ";
echo "" . $row['User_ID'] . " | ";
echo "" . $dt_string . " | ";
echo "" . $row['Status'] . " | ";
echo "Sprecher | ";
break;
}
}else{ #nok
echo "" . $row['lfdnr'] . " | ";
echo "" . $row['User_ID'] . " | ";
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 "" . $dt_string . " | ";
}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 "" . $dt_string . " | ";
}
echo "" . $row['Status'] . " | ";
echo "" . $row['Fehler_text'] . " | ";
}
} #end function
function musterzugang($row){
#---------------------------------------------------------------
# Musterzugang wird besonders farblich gekennzeichnet
#---------------------------------------------------------------
echo "" . $row['lfdnr'] . " | ";
echo "" . $row['User_ID'] . " | ";
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 "" . $dt_string . " | ";
}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 "" . $dt_string . " | ";
}
echo "" . $row['Status'] . " | ";
if (substr($row['User_ID'],0,1) == 'K')
echo "Muster-Zugang Kunde | ";
else
echo "Muster-Zugang Partner | ";
}#end function Musterzugang
?>
</body>
</html>
[ zur Elbe Produktseite wechseln0.108Quellennavigators
]
|