| 1 | {include file='documentHeader'} |
|---|
| 2 | <head> |
|---|
| 3 | <title>{lang}wcf.racing.league.title.punish{/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><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/saisonwS.png" alt="" /> <span>{lang}wcf.racing.league.title.results{/lang}</span></a> »</li> |
|---|
| 13 | <li><img src="{@RELATIVE_WCF_DIR}icon/saisonWarningS.png" alt="" /> <span>{lang}wcf.racing.league.title.punish{/lang}</span></li> |
|---|
| 14 | </ul><br /> |
|---|
| 15 | <div class="mainHeadline"> |
|---|
| 16 | <img src="{@RELATIVE_WCF_DIR}icon/saisonWarningL.png" alt="" /> |
|---|
| 17 | <div class="headlineContainer"> |
|---|
| 18 | <h2> {lang}wcf.racing.league.title.punish{/lang}</h2> |
|---|
| 19 | <p>{lang}wcf.racing.league.title.punish.description{/lang}</p> |
|---|
| 20 | </div> |
|---|
| 21 | </div> |
|---|
| 22 | |
|---|
| 23 | {if $userMessages|isset}{@$userMessages}{/if} |
|---|
| 24 | |
|---|
| 25 | {if $errorField} |
|---|
| 26 | <p class="error">{lang}wcf.global.form.error{/lang}</p> |
|---|
| 27 | {/if} |
|---|
| 28 | |
|---|
| 29 | {if $errorMessage|isset} |
|---|
| 30 | <p class="error">{@$errorMessage}</p> |
|---|
| 31 | {/if} |
|---|
| 32 | |
|---|
| 33 | {include file='racingLeagueLargeButtons' sandbox=false} |
|---|
| 34 | |
|---|
| 35 | {if $saisons|count > 0} |
|---|
| 36 | |
|---|
| 37 | {if $saisons.$activeSaisonID|isset}<p class="info">{lang}wcf.racing.league.saison.selected{/lang}</p>{/if} |
|---|
| 38 | |
|---|
| 39 | {if $addPunish == 1 && $raceID == 0} |
|---|
| 40 | //hier wird das Rennen ausgewÀhlt, in der die Straftat gefahren wurde |
|---|
| 41 | <form method="post" action="index.php?form=RacingLeaguePunish{@SID_ARG_2ND}&addPunish=1"> |
|---|
| 42 | <div class="border content"> |
|---|
| 43 | <div class="container-1"> |
|---|
| 44 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonWarningAddS.png" alt="" /> {lang}wcf.racing.league.punish.addPunish{/lang}</h3> |
|---|
| 45 | <p class="description">{lang}wcf.racing.league.punish.addPunish.description{/lang}</p> |
|---|
| 46 | <br /> |
|---|
| 47 | <div class="formElement{if $errorField == 'punishRace'} formError{/if}"> |
|---|
| 48 | <div class="formFieldLabel"> |
|---|
| 49 | <label for="punishRace">{lang}wcf.racing.league.addPunish.racename{/lang}</label> |
|---|
| 50 | </div> |
|---|
| 51 | <div class="formField"> |
|---|
| 52 | |
|---|
| 53 | <select name='raceID'> |
|---|
| 54 | {foreach from=$drivedRaces item=value} |
|---|
| 55 | <option value='{$value.raceID}'>{$value.raceName}<option> |
|---|
| 56 | {/foreach} |
|---|
| 57 | </select> |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | {if $errorField == 'punishRace'} |
|---|
| 61 | <p class="innerError"> |
|---|
| 62 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 63 | </p> |
|---|
| 64 | {/if} |
|---|
| 65 | </div> |
|---|
| 66 | </div> |
|---|
| 67 | </div> |
|---|
| 68 | </div> |
|---|
| 69 | <div class="formSubmit"> |
|---|
| 70 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 71 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 72 | {@SID_INPUT_TAG} |
|---|
| 73 | </div> |
|---|
| 74 | </form> |
|---|
| 75 | {/if} |
|---|
| 76 | |
|---|
| 77 | {if $addPunish == 1 && $raceID > 0} |
|---|
| 78 | //hier kann man die Strafe einem Fahrer zuordnen und den Grund sowie die Minuspunkte deklarieren. |
|---|
| 79 | <form method="post" action="index.php?form=RacingLeaguePunish{@SID_ARG_2ND}&addPunish=1&raceID={$raceID}"> |
|---|
| 80 | <div class="border content"> |
|---|
| 81 | <div class="container-1"> |
|---|
| 82 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonWarningAddS.png" alt="" /> {lang}wcf.racing.league.punish.addaddPunish{/lang}</h3> |
|---|
| 83 | <p class="description">{lang}wcf.racing.league.punish.addaddPunish.description{/lang}</p> |
|---|
| 84 | <br /> |
|---|
| 85 | <div class="formElement{if $errorField == 'driver'} formError{/if}"> |
|---|
| 86 | <div class="formFieldLabel"> |
|---|
| 87 | <label for="driver">{lang}wcf.racing.league.addPunish.driver{/lang}</label> |
|---|
| 88 | </div> |
|---|
| 89 | <div class="formField"> |
|---|
| 90 | |
|---|
| 91 | <select name='driver'> |
|---|
| 92 | <option value="">----------</option> |
|---|
| 93 | {foreach from=$users item=value} |
|---|
| 94 | <option value='{$value.userID}' {if $driver == $value.userID}selected{/if}>{$value.username}<option> |
|---|
| 95 | {/foreach} |
|---|
| 96 | </select> |
|---|
| 97 | <br /> |
|---|
| 98 | |
|---|
| 99 | {if $errorField == 'driver'} |
|---|
| 100 | <p class="innerError"> |
|---|
| 101 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 102 | </p> |
|---|
| 103 | {/if} |
|---|
| 104 | </div> |
|---|
| 105 | </div> |
|---|
| 106 | |
|---|
| 107 | <div class="formElement{if $errorField == 'minusPoints'} formError{/if}"> |
|---|
| 108 | <div class="formFieldLabel"> |
|---|
| 109 | <label for="minusPoints">{lang}wcf.racing.league.addPunish.minusPoints{/lang}</label> |
|---|
| 110 | </div> |
|---|
| 111 | <div class="formField"> |
|---|
| 112 | <input type="text" class="inputText" name="minusPoints" id="minusPoints" value="0" /> |
|---|
| 113 | |
|---|
| 114 | {if $errorField == 'minusPoints'} |
|---|
| 115 | <p class="innerError"> |
|---|
| 116 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 117 | </p> |
|---|
| 118 | {/if} |
|---|
| 119 | </div> |
|---|
| 120 | </div> |
|---|
| 121 | |
|---|
| 122 | <div class="formElement{if $errorField == 'punishReason'} formError{/if}"> |
|---|
| 123 | <div class="formFieldLabel"> |
|---|
| 124 | <label for="punishReason">{lang}wcf.racing.league.addPunish.punishReason{/lang}</label> |
|---|
| 125 | </div> |
|---|
| 126 | <div class="formField"> |
|---|
| 127 | <textarea rows="8" cols="20" name="punishReason" id="punishReason"></textarea> |
|---|
| 128 | {if $errorField == 'punishReason'} |
|---|
| 129 | <p class="innerError"> |
|---|
| 130 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 131 | </p> |
|---|
| 132 | {/if} |
|---|
| 133 | </div> |
|---|
| 134 | </div> |
|---|
| 135 | |
|---|
| 136 | |
|---|
| 137 | </div> |
|---|
| 138 | </div> |
|---|
| 139 | <div class="formSubmit"> |
|---|
| 140 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 141 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 142 | {@SID_INPUT_TAG} |
|---|
| 143 | </div> |
|---|
| 144 | </form> |
|---|
| 145 | {/if} |
|---|
| 146 | |
|---|
| 147 | {if $editPunishID > 0} |
|---|
| 148 | <form method="post" action="index.php?form=RacingLeaguePunish{@SID_ARG_2ND}&editPunishID={$editPunishID}&edit=1"> |
|---|
| 149 | <div class="border content"> |
|---|
| 150 | <div class="container-1"> |
|---|
| 151 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonwEditS.png" alt="" /> {lang}wcf.racing.league.punish.editPunish{/lang}</h3> |
|---|
| 152 | <p class="description">{lang}wcf.racing.league.punish.editPunish.description{/lang}</p> |
|---|
| 153 | <br /> |
|---|
| 154 | {$editRaceName} |
|---|
| 155 | <div class="formElement{if $errorField == 'place'} formError{/if}"> |
|---|
| 156 | <div class="formFieldLabel"> |
|---|
| 157 | <label for="place">{lang}wcf.racing.league.editResult{/lang}</label> |
|---|
| 158 | </div> |
|---|
| 159 | <div class="formField"> |
|---|
| 160 | |
|---|
| 161 | {foreach from=$editResult item=value} |
|---|
| 162 | {$value.place} |
|---|
| 163 | <select name='result[{$value.place}]'> |
|---|
| 164 | <option value='0,{$value.resultID}'> ---------- <option> |
|---|
| 165 | {foreach from=$users item=user} |
|---|
| 166 | <option value='{$user.userID},{$value.resultID}' {if $user.userID == $value.userID}selected{/if}> {$user.username} </option> |
|---|
| 167 | {/foreach} |
|---|
| 168 | </select> |
|---|
| 169 | <br /> |
|---|
| 170 | {/foreach} |
|---|
| 171 | |
|---|
| 172 | {if $errorField == 'result'} |
|---|
| 173 | <p class="innerError"> |
|---|
| 174 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 175 | </p> |
|---|
| 176 | {/if} |
|---|
| 177 | </div> |
|---|
| 178 | </div> |
|---|
| 179 | </div> |
|---|
| 180 | </div> |
|---|
| 181 | <div class="formSubmit"> |
|---|
| 182 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 183 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 184 | {@SID_INPUT_TAG} |
|---|
| 185 | </div> |
|---|
| 186 | </form> |
|---|
| 187 | {/if} |
|---|
| 188 | |
|---|
| 189 | {if $activeSaisonID != 0 && $punish|count > 0} |
|---|
| 190 | |
|---|
| 191 | <div class="border content"> |
|---|
| 192 | <div class="container-1"> |
|---|
| 193 | |
|---|
| 194 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonWarningS.png" alt="" /> {lang}wcf.racing.league.punish.overview{/lang}</h3> |
|---|
| 195 | <p class="description">{lang}wcf.racing.league.punish.overview.description{/lang}</p> |
|---|
| 196 | <br /> |
|---|
| 197 | <div class="container-1"> |
|---|
| 198 | <div id="overviewInformation"> |
|---|
| 199 | <div class="border"> |
|---|
| 200 | <div class="containerHead"> |
|---|
| 201 | <h3 class="containerContent">{lang}wcf.racing.league.punish.overview{/lang}</h3> |
|---|
| 202 | </div> |
|---|
| 203 | {cycle values='container-2,container-1' print=false advance=false} |
|---|
| 204 | <table class="tableList"> |
|---|
| 205 | |
|---|
| 206 | <colgroup> |
|---|
| 207 | <col width="80"> |
|---|
| 208 | <col width="320"> |
|---|
| 209 | <col width="80"> |
|---|
| 210 | <col width="160"> |
|---|
| 211 | </colgroup> |
|---|
| 212 | |
|---|
| 213 | <thead> |
|---|
| 214 | <tr class="tableHead"> |
|---|
| 215 | <td align='center'>{lang}wcf.racing.league.results.raceNo{/lang}</td> |
|---|
| 216 | <td align='center'>{lang}wcf.racing.league.results.racename{/lang}</td> |
|---|
| 217 | <td align='center'>{lang}wcf.racing.league.results.punish{/lang}</td> |
|---|
| 218 | <td align='center'>{lang}wcf.racing.league.results.action{/lang}</td> |
|---|
| 219 | </tr> |
|---|
| 220 | </thead> |
|---|
| 221 | <tbody> |
|---|
| 222 | {foreach from=$punish item=punish} |
|---|
| 223 | |
|---|
| 224 | <tr class={cycle}> |
|---|
| 225 | <td align='center'><strong>{$punish.raceNo}</strong></td> |
|---|
| 226 | <td align='center'><a href="index.php?form=RacingLeaguePunish{@SID_ARG_2ND}&punishRaceID={$punish.raceID}">{$punish.raceName}</a></td> |
|---|
| 227 | <td align='center'></td> |
|---|
| 228 | <td align='center'><a href="index.php?form=RacingLeaguePunish{@SID_ARG_2ND}&punishRaceID={$punish.raceID}"><img src="{@RELATIVE_WCF_DIR}icon/saisonWarningAddS.png" alt="" title="{lang}wcf.racing.league.punish.Add{/lang}" /></a></td> |
|---|
| 229 | </tr> |
|---|
| 230 | |
|---|
| 231 | {/foreach} |
|---|
| 232 | |
|---|
| 233 | </tbody> |
|---|
| 234 | </table> |
|---|
| 235 | </div> |
|---|
| 236 | </div> |
|---|
| 237 | </div> |
|---|
| 238 | |
|---|
| 239 | </div> |
|---|
| 240 | </div> |
|---|
| 241 | |
|---|
| 242 | {else} |
|---|
| 243 | |
|---|
| 244 | <div class="formField"> |
|---|
| 245 | <p class="info" id="results.noPunish"> |
|---|
| 246 | {lang}wcf.racing.league.results.noPunish{/lang} |
|---|
| 247 | </p> |
|---|
| 248 | </div> |
|---|
| 249 | {/if} |
|---|
| 250 | |
|---|
| 251 | {if $saisons|count} |
|---|
| 252 | <div class="largeButtons"> |
|---|
| 253 | <ul> |
|---|
| 254 | {if $this->user->getPermission('admin.racing.league.caneditresults')}<li><a href="index.php?form=RacingLeagueResults{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/saisonwM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.backToResult{/lang}</span></a></li>{/if} |
|---|
| 255 | {if $this->user->getPermission('admin.racing.league.caneditresults')}<li><a href="index.php?form=RacingLeaguePunish{@SID_ARG_2ND}&addPunish=1"><img src="{@RELATIVE_WCF_DIR}icon/saisonWarningAddM.png" alt="" /> <span>{lang}wcf.racing.league.button.editSaisons.addPunish{/lang}</span></a></li>{/if} |
|---|
| 256 | </ul> |
|---|
| 257 | </div> |
|---|
| 258 | <br /> |
|---|
| 259 | <br /> |
|---|
| 260 | <br /> |
|---|
| 261 | {/if} |
|---|
| 262 | |
|---|
| 263 | {if $saisonID == 0 && $saisons|count > 1} |
|---|
| 264 | <form method="post" action="index.php?form=RacingLeagueResults{@SID_ARG_2ND}"> |
|---|
| 265 | <div class="border content"> |
|---|
| 266 | <div class="container-1"> |
|---|
| 267 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletS.png" alt="" /> {lang}wcf.racing.league.saisons.saisonSelect{/lang}</h3> |
|---|
| 268 | <p class="description">{lang}wcf.racing.league.saisons.saisonSelect.description{/lang}</p> |
|---|
| 269 | <br /> |
|---|
| 270 | <div class="border"> |
|---|
| 271 | <div class="containerHead"> |
|---|
| 272 | <h3 class="containerContent">{lang}wcf.racing.league.saisons.overview{/lang}</h3> |
|---|
| 273 | </div> |
|---|
| 274 | |
|---|
| 275 | <table class="tableList"> |
|---|
| 276 | |
|---|
| 277 | <colgroup> |
|---|
| 278 | <col width="320"> |
|---|
| 279 | <col width="160"> |
|---|
| 280 | </colgroup> |
|---|
| 281 | |
|---|
| 282 | <thead> |
|---|
| 283 | <tr class="tableHead"> |
|---|
| 284 | <td align='center'>{lang}wcf.racing.league.saisons.saisonname{/lang}</td> |
|---|
| 285 | <td align='center'>{lang}wcf.racing.league.saisons.action{/lang}</td> |
|---|
| 286 | </tr> |
|---|
| 287 | </thead> |
|---|
| 288 | <tbody> |
|---|
| 289 | {foreach from=$saisons item=saison} |
|---|
| 290 | |
|---|
| 291 | <tr class="container-{cycle values='1,2'}"> |
|---|
| 292 | <td align='center'><a href="index.php?form=RacingLeagueResults&activeSaisonID={$saison.saisonID}{@SID_ARG_2ND}">{$saison.saisonName}</a></td> |
|---|
| 293 | <td align='center'> |
|---|
| 294 | {if $activeSaisonID == $saison.saisonID} |
|---|
| 295 | <img src="{RELATIVE_WCF_DIR}icon/enabledS.png" art="" title="{lang}wcf.racing.league.saison.activaded{/lang}" /> |
|---|
| 296 | {else} |
|---|
| 297 | <a href="index.php?form=RacingLeagueResults&activeSaisonID={$saison.saisonID}{@SID_ARG_2ND}"><img src="{RELATIVE_WCF_DIR}icon/disabledS.png" art="" title="{lang}wcf.racing.league.saison.activ{/lang}"/></a> |
|---|
| 298 | {/if} |
|---|
| 299 | </td> |
|---|
| 300 | </tr> |
|---|
| 301 | {/foreach} |
|---|
| 302 | </tbody> |
|---|
| 303 | </table> |
|---|
| 304 | </div> |
|---|
| 305 | </div> |
|---|
| 306 | </div> |
|---|
| 307 | {/if} |
|---|
| 308 | |
|---|
| 309 | {else} |
|---|
| 310 | |
|---|
| 311 | <br /> |
|---|
| 312 | <div class="formField"> |
|---|
| 313 | <p class="info" id="saisons.noSaison"> |
|---|
| 314 | {lang}wcf.racing.league.saisons.noSaison{/lang} |
|---|
| 315 | </p> |
|---|
| 316 | </div> |
|---|
| 317 | {/if} |
|---|
| 318 | |
|---|
| 319 | <br /> |
|---|
| 320 | <div id="racingLeagueCopyright"> |
|---|
| 321 | <p class="footer" style="font-size: .79em; text-align: center;white-space: nowrap; text-decoration: none; ">{lang}wcf.racing.league.copyright{/lang}</p> |
|---|
| 322 | </div> |
|---|
| 323 | </div> |
|---|
| 324 | {include file='footer' sandbox=false} |
|---|
| 325 | </body> |
|---|
| 326 | </html> |
|---|