- Timestamp:
- 09/25/08 19:02:38 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
racing.league/files/lib/form/RacingLeagueUserToTeamForm.class.php
r652 r660 4 4 5 5 /** 6 * Seite fÃŒr die Zuweisung der User an ein Team.6 * Seite fÃŒr die Zuweisung der Fahrer an ein Team. 7 7 * 8 8 * @author Markus Gerdelmann … … 66 66 parent::readData(); 67 67 68 if ($this->newUser == 1 && $this->userID > 0 && $this->activ SaisonID > 0) {69 // Hier wird der Username geladen fà Œr die Teamzuweisung68 if ($this->newUser == 1 && $this->userID > 0 && $this->activeSaisonID > 0) { 69 // Hier wird der Username geladen fÃÂŒr die Teamzuweisung 70 70 $sql = "SELECT userID, username 71 71 FROM wcf".WCF_N."_user … … 78 78 } 79 79 80 if ($this->activ SaisonID > 0) {80 if ($this->activeSaisonID > 0) { 81 81 82 82 // Hier wird die aktive Benutzergruppe ermittelt 83 83 $sql = "SELECT * 84 84 FROM wcf".WCF_N."_racing_group 85 WHERE saisonID = '".$this->activ SaisonID."'85 WHERE saisonID = '".$this->activeSaisonID."' 86 86 "; 87 87 $res = WCF::getDB()->sendQuery($sql); … … 109 109 WHERE `a`.`userID` = `c`.`userID` 110 110 AND `b`.`groupID` = '".$this->groupID."' 111 AND `b`.saisonID = '".$this->activ SaisonID."'112 AND `c`.saisonID = '".$this->activ SaisonID."'111 AND `b`.saisonID = '".$this->activeSaisonID."' 112 AND `c`.saisonID = '".$this->activeSaisonID."' 113 113 ORDER BY `a`.`username` ASC"; 114 114 … … 126 126 ON (`b`.`groupID` = '".$this->groupID."') 127 127 WHERE `a`.`groupID` = `b`.`groupID` 128 AND `b`.`saisonID` = '".$this->activ SaisonID."'128 AND `b`.`saisonID` = '".$this->activeSaisonID."' 129 129 "; 130 130 … … 172 172 173 173 // Hier wird einem Fahrer ein Team zugewiesen und gespeichert 174 if ($this->newUser == 1 && $this->userID > 0 && $this->activ SaisonID > 0) {174 if ($this->newUser == 1 && $this->userID > 0 && $this->activeSaisonID > 0) { 175 175 176 176 $sql = "INSERT INTO wcf".WCF_N."_racing_user_to_team 177 177 (saisonID, usertoteamID ,teamID, userID) 178 VALUES ('".escapeString($this->activ SaisonID)."', '', '".escapeString($this->team)."', '".escapeString($this->userID)."')178 VALUES ('".escapeString($this->activeSaisonID)."', '', '".escapeString($this->team)."', '".escapeString($this->userID)."') 179 179 "; 180 180
