summaryrefslogtreecommitdiff
path: root/www-ssl
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2007-12-28 16:03:45 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2007-12-28 16:03:45 +0000
commitaa85cbd2b8fa76b2ceeeaf9352d2d293a9fd1c52 (patch)
tree5222cb10ba22ce6c38ec892f279041db6b239165 /www-ssl
parent00bd98f72e081d81f78d59e7b57a76f631f6f07e (diff)
andere user anschauen
git-svn-id: svn://svn.cccv.de/engel-system@263 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl')
-rwxr-xr-xwww-ssl/nonpublic/myschichtplan.php32
1 files changed, 31 insertions, 1 deletions
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")."<br><br>\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 "<form action=\"".$_SERVER['SCRIPT_NAME']."\" method=\"GET\" >";
+
+ echo "Liste von <select name=\"UIDs\">\n";
+ $usql="SELECT * FROM `User` ORDER BY `Nick`";
+ $uErg = mysql_query($usql, $con);
+ $urowcount = mysql_num_rows($uErg);
+ for ($k=0; $k<$urowcount; $k++)
+ {
+ echo "\t<option value=\"".mysql_result($uErg, $k, "UID")."\" ".
+ ( ($_GET["UIDs"]==mysql_result($uErg, $k, "UID")) ? " selected":""). ">".
+ mysql_result($uErg, $k, "Nick").
+ "</option>\n";
+ }
+ echo "</select> anzeigen.\n";
+ echo mysql_error($con);
+
+ echo "<input type=\"submit\" value=\"zeigen\">\n";
+
+ echo "</form>";
+
+ }
+
$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);