Changeset 680
- Timestamp:
- 10/06/08 18:23:19 (5 years ago)
- Location:
- racing.league
- Files:
-
- 14 modified
-
ToDo-Liste.txt (modified) (1 diff)
-
files/lib/action/RacingLeagueDeleteSaisonAction.class.php (modified) (1 diff)
-
files/lib/form/RacingLeagueGroupForm.class.php (modified) (1 diff)
-
files/lib/form/RacingLeaguePointsForm.class.php (modified) (7 diffs)
-
files/lib/form/RacingLeagueRacesForm.class.php (modified) (7 diffs)
-
files/lib/form/RacingLeagueResultsForm.class.php (modified) (7 diffs)
-
files/lib/form/RacingLeagueSaisonsForm.class.php (modified) (6 diffs)
-
files/lib/form/RacingLeagueTeamsForm.class.php (modified) (6 diffs)
-
files/lib/form/RacingLeagueUserToTeamForm.class.php (modified) (2 diffs)
-
templates/racingLeaguePoints.tpl (modified) (3 diffs)
-
templates/racingLeagueRaces.tpl (modified) (3 diffs)
-
templates/racingLeagueResults.tpl (modified) (3 diffs)
-
templates/racingLeagueSaisons.tpl (modified) (3 diffs)
-
templates/racingLeagueTeams.tpl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
racing.league/ToDo-Liste.txt
r679 r680 5 5 3. Sollten Teamname geändert werden oder gelöscht werden, muss diese Änderung auch in der Ergebnis-Liste passieren. Nicht nötig, da hier keine Namen stehen! ERLEDIGT. 6 6 7 4. $new nicht verwenden... da es wie eine PHP-Funktion gelten kann.... 7 4. $new nicht verwenden... da es wie eine PHP-Funktion gelten kann....ERLEDIGT!! 8 8 9 9 5. Teampunkte müssen noch in die Ergebnis-Tabelle der Teams eingetragen werden... beim Speichern eines Rennergebnisses... Dabei muss die gleiche raceID verwendet werden wie bei den normalen Ergebnissen. ERLEDIGT! -
racing.league/files/lib/action/RacingLeagueDeleteSaisonAction.class.php
r662 r680 21 21 if (isset($_REQUEST["saisonID"])) $this->saisonID = intval($_REQUEST["saisonID"]); 22 22 23 // hier wird eine Saison gelà ¶scht23 // hier wird eine Saison gelöscht 24 24 if ($this->saisonID > 0) { 25 25 $sql = "DELETE FROM wcf".WCF_N."_racing_settings -
racing.league/files/lib/form/RacingLeagueGroupForm.class.php
r656 r680 88 88 89 89 $sql = "INSERT INTO wcf".WCF_N."_racing_group (saisonID, groupID) 90 VALUES ('".$this->activeSaisonID."', '".$this->groupID."')90 VALUES ('".$this->activeSaisonID."', '".$this->groupID."') 91 91 ON DUPLICATE KEY 92 92 UPDATE groupID = '".$this->groupID."'"; -
racing.league/files/lib/form/RacingLeaguePointsForm.class.php
r660 r680 16 16 public $templateName = 'racingLeaguePoints'; 17 17 public $saisonID = 0; 18 public $new = 0;18 public $newPoints = 0; 19 19 public $edit = 0; 20 20 public $ID = 0; … … 35 35 36 36 if (isset($_REQUEST["saisonID"])) $this->saisonID = intval($_REQUEST["saisonID"]); 37 if (isset($_REQUEST["new "])) $this->new = intval($_REQUEST["new"]);37 if (isset($_REQUEST["newPoints"])) $this->newPoints = intval($_REQUEST["newPoints"]); 38 38 if (isset($_REQUEST["edit"])) $this->edit = intval($_REQUEST["edit"]); 39 39 if (isset($_REQUEST["pointsID"])) $this->pointsID = intval($_REQUEST["pointsID"]); … … 56 56 parent::validate(); 57 57 58 // point bei NEW59 if ($this->new == 1) {58 // point bei newPoints 59 if ($this->newPoints == 1) { 60 60 if (empty($this->point)) { 61 $this->new = '1';61 $this->newPoints = '1'; 62 62 throw new UserInputException('point'); 63 63 } … … 80 80 81 81 // Hier wird die Anzahl der vorhandenen Renntage ermittelt 82 if ($this->new == 1) {82 if ($this->newPoints == 1) { 83 83 84 84 $sql = "SELECT * … … 137 137 138 138 // Hier wird eine neue Platz/Punkte-Regel gespeichert 139 if ($this->point && $this->activeSaisonID != 0 && $this->new == 1) {139 if ($this->point && $this->activeSaisonID != 0 && $this->newPoints == 1) { 140 140 141 141 $sql = "INSERT INTO wcf".WCF_N."_racing_points (saisonID, pointsID, place, points) … … 146 146 $row = 0; 147 147 $row = WCF::getDB()->getAffectedRows($res); 148 $this->new = 0;148 $this->newPoints = 0; 149 149 if ($row > 0) { 150 150 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); … … 187 187 WCF::getTPL()->assign(array( 188 188 'saisonID' => $this->saisonID, 189 'new ' => $this->new,189 'newPoints' => $this->newPoints, 190 190 'edit' => $this->edit, 191 191 'place' => $this->place, -
racing.league/files/lib/form/RacingLeagueRacesForm.class.php
r656 r680 16 16 public $templateName = 'racingLeagueRaces'; 17 17 public $saisonID = 0; 18 public $new = 0;18 public $newRaces = 0; 19 19 public $edit = 0; 20 20 public $race = ''; … … 34 34 parent::readParameters(); 35 35 36 if (isset($_REQUEST["saisonID"])) $this->saisonID = intval($_REQUEST["saisonID"]);37 if (isset($_REQUEST["new "])) $this->new = intval($_REQUEST["new"]);36 if (isset($_REQUEST["saisonID"])) $this->saisonID = intval($_REQUEST["saisonID"]); 37 if (isset($_REQUEST["newRaces"])) $this->newRaces = intval($_REQUEST["newRaces"]); 38 38 if (isset($_REQUEST["edit"])) $this->edit = intval($_REQUEST["edit"]); 39 39 if (isset($_REQUEST["raceID"])) $this->raceID = intval($_REQUEST["raceID"]); … … 56 56 parent::validate(); 57 57 58 // race bei NEW59 if ($this->new == 1) {58 // race bei newRaces 59 if ($this->newRaces == 1) { 60 60 if (empty($this->race)) { 61 $this->new = '1';61 $this->newRaces = '1'; 62 62 throw new UserInputException('race'); 63 63 } … … 84 84 85 85 // Hier wird die Anzahl der vorhandenen Renntage ermittelt 86 if ($this->new == 1) {86 if ($this->newRaces == 1) { 87 87 88 88 $sql = "SELECT * … … 141 141 142 142 // Hier wird ein neuer Renntag gespeichert 143 if ($this->race && $this->activeSaisonID != 0 && $this->new == 1) {143 if ($this->race && $this->activeSaisonID != 0 && $this->newRaces == 1) { 144 144 145 145 $sql = "INSERT INTO wcf".WCF_N."_racing_races (saisonID, raceID, raceNo, racename) … … 150 150 $row = 0; 151 151 $row = WCF::getDB()->getAffectedRows($res); 152 $this->new = 0;152 $this->newRaces = 0; 153 153 if ($row > 0) { 154 154 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); … … 191 191 WCF::getTPL()->assign(array( 192 192 'saisonID' => $this->saisonID, 193 'new ' => $this->new,193 'newRaces' => $this->newRaces, 194 194 'edit' => $this->edit, 195 195 'race' => $this->race, -
racing.league/files/lib/form/RacingLeagueResultsForm.class.php
r679 r680 16 16 public $templateName = 'racingLeagueResults'; 17 17 public $saisonID = 0; 18 public $new = 0;18 public $newResults = 0; 19 19 public $drivedRaces = array(); 20 20 public $result = array(); … … 39 39 40 40 if (isset($_REQUEST["saisonID"])) $this->saisonID = intval($_REQUEST["saisonID"]); 41 if (isset($_REQUEST["new "])) $this->new = intval($_REQUEST["new"]);41 if (isset($_REQUEST["newResults"])) $this->newResults = intval($_REQUEST["newResults"]); 42 42 if (isset($_REQUEST["resultsID"])) $this->resultsID = intval($_REQUEST["resultsID"]); 43 43 if (isset($_REQUEST["raceID"])) $this->raceID = intval($_REQUEST["raceID"]); … … 60 60 parent::validate(); 61 61 62 // point bei NEW63 if ($this->new == 1) {62 // point bei newResults 63 if ($this->newResults == 1) { 64 64 if (empty($this->result)) { 65 $this->new = '1';65 $this->newResults = '1'; 66 66 throw new UserInputException('result'); 67 67 } … … 107 107 108 108 109 if ($this->new == 1 && $this->activeSaisonID != 0 && $this->groupID != 0) {109 if ($this->newResults == 1 && $this->activeSaisonID != 0 && $this->groupID != 0) { 110 110 111 111 // Hier werden alle verfÃŒgbaren PlÀtze ermittelt … … 194 194 195 195 // Hier wird ein neues Ergebnis gespeichert 196 if ($this->result && $this->activeSaisonID != 0 && $this->new == 1 && $this->raceID > 0) {196 if ($this->result && $this->activeSaisonID != 0 && $this->newResults == 1 && $this->raceID > 0) { 197 197 // Hier werden alle verfÃŒgbaren PlÀtze ermittelt 198 198 $sql = "SELECT place, points … … 233 233 $row = 0; 234 234 $row = WCF::getDB()->getAffectedRows($res); 235 $this->new = 0;235 $this->newResults = 0; 236 236 if ($row > 0) { 237 237 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); … … 389 389 WCF::getTPL()->assign(array( 390 390 'saisonID' => $this->saisonID, 391 'new ' => $this->new,391 'newResults' => $this->newResults, 392 392 'drivedRaces' => $this->drivedRaces, 393 393 'groupID' => $this->groupID, -
racing.league/files/lib/form/RacingLeagueSaisonsForm.class.php
r649 r680 18 18 public $saisonID = 0; 19 19 public $saison = ''; 20 public $new = 0;20 public $newSaisons = 0; 21 21 public $edit = 0; 22 22 public $ID = 0; … … 30 30 31 31 if (isset($_REQUEST["saisonID"])) $this->saisonID = intval($_REQUEST["saisonID"]); 32 if (isset($_REQUEST["new "])) $this->new = intval($_REQUEST["new"]);32 if (isset($_REQUEST["newSaisons"])) $this->newSaisons = intval($_REQUEST["newSaisons"]); 33 33 if (isset($_REQUEST["edit"])) $this->edit = intval($_REQUEST["edit"]); 34 34 } … … 49 49 parent::validate(); 50 50 51 // saison bei NEW52 if ($this->new == 1) {51 // saison bei newSaisons 52 if ($this->newSaisons == 1) { 53 53 if (empty($this->saison)) { 54 $this->new = '1';54 $this->newSaisons = '1'; 55 55 throw new UserInputException('saison'); 56 56 } … … 123 123 124 124 // Hier wird eine neue Saison gespeichert 125 if ($this->new == 1) {125 if ($this->newSaisons == 1) { 126 126 127 127 $sql = "INSERT INTO wcf".WCF_N."_racing_settings … … 133 133 $row = 0; 134 134 $row = WCF::getDB()->getAffectedRows($res); 135 $this->new = 0;135 $this->newSaisons = 0; 136 136 if ($row > 0) { 137 137 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); … … 187 187 'saisonID' => $this->saisonID, 188 188 'saison' => $this->saison, 189 'new ' => $this->new,189 'newSaisons' => $this->newSaisons, 190 190 'edit' => $this->edit, 191 191 'counter' => $this->count -
racing.league/files/lib/form/RacingLeagueTeamsForm.class.php
r660 r680 19 19 public $team = ''; 20 20 public $teamname = 0; 21 public $new = 0;21 public $newTeams = 0; 22 22 public $edit = 0; 23 23 … … 31 31 32 32 if (isset($_REQUEST["teamID"])) $this->teamID = intval($_REQUEST["teamID"]); 33 if (isset($_REQUEST["new "])) $this->new = intval($_REQUEST["new"]);33 if (isset($_REQUEST["newTeams"])) $this->newTeams = intval($_REQUEST["newTeams"]); 34 34 if (isset($_REQUEST["edit"])) $this->edit = intval($_REQUEST["edit"]); 35 35 } … … 50 50 parent::validate(); 51 51 52 // team by NEW53 if ($this->new == 1) {52 // team by newTeams 53 if ($this->newTeams == 1) { 54 54 if (!$this->team) { 55 $this->new = 1;55 $this->newTeams = 1; 56 56 throw new UserInputException('team'); 57 57 } … … 95 95 96 96 // Hier wird ein neues Team gespeichert 97 if ($this->team && $this->activeSaisonID != 0 && $this->new == 1) {97 if ($this->team && $this->activeSaisonID != 0 && $this->newTeams == 1) { 98 98 99 99 $sql = "INSERT INTO wcf".WCF_N."_racing_teams (saisonID, teamID, teamname) … … 104 104 $row = 0; 105 105 $row = WCF::getDB()->getAffectedRows($res); 106 $this->new = 0;106 $this->newTeams = 0; 107 107 if ($row > 0) { 108 108 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); … … 146 146 'teamID' => $this->teamID, 147 147 'team' => $this->team, 148 'new ' => $this->new,148 'newTeams' => $this->newTeams, 149 149 'edit' => $this->edit, 150 150 'teamname' => $this->teamname, -
racing.league/files/lib/form/RacingLeagueUserToTeamForm.class.php
r660 r680 33 33 34 34 if (isset($_REQUEST["newUser"])) $this->newUser = intval($_REQUEST["newUser"]); 35 if (isset($_REQUEST["userID"])) $this->userID = intval($_REQUEST["userID"]);35 if (isset($_REQUEST["userID"])) $this->userID = intval($_REQUEST["userID"]); 36 36 } 37 37 … … 51 51 parent::validate(); 52 52 53 // team bei NEWUSER53 // team bei newUser 54 54 if ($this->newUser == 1) { 55 55 if (empty($this->team)) { -
racing.league/templates/racingLeaguePoints.tpl
r662 r680 36 36 {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} 37 37 38 {if $new == 1}39 <form method="post" action="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&new =1">38 {if $newPoints == 1} 39 <form method="post" action="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&newPoints=1"> 40 40 <div class="border content"> 41 41 <div class="container-1"> … … 181 181 <tr class={cycle}> 182 182 <td align='center'></td> 183 <td align='center'><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&new =1"><span>{lang}wcf.racing.league.button.editSaisons.newPoint{/lang}</span></a></td>184 <td align='center'><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointsM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newRace{/lang}" /></a></td>183 <td align='center'><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&newPoints=1"><span>{lang}wcf.racing.league.button.editSaisons.newPoint{/lang}</span></a></td> 184 <td align='center'><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&newPoints=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointsM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newRace{/lang}" /></a></td> 185 185 </tr> 186 186 </table> … … 204 204 <div class="largeButtons"> 205 205 <ul> 206 {if $this->user->getPermission('admin.racing.league.caneditpoints')}<li><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointsM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newPoint{/lang}</span></a></li>{/if}206 {if $this->user->getPermission('admin.racing.league.caneditpoints')}<li><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&newPoints=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointsM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newPoint{/lang}</span></a></li>{/if} 207 207 </ul> 208 208 </div> -
racing.league/templates/racingLeagueRaces.tpl
r662 r680 36 36 {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} 37 37 38 {if $new == 1}39 <form method="post" action="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&new =1">38 {if $newRaces == 1} 39 <form method="post" action="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&newRaces=1"> 40 40 <div class="border content"> 41 41 <div class="container-1"> … … 181 181 <tr class={cycle}> 182 182 <td align='center'></td> 183 <td align='center'><a href="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&new =1"><span>{lang}wcf.racing.league.button.editSaisons.newRace{/lang}</span></a></td>184 <td align='center'><a href="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonResultM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newRace{/lang}" /></a></td>183 <td align='center'><a href="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&newRaces=1"><span>{lang}wcf.racing.league.button.editSaisons.newRace{/lang}</span></a></td> 184 <td align='center'><a href="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&newRaces=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonResultM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newRace{/lang}" /></a></td> 185 185 </tr> 186 186 </table> … … 204 204 <div class="largeButtons"> 205 205 <ul> 206 {if $this->user->getPermission('admin.racing.league.caneditraces')}<li><a href="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonResultM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newRace{/lang}</span></a></li>{/if}206 {if $this->user->getPermission('admin.racing.league.caneditraces')}<li><a href="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&newRaces=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonResultM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newRace{/lang}</span></a></li>{/if} 207 207 </ul> 208 208 </div> -
racing.league/templates/racingLeagueResults.tpl
r679 r680 36 36 {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} 37 37 38 {if $new == 1}39 <form method="post" action="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&new =1&raceID={$raceID}">38 {if $newResults == 1} 39 <form method="post" action="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&newResults=1&raceID={$raceID}"> 40 40 <div class="border content"> 41 41 <div class="container-1"> … … 164 164 <tr class={cycle}> 165 165 <td align='center'></td> 166 <td align='center'><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&new =1"><span>{lang}wcf.racing.league.button.editSaisons.newResult{/lang}</span></a></td>167 <td align='center'><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newResult{/lang}" /></a></td>166 <td align='center'><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&newResults=1"><span>{lang}wcf.racing.league.button.editSaisons.newResult{/lang}</span></a></td> 167 <td align='center'><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&newResults=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newResult{/lang}" /></a></td> 168 168 </tr> 169 169 {/if} … … 200 200 <div class="largeButtons"> 201 201 <ul> 202 {if $this->user->getPermission('admin.racing.league.caneditresults')}<li><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newResult{/lang}</span></a></li>{/if}202 {if $this->user->getPermission('admin.racing.league.caneditresults')}<li><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&newResults=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newResult{/lang}</span></a></li>{/if} 203 203 </ul> 204 204 </div> -
racing.league/templates/racingLeagueSaisons.tpl
r656 r680 32 32 {include file='racingLeagueLargeButtons' sandbox=false} 33 33 34 {if $new == 1}35 <form method="post" action="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&new =1">34 {if $newSaisons == 1} 35 <form method="post" action="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&newSaisons=1"> 36 36 <div class="border content"> 37 37 <div class="container-1"> … … 148 148 149 149 <tr class="container-{cycle values='1,2'}"> 150 <td align='center'><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&new =1"><span>{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}</span></a></td>150 <td align='center'><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&newSaisons=1"><span>{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}</span></a></td> 151 151 <td></td> 152 152 <td></td> 153 153 <td></td> 154 154 <td></td> 155 <td align='center'><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletAddM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}" /></a></td>155 <td align='center'><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&newSaisons=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletAddM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}" /></a></td> 156 156 </tr> 157 157 </tbody> … … 177 177 <div class="largeButtons"> 178 178 <ul> 179 {if $this->user->getPermission('admin.racing.league.caneditsaisons')}<li><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletAddM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}</span></a></li>{/if}179 {if $this->user->getPermission('admin.racing.league.caneditsaisons')}<li><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&newSaisons=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletAddM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}</span></a></li>{/if} 180 180 </ul> 181 181 </div> -
racing.league/templates/racingLeagueTeams.tpl
r656 r680 36 36 {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} 37 37 38 {if $new == 1}39 <form method="post" action="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&new =1">38 {if $newTeams == 1} 39 <form method="post" action="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&newTeams=1"> 40 40 <div class="border content"> 41 41 <div class="container-1"> … … 138 138 139 139 <tr class={cycle}> 140 <td align='center'><a href="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&new =1"><span>{lang}wcf.racing.league.button.editSaisons.newTeam{/lang}</span></a></td>141 <td align='center'><a href="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonTeamM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newTeam{/lang}" /></a></td>140 <td align='center'><a href="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&newTeams=1"><span>{lang}wcf.racing.league.button.editSaisons.newTeam{/lang}</span></a></td> 141 <td align='center'><a href="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&newTeams=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonTeamM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newTeam{/lang}" /></a></td> 142 142 </tr> 143 143 </table> … … 161 161 <div class="largeButtons"> 162 162 <ul> 163 {if $this->user->getPermission('admin.racing.league.caneditteams')}<li><a href="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&new =1"><img src="{@RELATIVE_WCF_DIR}icon/saisonTeamM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newTeam{/lang}</span></a></li>{/if}163 {if $this->user->getPermission('admin.racing.league.caneditteams')}<li><a href="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&newTeams=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonTeamM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newTeam{/lang}</span></a></li>{/if} 164 164 {if $this->user->getPermission('admin.racing.league.caneditteams') && $teams|count > 0}<li><a href="index.php?form=RacingLeagueUserToTeam{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/saisonUserToTeamM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.UserToTeam{/lang}</span></a></li>{/if} 165 165 </ul>
