| 1 | {include file='documentHeader'} |
|---|
| 2 | <head> |
|---|
| 3 | <title>{lang}wcf.racing.league.title.points{/lang} - {PAGE_TITLE}</title> |
|---|
| 4 | {include file='headInclude' sandbox=false} |
|---|
| 5 | </head> |
|---|
| 6 | <body> |
|---|
| 7 | {include file='header' sandbox=false} |
|---|
| 8 | <div id="main"> |
|---|
| 9 | <ul class="breadCrumbs"> |
|---|
| 10 | <li><a href="index.php?page=Index{@SID_ARG_2ND}"><img src="icon/indexS.png" alt="" /> <span>{PAGE_TITLE}</span></a> »</li> |
|---|
| 11 | <li><a href="index.php?page=RacingLeague{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/saisonwS.png" alt="" /> <span>{lang}wcf.racing.league.title{/lang}</span></a> »</li> |
|---|
| 12 | <li><img src="{@RELATIVE_WCF_DIR}icon/saisonPointswS.png" alt="" /> <span>{lang}wcf.racing.league.title.points{/lang}</span></li> |
|---|
| 13 | </ul><br /> |
|---|
| 14 | <div class="mainHeadline"> |
|---|
| 15 | <img src="{@RELATIVE_WCF_DIR}icon/saisonPointswL.png" alt="" /> |
|---|
| 16 | <div class="headlineContainer"> |
|---|
| 17 | <h2> {lang}wcf.racing.league.title.points{/lang}</h2> |
|---|
| 18 | <p>{lang}wcf.racing.league.title.points.description{/lang}</p> |
|---|
| 19 | </div> |
|---|
| 20 | </div> |
|---|
| 21 | |
|---|
| 22 | {if $userMessages|isset}{@$userMessages}{/if} |
|---|
| 23 | |
|---|
| 24 | {if $errorField} |
|---|
| 25 | <p class="error">{lang}wcf.global.form.error{/lang}</p> |
|---|
| 26 | {/if} |
|---|
| 27 | |
|---|
| 28 | {if $errorMessage|isset} |
|---|
| 29 | <p class="error">{@$errorMessage}</p> |
|---|
| 30 | {/if} |
|---|
| 31 | |
|---|
| 32 | {include file='racingLeagueLargeButtons' sandbox=false} |
|---|
| 33 | |
|---|
| 34 | {if $saisons|count > 0} |
|---|
| 35 | |
|---|
| 36 | {if $saisons.$activSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} |
|---|
| 37 | |
|---|
| 38 | {if $new == 1} |
|---|
| 39 | <form method="post" action="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&new=1"> |
|---|
| 40 | <div class="border content"> |
|---|
| 41 | <div class="container-1"> |
|---|
| 42 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointsS.png" alt="" /> {lang}wcf.racing.league.points.newPoint{/lang}</h3> |
|---|
| 43 | <p class="description">{lang}wcf.racing.league.points.newPoint.description{/lang}</p> |
|---|
| 44 | <br /> |
|---|
| 45 | |
|---|
| 46 | <div class="formElement{if $errorField == 'place'} formError{/if}"> |
|---|
| 47 | <div class="formFieldLabel"> |
|---|
| 48 | <label for="place">{lang}wcf.racing.league.newPlace{/lang}</label> |
|---|
| 49 | </div> |
|---|
| 50 | <div class="formField"> |
|---|
| 51 | <select name='place'> |
|---|
| 52 | {section name=anz loop=$anz start=1 step=1} |
|---|
| 53 | <option name='place' value='{$anz}'> {$anz} </option> |
|---|
| 54 | {/section} |
|---|
| 55 | <option name='raceNo' value='{$anz}' selected > {$anz} </option> |
|---|
| 56 | </select> |
|---|
| 57 | {if $errorField == 'place'} |
|---|
| 58 | <p class="innerError"> |
|---|
| 59 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 60 | </p> |
|---|
| 61 | {/if} |
|---|
| 62 | </div> |
|---|
| 63 | </div> |
|---|
| 64 | |
|---|
| 65 | <div class="formElement{if $errorField == 'point'} formError{/if}"> |
|---|
| 66 | <div class="formFieldLabel"> |
|---|
| 67 | <label for="point">{lang}wcf.racing.league.newPoint{/lang}</label> |
|---|
| 68 | </div> |
|---|
| 69 | <div class="formField"> |
|---|
| 70 | <input type="text" class="inputText" name="point" id="point" value="{$point}" /> |
|---|
| 71 | {if $errorField == 'point'} |
|---|
| 72 | <p class="innerError"> |
|---|
| 73 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 74 | </p> |
|---|
| 75 | {/if} |
|---|
| 76 | </div> |
|---|
| 77 | </div> |
|---|
| 78 | |
|---|
| 79 | </div> |
|---|
| 80 | </div> |
|---|
| 81 | <div class="formSubmit"> |
|---|
| 82 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 83 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 84 | {@SID_INPUT_TAG} |
|---|
| 85 | </div> |
|---|
| 86 | </form> |
|---|
| 87 | {/if} |
|---|
| 88 | |
|---|
| 89 | {if $edit == 1} |
|---|
| 90 | <form method="post" action="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&pointsID={$pointsID}&edit=1"> |
|---|
| 91 | <div class="border content"> |
|---|
| 92 | <div class="container-1"> |
|---|
| 93 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonResultEditS.png" alt="" /> {lang}wcf.racing.league.points.editPoint{/lang}</h3> |
|---|
| 94 | <p class="description">{lang}wcf.racing.league.points.editRace.description{/lang}</p> |
|---|
| 95 | <br /> |
|---|
| 96 | |
|---|
| 97 | <div class="formElement{if $errorField == 'place'} formError{/if}"> |
|---|
| 98 | <div class="formFieldLabel"> |
|---|
| 99 | <label for="place">{lang}wcf.racing.league.editPlace{/lang}</label> |
|---|
| 100 | </div> |
|---|
| 101 | <div class="formField"> |
|---|
| 102 | <select name='place'> |
|---|
| 103 | {section name=anz loop=$anz start=1 step=1} |
|---|
| 104 | <option name='place' value='{$anz}'{if $anz == $place} selected{/if} > {$anz} </option> |
|---|
| 105 | {/section} |
|---|
| 106 | </select> |
|---|
| 107 | {if $errorField == 'place'} |
|---|
| 108 | <p class="innerError"> |
|---|
| 109 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 110 | </p> |
|---|
| 111 | {/if} |
|---|
| 112 | </div> |
|---|
| 113 | </div> |
|---|
| 114 | |
|---|
| 115 | <div class="formElement{if $errorField == 'point'} formError{/if}"> |
|---|
| 116 | <div class="formFieldLabel"> |
|---|
| 117 | <label for="point">{lang}wcf.racing.league.editPoint{/lang}</label> |
|---|
| 118 | </div> |
|---|
| 119 | <div class="formField"> |
|---|
| 120 | <input type="text" class="inputText" name="point" id="point" value="{$pointsEdit}" /> |
|---|
| 121 | {if $errorField == 'point'} |
|---|
| 122 | <p class="innerError"> |
|---|
| 123 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 124 | </p> |
|---|
| 125 | {/if} |
|---|
| 126 | </div> |
|---|
| 127 | </div> |
|---|
| 128 | |
|---|
| 129 | </div> |
|---|
| 130 | </div> |
|---|
| 131 | <div class="formSubmit"> |
|---|
| 132 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 133 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 134 | {@SID_INPUT_TAG} |
|---|
| 135 | </div> |
|---|
| 136 | </form> |
|---|
| 137 | {/if} |
|---|
| 138 | |
|---|
| 139 | {if $activSaisonID != 0 && $points|count > 0} |
|---|
| 140 | |
|---|
| 141 | <div class="border content"> |
|---|
| 142 | <div class="container-1"> |
|---|
| 143 | |
|---|
| 144 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointswS.png" alt="" /> {lang}wcf.racing.league.points.overview{/lang}</h3> |
|---|
| 145 | <p class="description">{lang}wcf.racing.league.points.overview.description{/lang}</p> |
|---|
| 146 | <br /> |
|---|
| 147 | <div class="container-1"> |
|---|
| 148 | <div id="overviewInformation"> |
|---|
| 149 | <div class="border"> |
|---|
| 150 | <div class="containerHead"> |
|---|
| 151 | <h3 class="containerContent">{lang}wcf.racing.league.points.overview{/lang}</h3> |
|---|
| 152 | </div> |
|---|
| 153 | {cycle values='container-2,container-1' print=false advance=false} |
|---|
| 154 | <table class="tableList"> |
|---|
| 155 | <tbody> |
|---|
| 156 | <colgroup> |
|---|
| 157 | <col width="80"> |
|---|
| 158 | <col width="320"> |
|---|
| 159 | <col width="160"> |
|---|
| 160 | </colgroup> |
|---|
| 161 | |
|---|
| 162 | <tr class="container-3"> |
|---|
| 163 | <td align='center'>{lang}wcf.racing.league.points.place{/lang}</td> |
|---|
| 164 | <td align='center'>{lang}wcf.racing.league.points.points{/lang}</td> |
|---|
| 165 | <td align='center'>{lang}wcf.racing.league.points.action{/lang}</td> |
|---|
| 166 | </tr> |
|---|
| 167 | |
|---|
| 168 | {foreach from=$points item=point} |
|---|
| 169 | |
|---|
| 170 | <tr class={cycle}> |
|---|
| 171 | <td align='center'><strong>{$point.place}</strong></td> |
|---|
| 172 | <td align='center'><a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&pointsID={$point.pointsID}&edit=1">{$point.points}</a></td> |
|---|
| 173 | <td align='center'> |
|---|
| 174 | <a href="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}&pointsID={$point.pointsID}&edit=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonPointsEditS.png" alt="" title="{lang}wcf.racing.league.point.edit{/lang}" /></a> |
|---|
| 175 | <a href="index.php?action=RacingLeagueDeletePoint{@SID_ARG_2ND}&pointsID={$point.pointsID}" onclick="return confirm('{lang}wcf.racing.league.point.delete.confirm{/lang}');"><img src="{@RELATIVE_WCF_DIR}icon/deleteS.png" alt="" title="{lang}wcf.racing.league.point.delete{/lang}" /></a> |
|---|
| 176 | </td> |
|---|
| 177 | </tr> |
|---|
| 178 | |
|---|
| 179 | {/foreach} |
|---|
| 180 | |
|---|
| 181 | <tr class={cycle}> |
|---|
| 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> |
|---|
| 185 | </tr> |
|---|
| 186 | </table> |
|---|
| 187 | </div> |
|---|
| 188 | </div> |
|---|
| 189 | </div> |
|---|
| 190 | |
|---|
| 191 | </div> |
|---|
| 192 | </div> |
|---|
| 193 | |
|---|
| 194 | {else} |
|---|
| 195 | |
|---|
| 196 | <div class="formField"> |
|---|
| 197 | <p class="info" id="points.noPoint"> |
|---|
| 198 | {lang}wcf.racing.league.points.noPoint{/lang} |
|---|
| 199 | </p> |
|---|
| 200 | </div> |
|---|
| 201 | {/if} |
|---|
| 202 | |
|---|
| 203 | {if $saisons|count} |
|---|
| 204 | <div class="largeButtons"> |
|---|
| 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} |
|---|
| 207 | </ul> |
|---|
| 208 | </div> |
|---|
| 209 | <br /> |
|---|
| 210 | <br /> |
|---|
| 211 | <br /> |
|---|
| 212 | {/if} |
|---|
| 213 | |
|---|
| 214 | {if $saisonID == 0 && $saisons|count > 1} |
|---|
| 215 | <form method="post" action="index.php?form=RacingLeaguePoints{@SID_ARG_2ND}"> |
|---|
| 216 | <div class="border content"> |
|---|
| 217 | <div class="container-1"> |
|---|
| 218 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletS.png" alt="" /> {lang}wcf.racing.league.saisons.saisonSelect{/lang}</h3> |
|---|
| 219 | <p class="description">{lang}wcf.racing.league.saisons.saisonSelect.description{/lang}</p> |
|---|
| 220 | <br /> |
|---|
| 221 | <div class="border"> |
|---|
| 222 | <div class="containerHead"> |
|---|
| 223 | <h3 class="containerContent">{lang}wcf.racing.league.saisons.overview{/lang}</h3> |
|---|
| 224 | </div> |
|---|
| 225 | {cycle values='container-2,container-1' print=false advance=false} |
|---|
| 226 | <table class="tableList"> |
|---|
| 227 | <tbody> |
|---|
| 228 | <colgroup> |
|---|
| 229 | <col width="320"> |
|---|
| 230 | <col width="160"> |
|---|
| 231 | </colgroup> |
|---|
| 232 | <tr class="container-3"> |
|---|
| 233 | <td align='center'>{lang}wcf.racing.league.saisons.saisonname{/lang}</td> |
|---|
| 234 | <td align='center'>{lang}wcf.racing.league.saisons.action{/lang}</td> |
|---|
| 235 | </tr> |
|---|
| 236 | {foreach from=$saisons item=saison} |
|---|
| 237 | |
|---|
| 238 | <tr class={cycle}> |
|---|
| 239 | <td align='center'><a href="index.php?form=RacingLeagueTeams&activSaisonID={$saison.saisonID}{@SID_ARG_2ND}">{$saison.saisonname}</a></td> |
|---|
| 240 | <td align='center'> |
|---|
| 241 | {if $activSaisonID == $saison.saisonID} |
|---|
| 242 | <img src="{RELATIVE_WCF_DIR}icon/enabledS.png" art="" title="{lang}wcf.racing.league.saison.activaded{/lang}" /> |
|---|
| 243 | {else} |
|---|
| 244 | <a href="index.php?form=RacingLeaguePoints&activSaisonID={$saison.saisonID}{@SID_ARG_2ND}"><img src="{RELATIVE_WCF_DIR}icon/disabledS.png" art="" title="{lang}wcf.racing.league.saison.activ{/lang}"/></a> |
|---|
| 245 | {/if} |
|---|
| 246 | </td> |
|---|
| 247 | </tr> |
|---|
| 248 | {/foreach} |
|---|
| 249 | </table> |
|---|
| 250 | </div> |
|---|
| 251 | </div> |
|---|
| 252 | </div> |
|---|
| 253 | {/if} |
|---|
| 254 | |
|---|
| 255 | {else} |
|---|
| 256 | |
|---|
| 257 | <br /> |
|---|
| 258 | <div class="formField"> |
|---|
| 259 | <p class="info" id="saisons.noSaison"> |
|---|
| 260 | {lang}wcf.racing.league.saisons.noSaison{/lang} |
|---|
| 261 | </p> |
|---|
| 262 | </div> |
|---|
| 263 | {/if} |
|---|
| 264 | |
|---|
| 265 | <br /> |
|---|
| 266 | <div id="racingLeagueCopyright"> |
|---|
| 267 | <p class="footer" style="font-size: .79em; text-align: center;white-space: nowrap; text-decoration: none; ">{lang}wcf.racing.league.copyright{/lang}</p> |
|---|
| 268 | </div> |
|---|
| 269 | </div> |
|---|
| 270 | {include file='footer' sandbox=false} |
|---|
| 271 | </body> |
|---|
| 272 | </html> |
|---|