diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-12-11 09:04:59 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-12-11 09:04:59 +0000 |
commit | c2aaef3afc322842d68a2c9d5950e5ed00732cfe (patch) | |
tree | e218beda293a12cb75eb3a1f33d0d35995d4da3d | |
parent | 3f8cf2ca9beb7ef7ccd84912391e3e351be0985b (diff) |
bugfix, fehler nur noch fuer berechtigte personen
git-svn-id: svn://svn.cccv.de/engel-system@205 29ba0400-6e00-0410-a75a-ca02368028f8
-rwxr-xr-x | www-ssl/inc/funktion_schichtplan.php | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/www-ssl/inc/funktion_schichtplan.php b/www-ssl/inc/funktion_schichtplan.php index e67c11a6..b917b38d 100755 --- a/www-ssl/inc/funktion_schichtplan.php +++ b/www-ssl/inc/funktion_schichtplan.php @@ -201,10 +201,14 @@ function CreateRoomShifts( $raum ) $ErgSonder = mysql_query($SQLSonder, $con); if( (mysql_num_rows( $ErgSonder) > 1) ) { - echo Get_Text("pub_schichtplan_colision"). " ". - mysql_result($ErgSonder, $i, "DateS"). - " '". mysql_result($ErgSonder, $i, "Man"). "' ". - " (". mysql_result($ErgSonder, $i, "SID"). " R$raum) (00-24)<br><br>"; + if( $_SESSION['CVS'][ "admin/schichtplan.php" ] == "Y" ) + { + echo "<h1>". Get_Text("pub_schichtplan_colision"). "</h1> "; + echo "<a href=\"./../admin/schichtplan.php?action=change&SID=". mysql_result($ErgSonder, 0, "SID"). "\">". + mysql_result($ErgSonder, 0, "DateS"). + " '". mysql_result($ErgSonder, 0, "Man"). "' (00-24)". + "</a><br>\n\t\t"; + } } elseif( (mysql_num_rows( $ErgSonder) == 1) ) { @@ -228,10 +232,14 @@ function CreateRoomShifts( $raum ) $ErgSonder = mysql_query($SQLSonder, $con); if( (mysql_num_rows( $ErgSonder) > 1) ) { - echo Get_Text("pub_schichtplan_colision"). " ". - mysql_result($ErgSonder, $i, "DateS"). - " '". mysql_result($ErgSonder, $i, "Man"). "' ". - " (". mysql_result($ErgSonder, $i, "SID"). " R$raum) (00-xx)<br><br>"; + if( $_SESSION['CVS'][ "admin/schichtplan.php" ] == "Y" ) + { + echo "<h1>". Get_Text("pub_schichtplan_colision"). "</h1> "; + echo "<a href=\"./../admin/schichtplan.php?action=change&SID=". mysql_result($ErgSonder, 0, "SID"). "\">". + mysql_result($ErgSonder, 0, "DateS"). + " '". mysql_result($ErgSonder, 0, "Man"). "' (00-xx)". + "</a><br>\n\t\t"; + } } elseif( (mysql_num_rows( $ErgSonder) == 1) ) { |