You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.4 KiB
PHTML

14 years ago
<?php
$title = "Debug-Liste";
$header = "Datenbank-Auszug";
include ("../../../camp2011/includes/header.php");
include ("../../../camp2011/includes/funktion_db_list.php");
echo "<h1>Web Counter</h1>";
funktion_db_list("Counter");
/*
14 years ago
echo "<h1>Raeume</h1> <br />";
funktion_db_list("Raeume");
14 years ago
echo "<h1>Schichtbelegung</h1> <br />";
funktion_db_list("Schichtbelegung");
14 years ago
echo "<h1>Schichtplan</h1> <br />Hier findest du alle bisher eingetragenen Schichten:";
funktion_db_list("Schichtplan");
14 years ago
echo "<h1>User</h1> <br />";
funktion_db_list("User");
14 years ago
echo "<h1>News</h1> <br />";
funktion_db_list("News");
14 years ago
echo "<h1>FAQ</h1> <br />";
funktion_db_list("FAQ");
echo "Deaktiviert";
*/
echo "<hr>\n";
14 years ago
funktion_db_element_list_2row( "Tshirt-Size aller engel",
14 years ago
"SELECT `Size`, COUNT(`Size`) FROM `User` GROUP BY `Size`");
echo "<br />\n";
14 years ago
funktion_db_element_list_2row( "Tshirt ausgegeben",
14 years ago
"SELECT `Size`, COUNT(`Size`) FROM `User` WHERE `Tshirt`='1' GROUP BY `Size`");
echo "<br />\n";
14 years ago
funktion_db_element_list_2row( "Tshirt nicht ausgegeben (Gekommen=1)",
14 years ago
"SELECT COUNT(`Size`), `Size` FROM `User` WHERE `Gekommen`='1' and `Tshirt`='0' GROUP BY `Size`");
echo "<hr>\n";
14 years ago
funktion_db_element_list_2row( "Hometown",
14 years ago
"SELECT COUNT(`Hometown`), `Hometown` FROM `User` GROUP BY `Hometown`");
echo "<br />\n";
14 years ago
funktion_db_element_list_2row( "Engeltypen",
14 years ago
"SELECT COUNT(`Art`), `Art` FROM `User` GROUP BY `Art`");
echo "<hr>\n";
funktion_db_element_list_2row( "Gesamte Arbeit",
14 years ago
"SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID)");
echo "<br />\n";
funktion_db_element_list_2row( "Geleisteter Arbeit",
14 years ago
"SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (ShiftEntry.UID!=0)");
echo "<hr>\n";
funktion_db_element_list_2row( "Gesamte Arbeit (Ohne Raum aufabau (RID=7)",
14 years ago
"SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (Shifts.RID!=7)");
echo "<br />\n";
funktion_db_element_list_2row( "Geleisteter Arbeit (Ohne Raum aufabau (RID=7)",
14 years ago
"SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (ShiftEntry.UID!=0) AND (Shifts.RID!=7)");
include ("../../../camp2011/includes/footer.php");
?>