2011-06-01 12:13:39 +02:00
< ? php
2005-09-10 19:25:43 +02:00
$title = " Debug-Liste " ;
$header = " Datenbank-Auszug " ;
2011-05-26 00:52:57 +02:00
include ( " ../../../camp2011/includes/header.php " );
include ( " ../../../camp2011/includes/funktion_db_list.php " );
2005-09-10 19:25:43 +02:00
2005-12-19 00:18:24 +01:00
echo " <h1>Web Counter</h1> " ;
2005-11-17 01:18:04 +01:00
funktion_db_list ( " Counter " );
2005-09-10 19:25:43 +02:00
/*
2011-06-01 12:13:39 +02:00
echo " <h1>Raeume</h1> <br /> " ;
2005-09-10 19:25:43 +02:00
funktion_db_list ( " Raeume " );
2011-06-01 12:13:39 +02:00
echo " <h1>Schichtbelegung</h1> <br /> " ;
2005-09-10 19:25:43 +02:00
funktion_db_list ( " Schichtbelegung " );
2011-06-01 12:13:39 +02:00
echo " <h1>Schichtplan</h1> <br />Hier findest du alle bisher eingetragenen Schichten: " ;
2005-09-10 19:25:43 +02:00
funktion_db_list ( " Schichtplan " );
2011-06-01 12:13:39 +02:00
echo " <h1>User</h1> <br /> " ;
2005-09-10 19:25:43 +02:00
funktion_db_list ( " User " );
2011-06-01 12:13:39 +02:00
echo " <h1>News</h1> <br /> " ;
2005-09-10 19:25:43 +02:00
funktion_db_list ( " News " );
2011-06-01 12:13:39 +02:00
echo " <h1>FAQ</h1> <br /> " ;
2005-09-10 19:25:43 +02:00
funktion_db_list ( " FAQ " );
echo " Deaktiviert " ;
2005-11-17 01:18:04 +01:00
*/
2005-09-10 19:25:43 +02:00
2010-12-30 13:46:36 +01:00
echo " <hr> \n " ;
2010-11-08 23:38:31 +01:00
funktion_db_element_list_2row ( " Tshirt-Size aller engel " ,
2011-06-01 12:13:39 +02:00
" SELECT `Size`, COUNT(`Size`) FROM `User` GROUP BY `Size` " );
echo " <br /> \n " ;
2010-11-08 23:38:31 +01:00
funktion_db_element_list_2row ( " Tshirt ausgegeben " ,
2011-06-01 12:13:39 +02:00
" SELECT `Size`, COUNT(`Size`) FROM `User` WHERE `Tshirt`='1' GROUP BY `Size` " );
echo " <br /> \n " ;
2010-11-08 23:38:31 +01:00
funktion_db_element_list_2row ( " Tshirt nicht ausgegeben (Gekommen=1) " ,
2011-06-01 12:13:39 +02:00
" SELECT COUNT(`Size`), `Size` FROM `User` WHERE `Gekommen`='1' and `Tshirt`='0' GROUP BY `Size` " );
2005-12-19 00:18:24 +01:00
2010-12-30 13:46:36 +01:00
echo " <hr> \n " ;
2010-11-08 23:38:31 +01:00
funktion_db_element_list_2row ( " Hometown " ,
2011-06-01 12:13:39 +02:00
" SELECT COUNT(`Hometown`), `Hometown` FROM `User` GROUP BY `Hometown` " );
echo " <br /> \n " ;
2010-11-08 23:38:31 +01:00
funktion_db_element_list_2row ( " Engeltypen " ,
2011-06-01 12:13:39 +02:00
" SELECT COUNT(`Art`), `Art` FROM `User` GROUP BY `Art` " );
2007-12-30 17:53:10 +01:00
2010-12-30 13:46:36 +01:00
echo " <hr> \n " ;
funktion_db_element_list_2row ( " Gesamte Arbeit " ,
2011-06-01 12:13:39 +02:00
" SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) " );
echo " <br /> \n " ;
2010-12-30 13:46:36 +01:00
funktion_db_element_list_2row ( " Geleisteter Arbeit " ,
2011-06-01 12:13:39 +02:00
" SELECT COUNT(*) AS `Count [x]`, SUM(Shifts.Len) as `Sum [h]` from Shifts LEFT JOIN ShiftEntry USING(SID) WHERE (ShiftEntry.UID!=0) " );
2010-12-30 13:46:36 +01:00
2010-12-30 13:49:55 +01:00
echo " <hr> \n " ;
funktion_db_element_list_2row ( " Gesamte Arbeit (Ohne Raum aufabau (RID=7) " ,
2011-06-01 12:13:39 +02:00
" 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 " ;
2010-12-30 13:46:36 +01:00
funktion_db_element_list_2row ( " Geleisteter Arbeit (Ohne Raum aufabau (RID=7) " ,
2011-06-01 12:13:39 +02:00
" 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) " );
2010-12-30 13:46:36 +01:00
2005-12-19 00:18:24 +01:00
2011-05-26 00:52:57 +02:00
include ( " ../../../camp2011/includes/footer.php " );
2005-09-10 19:25:43 +02:00
?>