Changeset 680

Show
Ignore:
Timestamp:
10/06/08 18:23:19 (5 years ago)
Author:
MDMAN
Message:

racing.league modified

Location:
racing.league
Files:
14 modified

Legend:

Unmodified
Added
Removed
  • racing.league/ToDo-Liste.txt

    r679 r680  
    553. 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. 
    66 
    7 4. $new nicht verwenden... da es wie eine PHP-Funktion gelten kann.... 
     74. $new nicht verwenden... da es wie eine PHP-Funktion gelten kann....ERLEDIGT!! 
    88 
    995. 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  
    2121                if (isset($_REQUEST["saisonID"]))               $this->saisonID = intval($_REQUEST["saisonID"]); 
    2222 
    23                 // hier wird eine Saison gelöscht 
     23                // hier wird eine Saison gelöscht 
    2424                if ($this->saisonID > 0) { 
    2525                        $sql = "DELETE FROM wcf".WCF_N."_racing_settings 
  • racing.league/files/lib/form/RacingLeagueGroupForm.class.php

    r656 r680  
    8888                         
    8989                        $sql = "INSERT INTO wcf".WCF_N."_racing_group (saisonID, groupID) 
    90                                 VALUES ('".$this->activeSaisonID."', '".$this->groupID."') 
     90                        VALUES ('".$this->activeSaisonID."', '".$this->groupID."') 
    9191                                ON DUPLICATE KEY 
    9292                        UPDATE groupID = '".$this->groupID."'"; 
  • racing.league/files/lib/form/RacingLeaguePointsForm.class.php

    r660 r680  
    1616        public $templateName = 'racingLeaguePoints'; 
    1717        public $saisonID = 0; 
    18         public $new = 0; 
     18        public $newPoints = 0; 
    1919        public $edit = 0; 
    2020        public $ID = 0; 
     
    3535 
    3636                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"]); 
    3838                if (isset($_REQUEST["edit"]))           $this->edit = intval($_REQUEST["edit"]); 
    3939                if (isset($_REQUEST["pointsID"]))               $this->pointsID = intval($_REQUEST["pointsID"]);                 
     
    5656                parent::validate(); 
    5757 
    58                 // point bei NEW 
    59                 if ($this->new == 1) { 
     58                // point bei newPoints 
     59                if ($this->newPoints == 1) { 
    6060                        if (empty($this->point)) { 
    61                                 $this->new = '1'; 
     61                                $this->newPoints = '1'; 
    6262                                throw new UserInputException('point'); 
    6363                        } 
     
    8080 
    8181                // Hier wird die Anzahl der vorhandenen Renntage ermittelt 
    82                 if ($this->new == 1) { 
     82                if ($this->newPoints == 1) { 
    8383 
    8484                        $sql = "SELECT * 
     
    137137                 
    138138                // 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) { 
    140140                         
    141141                        $sql = "INSERT INTO wcf".WCF_N."_racing_points (saisonID, pointsID, place, points) 
     
    146146                        $row = 0; 
    147147                        $row = WCF::getDB()->getAffectedRows($res); 
    148                         $this->new = 0; 
     148                        $this->newPoints = 0; 
    149149                        if ($row > 0) {                          
    150150                                WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); 
     
    187187                WCF::getTPL()->assign(array( 
    188188                        'saisonID' => $this->saisonID, 
    189                         'new' => $this->new, 
     189                        'newPoints' => $this->newPoints, 
    190190                        'edit' => $this->edit, 
    191191                        'place' => $this->place, 
  • racing.league/files/lib/form/RacingLeagueRacesForm.class.php

    r656 r680  
    1616        public $templateName = 'racingLeagueRaces'; 
    1717        public $saisonID = 0; 
    18         public $new = 0; 
     18        public $newRaces = 0; 
    1919        public $edit = 0; 
    2020        public $race = ''; 
     
    3434                parent::readParameters(); 
    3535 
    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"]); 
    3838                if (isset($_REQUEST["edit"]))           $this->edit = intval($_REQUEST["edit"]); 
    3939                if (isset($_REQUEST["raceID"]))         $this->raceID = intval($_REQUEST["raceID"]); 
     
    5656                parent::validate(); 
    5757 
    58                 // race bei NEW 
    59                 if ($this->new == 1) { 
     58                // race bei newRaces 
     59                if ($this->newRaces == 1) { 
    6060                        if (empty($this->race)) { 
    61                                 $this->new = '1'; 
     61                                $this->newRaces = '1'; 
    6262                                throw new UserInputException('race'); 
    6363                        } 
     
    8484 
    8585                // Hier wird die Anzahl der vorhandenen Renntage ermittelt 
    86                 if ($this->new == 1) { 
     86                if ($this->newRaces == 1) { 
    8787 
    8888                        $sql = "SELECT * 
     
    141141                 
    142142                // 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) { 
    144144                         
    145145                        $sql = "INSERT INTO wcf".WCF_N."_racing_races (saisonID, raceID, raceNo, racename) 
     
    150150                        $row = 0; 
    151151                        $row = WCF::getDB()->getAffectedRows($res); 
    152                         $this->new = 0; 
     152                        $this->newRaces = 0; 
    153153                        if ($row > 0) {                          
    154154                                WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); 
     
    191191                WCF::getTPL()->assign(array( 
    192192                        'saisonID' => $this->saisonID, 
    193                         'new' => $this->new, 
     193                        'newRaces' => $this->newRaces, 
    194194                        'edit' => $this->edit, 
    195195                        'race' => $this->race, 
  • racing.league/files/lib/form/RacingLeagueResultsForm.class.php

    r679 r680  
    1616        public $templateName = 'racingLeagueResults'; 
    1717        public $saisonID = 0; 
    18         public $new = 0; 
     18        public $newResults = 0; 
    1919        public $drivedRaces = array(); 
    2020        public $result = array(); 
     
    3939 
    4040                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"]); 
    4242                if (isset($_REQUEST["resultsID"]))              $this->resultsID = intval($_REQUEST["resultsID"]); 
    4343                if (isset($_REQUEST["raceID"]))         $this->raceID = intval($_REQUEST["raceID"]); 
     
    6060                parent::validate(); 
    6161 
    62                 // point bei NEW 
    63                 if ($this->new == 1) { 
     62                // point bei newResults 
     63                if ($this->newResults == 1) { 
    6464                        if (empty($this->result)) { 
    65                                 $this->new = '1'; 
     65                                $this->newResults = '1'; 
    6666                                throw new UserInputException('result'); 
    6767                        } 
     
    107107 
    108108                 
    109                 if ($this->new == 1 && $this->activeSaisonID != 0 && $this->groupID != 0) { 
     109                if ($this->newResults == 1 && $this->activeSaisonID != 0 && $this->groupID != 0) { 
    110110 
    111111                        // Hier werden alle verfÃŒgbaren PlÀtze ermittelt 
     
    194194                                 
    195195                // 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) { 
    197197                        // Hier werden alle verfÃŒgbaren PlÀtze ermittelt 
    198198                        $sql = "SELECT place, points 
     
    233233                        $row = 0; 
    234234                        $row = WCF::getDB()->getAffectedRows($res); 
    235                         $this->new = 0; 
     235                        $this->newResults = 0; 
    236236                        if ($row > 0) {                          
    237237                                WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); 
     
    389389                WCF::getTPL()->assign(array( 
    390390                        'saisonID' => $this->saisonID, 
    391                         'new' => $this->new, 
     391                        'newResults' => $this->newResults, 
    392392                        'drivedRaces' => $this->drivedRaces, 
    393393                        'groupID' => $this->groupID, 
  • racing.league/files/lib/form/RacingLeagueSaisonsForm.class.php

    r649 r680  
    1818        public $saisonID = 0; 
    1919        public $saison = ''; 
    20         public $new = 0; 
     20        public $newSaisons = 0; 
    2121        public $edit = 0; 
    2222        public $ID = 0; 
     
    3030                 
    3131                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"]); 
    3333                if (isset($_REQUEST["edit"]))           $this->edit = intval($_REQUEST["edit"]); 
    3434        } 
     
    4949                parent::validate(); 
    5050 
    51                 // saison bei NEW 
    52                 if ($this->new == 1) { 
     51                // saison bei newSaisons 
     52                if ($this->newSaisons == 1) { 
    5353                        if (empty($this->saison)) { 
    54                                 $this->new = '1'; 
     54                                $this->newSaisons = '1'; 
    5555                                throw new UserInputException('saison'); 
    5656                        } 
     
    123123                 
    124124                // Hier wird eine neue Saison gespeichert 
    125                 if ($this->new == 1) { 
     125                if ($this->newSaisons == 1) { 
    126126                         
    127127                        $sql = "INSERT INTO wcf".WCF_N."_racing_settings 
     
    133133                        $row = 0; 
    134134                        $row = WCF::getDB()->getAffectedRows($res); 
    135                         $this->new = 0; 
     135                        $this->newSaisons = 0; 
    136136                        if ($row > 0) {                          
    137137                                WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); 
     
    187187                        'saisonID' => $this->saisonID, 
    188188                        'saison' => $this->saison, 
    189                         'new' => $this->new, 
     189                        'newSaisons' => $this->newSaisons, 
    190190                        'edit' => $this->edit, 
    191191                        'counter' => $this->count        
  • racing.league/files/lib/form/RacingLeagueTeamsForm.class.php

    r660 r680  
    1919        public $team = ''; 
    2020        public $teamname = 0; 
    21         public $new = 0; 
     21        public $newTeams = 0; 
    2222        public $edit = 0;                
    2323         
     
    3131         
    3232                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"]); 
    3434                if (isset($_REQUEST["edit"]))           $this->edit = intval($_REQUEST["edit"]); 
    3535        } 
     
    5050                parent::validate(); 
    5151 
    52                 // team by NEW 
    53                 if ($this->new == 1) { 
     52                // team by newTeams 
     53                if ($this->newTeams == 1) { 
    5454                        if (!$this->team) { 
    55                                 $this->new = 1; 
     55                                $this->newTeams = 1; 
    5656                                throw new UserInputException('team'); 
    5757                        } 
     
    9595                 
    9696                // 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) { 
    9898                         
    9999                        $sql = "INSERT INTO wcf".WCF_N."_racing_teams (saisonID, teamID, teamname) 
     
    104104                        $row = 0; 
    105105                        $row = WCF::getDB()->getAffectedRows($res); 
    106                         $this->new = 0; 
     106                        $this->newTeams = 0; 
    107107                        if ($row > 0) {                          
    108108                                WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('racingLeagueNewSuccess')); 
     
    146146                        'teamID' => $this->teamID, 
    147147                        'team' => $this->team, 
    148                         'new' => $this->new, 
     148                        'newTeams' => $this->newTeams, 
    149149                        'edit' => $this->edit,                   
    150150                        'teamname' => $this->teamname,                   
  • racing.league/files/lib/form/RacingLeagueUserToTeamForm.class.php

    r660 r680  
    3333                 
    3434                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"]); 
    3636        } 
    3737         
     
    5151                parent::validate(); 
    5252 
    53                 // team bei NEWUSER 
     53                // team bei newUser 
    5454                if ($this->newUser == 1) { 
    5555                        if (empty($this->team)) { 
  • racing.league/templates/racingLeaguePoints.tpl

    r662 r680  
    3636        {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} 
    3737 
    38         {if $new == 1} 
    39         <form method="post" action="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&amp;new=1"> 
     38        {if $newPoints == 1} 
     39        <form method="post" action="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&amp;newPoints=1"> 
    4040        <div class="border content"> 
    4141                <div class="container-1">                
     
    181181                                                        <tr class={cycle}> 
    182182                                                        <td align='center'></td> 
    183                                                         <td align='center'><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&amp;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}&amp;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}&amp;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}&amp;newPoints=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointsM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newRace{/lang}" /></a></td> 
    185185                                                        </tr> 
    186186                                        </table>                                         
     
    204204        <div class="largeButtons"> 
    205205                <ul> 
    206                         {if $this->user->getPermission('admin.racing.league.caneditpoints')}<li><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&amp;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}&amp;newPoints=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointsM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newPoint{/lang}</span></a></li>{/if} 
    207207                </ul> 
    208208        </div>   
  • racing.league/templates/racingLeagueRaces.tpl

    r662 r680  
    3636        {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} 
    3737 
    38         {if $new == 1} 
    39         <form method="post" action="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&amp;new=1"> 
     38        {if $newRaces == 1} 
     39        <form method="post" action="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&amp;newRaces=1"> 
    4040        <div class="border content"> 
    4141                <div class="container-1">                
     
    181181                                                        <tr class={cycle}> 
    182182                                                        <td align='center'></td> 
    183                                                         <td align='center'><a href="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&amp;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}&amp;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}&amp;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}&amp;newRaces=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonResultM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newRace{/lang}" /></a></td> 
    185185                                                        </tr> 
    186186                                        </table>                                         
     
    204204        <div class="largeButtons"> 
    205205                <ul> 
    206                         {if $this->user->getPermission('admin.racing.league.caneditraces')}<li><a href="index.php?form=RacingLeagueRaces{@SID_ARG_2ND}&amp;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}&amp;newRaces=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonResultM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newRace{/lang}</span></a></li>{/if} 
    207207                </ul> 
    208208        </div>   
  • racing.league/templates/racingLeagueResults.tpl

    r679 r680  
    3636        {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} 
    3737 
    38         {if $new == 1} 
    39         <form method="post" action="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&amp;new=1&amp;raceID={$raceID}"> 
     38        {if $newResults == 1} 
     39        <form method="post" action="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&amp;newResults=1&amp;raceID={$raceID}"> 
    4040        <div class="border content"> 
    4141                <div class="container-1">                
     
    164164                                                        <tr class={cycle}> 
    165165                                                        <td align='center'></td> 
    166                                                         <td align='center'><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&amp;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}&amp;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}&amp;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}&amp;newResults=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newResult{/lang}" /></a></td> 
    168168                                                        </tr> 
    169169                                                {/if} 
     
    200200        <div class="largeButtons"> 
    201201                <ul> 
    202                         {if $this->user->getPermission('admin.racing.league.caneditresults')}<li><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&amp;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}&amp;newResults=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newResult{/lang}</span></a></li>{/if} 
    203203                </ul> 
    204204        </div>   
  • racing.league/templates/racingLeagueSaisons.tpl

    r656 r680  
    3232{include file='racingLeagueLargeButtons' sandbox=false} 
    3333 
    34 {if $new == 1} 
    35         <form method="post" action="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&amp;new=1"> 
     34{if $newSaisons == 1} 
     35        <form method="post" action="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&amp;newSaisons=1"> 
    3636        <div class="border content"> 
    3737                <div class="container-1">                
     
    148148                                                 
    149149                                                        <tr class="container-{cycle values='1,2'}"> 
    150                                                                 <td align='center'><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&amp;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}&amp;newSaisons=1"><span>{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}</span></a></td> 
    151151                                                                <td></td> 
    152152                                                                <td></td> 
    153153                                                                <td></td> 
    154154                                                                <td></td> 
    155                                                                 <td align='center'><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&amp;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}&amp;newSaisons=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletAddM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}" /></a></td> 
    156156                                                        </tr> 
    157157                                                </tbody> 
     
    177177        <div class="largeButtons"> 
    178178                <ul> 
    179                         {if $this->user->getPermission('admin.racing.league.caneditsaisons')}<li><a href="index.php?form=RacingLeagueSaisons{@SID_ARG_2ND}&amp;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}&amp;newSaisons=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletAddM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newSaison{/lang}</span></a></li>{/if} 
    180180                </ul> 
    181181        </div> 
  • racing.league/templates/racingLeagueTeams.tpl

    r656 r680  
    3636        {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} 
    3737 
    38         {if $new == 1} 
    39         <form method="post" action="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&amp;new=1"> 
     38        {if $newTeams == 1} 
     39        <form method="post" action="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&amp;newTeams=1"> 
    4040        <div class="border content"> 
    4141                <div class="container-1">                
     
    138138                                                 
    139139                                                        <tr class={cycle}> 
    140                                                         <td align='center'><a href="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&amp;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}&amp;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}&amp;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}&amp;newTeams=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonTeamM.png" alt="" title="{lang}wcf.racing.league.button.editSaisons.newTeam{/lang}" /></a></td> 
    142142                                                        </tr> 
    143143                                        </table>                                         
     
    161161        <div class="largeButtons"> 
    162162                <ul> 
    163                         {if $this->user->getPermission('admin.racing.league.caneditteams')}<li><a href="index.php?form=RacingLeagueTeams{@SID_ARG_2ND}&amp;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}&amp;newTeams=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonTeamM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.newTeam{/lang}</span></a></li>{/if} 
    164164                        {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} 
    165165                </ul>