summaryrefslogtreecommitdiff
path: root/www-ssl
diff options
context:
space:
mode:
authorAngelo Cuccato <cuccato@web.de>2010-12-25 20:19:33 +0100
committerAngelo Cuccato <cuccato@web.de>2010-12-25 20:19:33 +0100
commitd2846a33833eb86c2f4ad098a20524d80506b2e7 (patch)
tree595918b828c1fad10fbfe5e58e4797d3722daf1d /www-ssl
parentfa2a645343761610a5a1fd5a38e024335045e708 (diff)
add Freeloader logging
Diffstat (limited to 'www-ssl')
-rwxr-xr-xwww-ssl/admin/schichtplan.php36
-rwxr-xr-xwww-ssl/admin/userChangeNormal.php18
2 files changed, 37 insertions, 17 deletions
diff --git a/www-ssl/admin/schichtplan.php b/www-ssl/admin/schichtplan.php
index 92cf78ef..2b8f3736 100755
--- a/www-ssl/admin/schichtplan.php
+++ b/www-ssl/admin/schichtplan.php
@@ -158,16 +158,26 @@ case 'change':
echo "Folgende Engel Sind fuer die Schicht eingetargen.\n";
echo "Und koennen, wenn diese nicht zu Schicht erschienen sind ausgetragen werden:<br>\n";
+ echo "<table border=\"1\">\n".
+ "<tr class=\"contenttopic\">".
+ "<th>nick</th>".
+ "<th>type</th>".
+ "<th>normal</th>".
+ "<th>freeloader :-(</th>".
+ "</tr>";
+
for ($j=0; $j < $rowcount; $j++)
{
$userUID=mysql_result($Erg3, $j, "UID");
- echo "<a href=\"./schichtplan.php?action=engeldel&SID=". $_GET["SID"]. "&UIDs=$userUID\">".
- UID2Nick($userUID).
- " (". TID2Type(mysql_result($Erg3, $j, "TID")). Get_Text("inc_schicht_Engel").
- ") austragen</a><br>\n";
+ echo "\t<tr>\n";
+ 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</tr>\n";
} // FOR
- echo "<br><hr>\n\n\n\n";
+ echo "</table><br><hr>\n\n\n\n";
//Nachtragen von Engeln
echo "Hat ein anderer Engel die Schicht &uuml;bernommen, trage ihn bitte ein:";
@@ -281,6 +291,22 @@ case 'engeladd':
case 'engeldel':
$chSQL = "UPDATE `ShiftEntry` SET `UID`='0', `Comment`= 'NULL' WHERE (`SID`='". $_GET["SID"].
"' AND `UID`='". $_GET["UIDs"]. "') LIMIT 1";
+ if( isset($_GET["freeloader"]) && $_GET["freeloader"]==1)
+ {
+ $sql = "SELECT * FROM `Shifts` WHERE (`SID` = '". $_GET["SID"]. "' )";
+ $Erg = mysql_query($sql, $con);
+ if( mysql_num_rows( $Erg) == 1)
+ {
+ $UID = $_GET["UIDs"];
+ $Length = mysql_result($Erg, 0, "Len");
+ $Comment = "Start: ". mysql_result($Erg, 0, "DateS"). "; ".
+ "Beschreibung: ". mysql_result($Erg, 0, "Man"). "; ".
+ "Removed by ". $_SESSION['Nick'];
+ $ch2SQL =
+ "INSERT INTO `ShiftFreeloader` (`Remove_Time`, `UID`, `Length`, `Comment`) ".
+ "VALUES ( CURRENT_TIMESTAMP, '$UID', '$Length', '$Comment');";
+ }
+ }
break;
case 'engelshiftdel':
diff --git a/www-ssl/admin/userChangeNormal.php b/www-ssl/admin/userChangeNormal.php
index 8c4c9989..4ec014a7 100755
--- a/www-ssl/admin/userChangeNormal.php
+++ b/www-ssl/admin/userChangeNormal.php
@@ -106,18 +106,6 @@ if (IsSet($_GET["enterUID"]))
echo ">Yes \n";
echo "</td></tr>\n";
- // Menu links/rechts
- echo " <tr><td>Menu</td><td>\n";
- echo " <input type=\"radio\" name=\"eMenu\" value=\"L\"";
- if (mysql_result($Erg, 0, "Menu")=='L')
- echo " checked";
- echo ">L \n";
- echo " <input type=\"radio\" name=\"eMenu\" value=\"R\"";
- if (mysql_result($Erg, 0, "Menu")=='R')
- echo " checked";
- echo ">R \n";
- echo "</td></tr>\n";
-
echo " <tr><td>Hometown</td><td>".
"<input type=\"text\" size=\"40\" name=\"Hometown\" value=\"".
mysql_result($Erg, 0, "Hometown")."\"></td></tr>\n";
@@ -135,6 +123,12 @@ if (IsSet($_GET["enterUID"]))
echo "<input type=\"hidden\" name=\"enterUID\" value=\"". $_GET["enterUID"]. "\">\n";
echo "<input type=\"submit\" value=\"l&ouml;schen...\">\n";
echo "</form>";
+
+
+ echo "<hr>";
+ funktion_db_element_list_2row(
+ "Freeloader Shifts",
+ "SELECT `Remove_Time`, `Length`, `Comment` FROM `ShiftFreeloader` WHERE UID=". $_GET["enterUID"]);
}
include ("../../includes/footer.php");