summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Cuccato <cuccato@web.de>2010-12-27 20:55:57 +0100
committerAngelo Cuccato <cuccato@web.de>2010-12-27 20:55:57 +0100
commit7ba743a65b1d32e08c962be47d14c575987d1e12 (patch)
treed600228a354a9c36220df8120a1ba079d831f8a6
parentd0eb11e952385ce7ac5bd66693246722a6c91131 (diff)
add filter for shift changes of pentabarf imported shifts
-rwxr-xr-xwww-ssl/admin/schichtplan.php20
1 files changed, 16 insertions, 4 deletions
diff --git a/www-ssl/admin/schichtplan.php b/www-ssl/admin/schichtplan.php
index 2b8f3736..cf0eee98 100755
--- a/www-ssl/admin/schichtplan.php
+++ b/www-ssl/admin/schichtplan.php
@@ -95,15 +95,19 @@ case 'change':
"\" type=\"text\" size=\"40\" name=\"eDate\"></td></tr>\n";
echo " <tr><td>Raum</td><td>\n<select name=\"eRID\">\n";
- $sql2 = "SELECT `RID`, `Name` FROM `Room`";
+ $sql2 = "SELECT `RID`, `Name`, `FromPentabarf` FROM `Room`";
$Erg2 = mysql_query($sql2, $con);
$rowcount = mysql_num_rows($Erg2);
+ $FromPentabarf = "N";
for( $i = 0; $i < $rowcount; $i++ )
{
$RID=mysql_result($Erg2, $i, "RID");
echo " <option value=\"".$RID."\"";
if( $RID == mysql_result($Erg, 0, "RID") )
- echo " selected";
+ {
+ echo " selected";
+ $FromPentabarf = mysql_result($Erg2, $i, "FromPentabarf");
+ }
echo ">".mysql_result($Erg2, $i, "Name")."</option>\n";
}
echo " </select>\n</td></tr>\n";
@@ -117,6 +121,11 @@ case 'change':
echo " <tr><td>URL</td>".
"<td><input value=\"". mysql_result($Erg, 0, "URL").
"\" type=\"text\" size=\"40\" name=\"eURL\"></td></tr>\n";
+ if( $FromPentabarf == "Y")
+ {
+ echo " <tr><td></td>".
+ "<td><h1>!!! Imported from Pentabarf !!!</h1></td></tr>\n";
+ }
echo "</table>\n";
echo "<input type=\"hidden\" name=\"SID\" value=\"". $_GET["SID"]. "\">\n";
@@ -173,7 +182,7 @@ case 'change':
echo "\t\t<td>". UID2Nick($userUID). "</td>\n";
echo "\t\t<td>". TID2Type(mysql_result($Erg3, $j, "TID")). Get_Text("inc_schicht_Engel"). "</td>\n";
echo "\t\t<td><a href=\"./schichtplan.php?action=engeldel&SID=". $_GET["SID"]. "&UIDs=$userUID&freeloader=0\">###-austragen-###</a></td>\n";
- echo "\t\t<td><a href=\"./schichtplan.php?action=engeldel&SID=". $_GET["SID"]. "&UIDs=$userUID&freeloader=1\">###-austragen-###</a></td>\n";
+ echo "\t\t<td><a href=\"./schichtplan.php?action=engeldel&SID=". $_GET["SID"]. "&UIDs=$userUID&freeloader=1\">###-austragen-freeloader-###</a></td>\n";
echo "\t</tr>\n";
} // FOR
@@ -187,7 +196,10 @@ case 'change':
// Listet alle Nicks auf
echo "<select name=\"UIDs\">\n";
- echo "\t<option value=\"0\">--neu--</option>\n";
+ if( $FromPentabarf != "Y")
+ {
+ echo "\t<option value=\"0\">--neu--</option>\n";
+ }
$usql="SELECT * FROM `User` ORDER BY `Nick`";
$uErg = mysql_query($usql, $con);