From 4621bbd289a2e0696531163de7eefa8e6f62e874 Mon Sep 17 00:00:00 2001 From: cookie Date: Sat, 27 Dec 2008 14:52:22 +0000 Subject: [PATCH] add dect export git-svn-id: svn://svn.cccv.de/engel-system@331 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/free_DECT.php | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 www-ssl/admin/free_DECT.php diff --git a/www-ssl/admin/free_DECT.php b/www-ssl/admin/free_DECT.php new file mode 100755 index 00000000..0a6bba87 --- /dev/null +++ b/www-ssl/admin/free_DECT.php @@ -0,0 +1,50 @@ +=Now() AND ShiftEntry.UID>0);"; + +$Erg = mysql_query($SQL, $con); +$Zeilen = mysql_num_rows($Erg); + +$inuse=""; +for ($i=0; $i < $Zeilen; $i++) +{ + if ($inuse!="") + $inuse.= " OR "; + $inuse.= "(UID = \"". mysql_result($Erg, $i, "UID"). "\")"; +} +if ($inuse!="") + $inuse=" WHERE (NOT (".$inuse.")) AND (DECT!='')"; + + +//########################################################################################################## + +$SQL = "SELECT * FROM User".$inuse.";"; +$Erg = mysql_query($SQL, $con); +$Zeilen = mysql_num_rows($Erg); +for ($i=0; $i < $Zeilen; $i++) +{ + $SQL_RIGHT = "SELECT * FROM UserCVS WHERE UID=". mysql_result($Erg, $i, "UID"). ";"; + $Erg_RIGHT = mysql_query($SQL_RIGHT, $con); + + echo mysql_result($Erg, $i, "DECT"). "\t"; + echo "Info=". mysql_result($Erg_RIGHT, 0, "Info"). "\t"; + echo "Herald=". mysql_result($Erg_RIGHT, 0, "Herald"). "\t"; + echo "Conference=". mysql_result($Erg_RIGHT, 0, "Conference"). "\t"; + + echo "\n"; +} + +?> +