From aa85cbd2b8fa76b2ceeeaf9352d2d293a9fd1c52 Mon Sep 17 00:00:00 2001 From: cookie Date: Fri, 28 Dec 2007 16:03:45 +0000 Subject: [PATCH] andere user anschauen git-svn-id: svn://svn.cccv.de/engel-system@263 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/nonpublic/myschichtplan.php | 32 ++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/www-ssl/nonpublic/myschichtplan.php b/www-ssl/nonpublic/myschichtplan.php index 7e4808c4..f7a9b870 100755 --- a/www-ssl/nonpublic/myschichtplan.php +++ b/www-ssl/nonpublic/myschichtplan.php @@ -17,10 +17,40 @@ If( !IsSet($_GET["action"]) ) echo Get_Text("pub_mywake_beschreibung3").($LETZTES_AUSTRAGEN). Get_Text("pub_mywake_beschreibung4")."

\n"; + $USER_ID = $_SESSION['UID']; + if( $_SESSION['CVS'][ "admin/aktiv.php" ] == "Y" ) + { + if( !isset( $_GET["UIDs"]) ) + $_GET["UIDs"] = $_SESSION['UID']; + else + $USER_ID = $_GET["UIDs"]; + + echo "
"; + + echo "Liste von anzeigen.\n"; + echo mysql_error($con); + + echo "\n"; + + echo "
"; + + } + $SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` ". "INNER JOIN `ShiftEntry` ". "ON `Shifts`.`SID`=`ShiftEntry`.`SID` ". - "WHERE `ShiftEntry`.`UID`='". $_SESSION['UID']. "' ". + "WHERE `ShiftEntry`.`UID`='$USER_ID' ". "ORDER BY `DateS`"; $erg = mysql_query($SQL, $con);