From 49858dba14bfecc60f107b2ab448b69d967f5c2e Mon Sep 17 00:00:00 2001 From: Angelo Cuccato Date: Tue, 12 Jan 2010 21:17:37 +0100 Subject: [PATCH] add user arrived page --- DB/Sprache.sql | 22 ++++++++++++++ DB/UserCVS.sql | 1 + DB/update_20100112_2115.sql | 24 ++++++++++++++++ www-ssl/admin/userArrived.php | 54 +++++++++++++++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 DB/update_20100112_2115.sql create mode 100755 www-ssl/admin/userArrived.php diff --git a/DB/Sprache.sql b/DB/Sprache.sql index 96ed650f..8b3c3107 100755 --- a/DB/Sprache.sql +++ b/DB/Sprache.sql @@ -606,3 +606,25 @@ INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('admin/faq.php', 'DE INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('admin/faq.php', 'EN', 'FAQ'); INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pub_myschichtplan_ical', 'DE', 'export my Shifts as iCal file'); INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pub_myschichtplan_ical', 'EN', 'iCal File exportieren'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('admin/userArrived.php', 'DE', 'User gekommen'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('admin/userArrived.php', 'EN', 'User Arrived'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_WriteError', 'DE', 'Fehler beim speichern bei Engel'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_WriteError', 'EN', 'Error by writing Engel'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_Text1', 'DE', 'Über die Suchen-Funktion des Browsers kann diese Liste schnell nach einem Nick abgesucht werden.'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_Text1', 'EN', 'Use the search function of the browser, this list can be quickly searched for a nick.'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_Text2', 'DE', 'Hinter diesem erscheint ein Link, über den man eintragen kann, dass der Engel gekommen ist.'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_Text2', 'EN', 'Behind that will see a link that you can enter, that the angel has come.'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableToppic', 'DE', 'Liste aller Engel:'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableToppic', 'EN', 'List of Engels:'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_Nick', 'DE', 'Nick'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_Nick', 'EN', 'Nick'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_ArrivedShow', 'DE', 'Gekommen?'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_ArrivedShow', 'EN', 'Arrived?'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_ArrivedSet', 'DE', 'Gekommen Setzen:'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_ArrivedSet', 'EN', 'Set arrived:'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableEntry_Arrived', 'DE', 'anwesend'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableEntry_Arrived', 'EN', 'arrived'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableEntry_Set', 'DE', 'XXXXXXXX'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableEntry_Set', 'EN', 'XXXXXXXX'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_WriteOK', 'DE', 'Als gekommen makiert'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_WriteOK', 'EN', 'Set as arrived'); diff --git a/DB/UserCVS.sql b/DB/UserCVS.sql index 00d6f5a0..d0b7a4c6 100644 --- a/DB/UserCVS.sql +++ b/DB/UserCVS.sql @@ -48,6 +48,7 @@ CREATE TABLE `UserCVS` ( `admin/user2.php` char(1) NOT NULL default 'N', `admin/userDefaultSetting.php` char(1) NOT NULL default 'N', `admin/UserPicture.php` char(1) NOT NULL default 'N', + `admin/userArrived.php` char(1) NOT NULL default 'N', `admin/aktiv.php` char(1) NOT NULL default 'N', `admin/tshirt.php` char(1) NOT NULL default 'N', `admin/news.php` char(1) NOT NULL default 'N', diff --git a/DB/update_20100112_2115.sql b/DB/update_20100112_2115.sql new file mode 100644 index 00000000..198a24ce --- /dev/null +++ b/DB/update_20100112_2115.sql @@ -0,0 +1,24 @@ +ALTER TABLE `UserCVS` ADD `admin/userArrived.php` CHAR( 1 ) NOT NULL DEFAULT 'N' AFTER `admin/UserPicture.php` ; +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('admin/userArrived.php', 'DE', 'User gekommen'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('admin/userArrived.php', 'EN', 'User Arrived'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_WriteError', 'DE', 'Fehler beim speichern bei Engel'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_WriteError', 'EN', 'Error by writing Engel'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_Text1', 'DE', 'Über die Suchen-Funktion des Browsers kann diese Liste schnell nach einem Nick abgesucht werden.'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_Text1', 'EN', 'Use the search function of the browser, this list can be quickly searched for a nick.'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_Text2', 'DE', 'Hinter diesem erscheint ein Link, über den man eintragen kann, dass der Engel gekommen ist.'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_Text2', 'EN', 'Behind that will see a link that you can enter, that the angel has come.'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableToppic', 'DE', 'Liste aller Engel:'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableToppic', 'EN', 'List of Engels:'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_Nick', 'DE', 'Nick'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_Nick', 'EN', 'Nick'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_ArrivedShow', 'DE', 'Gekommen?'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_ArrivedShow', 'EN', 'Arrived?'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_ArrivedSet', 'DE', 'Gekommen Setzen:'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableTD_ArrivedSet', 'EN', 'Set arrived:'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableEntry_Arrived', 'DE', 'anwesend'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableEntry_Arrived', 'EN', 'arrived'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableEntry_Set', 'DE', 'XXXXXXXX'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_TableEntry_Set', 'EN', 'XXXXXXXX'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_WriteOK', 'DE', 'Als gekommen makiert'); +INSERT INTO `Sprache` (`TextID`, `Sprache`, `Text`) VALUES ('pri_userArrived_WriteOK', 'EN', 'Set as arrived'); + diff --git a/www-ssl/admin/userArrived.php b/www-ssl/admin/userArrived.php new file mode 100755 index 00000000..7470d695 --- /dev/null +++ b/www-ssl/admin/userArrived.php @@ -0,0 +1,54 @@ +". Get_Text("pri_userArrived_WriteOK"). " \"". UID2Nick($_GET["arrived"]). "\""; + } else { + echo "

". Get_Text("pri_userArrived_WriteError"). " \"". UID2Nick($_GET["arrived"]). "\"

"; + } +} + +echo Get_Text("pri_userArrived_Text1"). "
"; +echo Get_Text("pri_userArrived_Text2"). "

"; + +echo Get_Text("pri_userArrived_TableToppic"); +$SQL = "SELECT * FROM `User` ORDER BY `Nick` ASC"; +$Erg = mysql_query($SQL, $con); + +$rowcount = mysql_num_rows($Erg); + +echo "\n"; +echo "\t\n"; +echo "\t\t\n"; +echo "\t\t\n"; +echo "\t\t\n"; +echo "\t\n"; + +for ($i=0; $i<$rowcount; $i++){ + echo "\t\n"; + $eUID=mysql_result($Erg, $i, "UID"); + echo "\t\t\n"; + echo "\t\t\n"; + + if (mysql_result($Erg, $i, "Gekommen") =="1") + { + echo "\t\t"; + } else { + echo "\t\t"; + } + echo "\t\n"; +} +echo "
". Get_Text("pri_userArrived_TableTD_Nick"). "". Get_Text("pri_userArrived_TableTD_ArrivedShow"). "". Get_Text("pri_userArrived_TableTD_ArrivedSet"). "
".UID2Nick($eUID)."".mysql_result($Erg, $i, "Gekommen")."". Get_Text("pri_userArrived_TableEntry_Arrived"). "". Get_Text("pri_userArrived_TableEntry_Set"). "
"; + +include ("../../includes/footer.php"); +?> +