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);