| 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} |
|---|
| 40 | <form method="post" action="index.php?form=RacingLeaguePunish{@SID_ARG_2ND}&newResults=1&raceID={$raceID}"> |
|---|
| 41 | <div class="border content"> |
|---|
| 42 | <div class="container-1"> |
|---|
| 43 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonS.png" alt="" /> {lang}wcf.racing.league.punish.newPunish{/lang}</h3> |
|---|
| 44 | <p class="description">{lang}wcf.racing.league.punish.newPunish.description{/lang}</p> |
|---|
| 45 | <br /> |
|---|
| 46 | {$raceName} |
|---|
| 47 | <div class="formElement{if $errorField == 'place'} formError{/if}"> |
|---|
| 48 | <div class="formFieldLabel"> |
|---|
| 49 | <label for="place">{lang}wcf.racing.league.newResult{/lang}</label> |
|---|
| 50 | </div> |
|---|
| 51 | <div class="formField"> |
|---|
| 52 | |
|---|
| 53 | {foreach from=$places item=value} |
|---|
| 54 | {$value.place} |
|---|
| 55 | <select name='result[{$value.place}]'> |
|---|
| 56 | <option value=''> ---------- <option> |
|---|
| 57 | {foreach from=$users item=user} |
|---|
| 58 | <option value='{$user.userID}'> {$user.username} </option> |
|---|
| 59 | {/foreach} |
|---|
| 60 | </select> |
|---|
| 61 | <br /> |
|---|
| 62 | {/foreach} |
|---|
| 63 | |
|---|
| 64 | {if $errorField == 'result'} |
|---|
| 65 | <p class="innerError"> |
|---|
| 66 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 67 | </p> |
|---|
| 68 | {/if} |
|---|
| 69 | </div> |
|---|
| 70 | </div> |
|---|
| 71 | </div> |
|---|
| 72 | </div> |
|---|
| 73 | <div class="formSubmit"> |
|---|
| 74 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 75 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 76 | {@SID_INPUT_TAG} |
|---|
| 77 | </div> |
|---|
| 78 | </form> |
|---|
| 79 | {/if} |
|---|
| 80 | |
|---|
| 81 | {if $editRaceID > 0} |
|---|
| 82 | <form method="post" action="index.php?form=RacingLeagueResults{@SID_ARG_2ND}&editRaceID={$editRaceID}&edit=1"> |
|---|
| 83 | <div class="border content"> |
|---|
| 84 | <div class="container-1"> |
|---|
| 85 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonwEditS.png" alt="" /> {lang}wcf.racing.league.punish.editPunish{/lang}</h3> |
|---|
| 86 | <p class="description">{lang}wcf.racing.league.punish.editPunish.description{/lang}</p> |
|---|
| 87 | <br /> |
|---|
| 88 | {$editRaceName} |
|---|
| 89 | <div class="formElement{if $errorField == 'place'} formError{/if}"> |
|---|
| 90 | <div class="formFieldLabel"> |
|---|
| 91 | <label for="place">{lang}wcf.racing.league.editResult{/lang}</label> |
|---|
| 92 | </div> |
|---|
| 93 | <div class="formField"> |
|---|
| 94 | |
|---|
| 95 | {foreach from=$editResult item=value} |
|---|
| 96 | {$value.place} |
|---|
| 97 | <select name='result[{$value.place}]'> |
|---|
| 98 | <option value='0,{$value.resultID}'> ---------- <option> |
|---|
| 99 | {foreach from=$users item=user} |
|---|
| 100 | <option value='{$user.userID},{$value.resultID}' {if $user.userID == $value.userID}selected{/if}> {$user.username} </option> |
|---|
| 101 | {/foreach} |
|---|
| 102 | </select> |
|---|
| 103 | <br /> |
|---|
| 104 | {/foreach} |
|---|
| 105 | |
|---|
| 106 | {if $errorField == 'result'} |
|---|
| 107 | <p class="innerError"> |
|---|
| 108 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 109 | </p> |
|---|
| 110 | {/if} |
|---|
| 111 | </div> |
|---|
| 112 | </div> |
|---|
| 113 | </div> |
|---|
| 114 | </div> |
|---|
| 115 | <div class="formSubmit"> |
|---|
| 116 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 117 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 118 | {@SID_INPUT_TAG} |
|---|
| 119 | </div> |
|---|
| 120 | </form> |
|---|
| 121 | {/if} |
|---|
| 122 | |
|---|
| 123 | {if $activeSaisonID != 0 && $punish|count > 0} |
|---|
| 124 | |
|---|
| 125 | <div class="border content"> |
|---|
| 126 | <div class="container-1"> |
|---|
| 127 | |
|---|
| 128 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonWarningS.png" alt="" /> {lang}wcf.racing.league.punish.overview{/lang}</h3> |
|---|
| 129 | <p class="description">{lang}wcf.racing.league.punish.overview.description{/lang}</p> |
|---|
| 130 | <br /> |
|---|
| 131 | <div class="container-1"> |
|---|
| 132 | <div id="overviewInformation"> |
|---|
| 133 | <div class="border"> |
|---|
| 134 | <div class="containerHead"> |
|---|
| 135 | <h3 class="containerContent">{lang}wcf.racing.league.punish.overview{/lang}</h3> |
|---|
| 136 | </div> |
|---|
| 137 | {cycle values='container-2,container-1' print=false advance=false} |
|---|
| 138 | <table class="tableList"> |
|---|
| 139 | |
|---|
| 140 | <colgroup> |
|---|
| 141 | <col width="80"> |
|---|
| 142 | <col width="320"> |
|---|
| 143 | <col width="80"> |
|---|
| 144 | <col width="160"> |
|---|
| 145 | </colgroup> |
|---|
| 146 | |
|---|
| 147 | <thead> |
|---|
| 148 | <tr class="tableHead"> |
|---|
| 149 | <td align='center'>{lang}wcf.racing.league.results.raceNo{/lang}</td> |
|---|
| 150 | <td align='center'>{lang}wcf.racing.league.results.racename{/lang}</td> |
|---|
| 151 | <td align='center'>{lang}wcf.racing.league.results.punish{/lang}</td> |
|---|
| 152 | <td align='center'>{lang}wcf.racing.league.results.action{/lang}</td> |
|---|
| 153 | </tr> |
|---|
| 154 | </thead> |
|---|
| 155 | <tbody> |
|---|
| 156 | {foreach from=$punish item=punish} |
|---|
| 157 | |
|---|
| 158 | <tr class={cycle}> |
|---|
| 159 | <td align='center'><strong>{$punish.raceNo}</strong></td> |
|---|
| 160 | <td align='center'><a href="index.php?form=RacingLeaguePunish{@SID_ARG_2ND}&punishRaceID={$punish.raceID}">{$punish.raceName}</a></td> |
|---|
| 161 | <td align='center'></td> |
|---|
| 162 | <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> |
|---|
| 163 | </tr> |
|---|
| 164 | |
|---|
| 165 | {/foreach} |
|---|
| 166 | |
|---|
| 167 | </tbody> |
|---|
| 168 | </table> |
|---|
| 169 | </div> |
|---|
| 170 | </div> |
|---|
| 171 | </div> |
|---|
| 172 | |
|---|
| 173 | </div> |
|---|
| 174 | </div> |
|---|
| 175 | |
|---|
| 176 | {else} |
|---|
| 177 | |
|---|
| 178 | <div class="formField"> |
|---|
| 179 | <p class="info" id="results.noPunish"> |
|---|
| 180 | {lang}wcf.racing.league.results.noPunish{/lang} |
|---|
| 181 | </p> |
|---|
| 182 | </div> |
|---|
| 183 | {/if} |
|---|
| 184 | |
|---|
| 185 | {if $groupID == 0} |
|---|
| 186 | |
|---|
| 187 | <div class="formField"> |
|---|
| 188 | <p class="info" id="results.noGroup"> |
|---|
| 189 | {lang}wcf.racing.league.results.noGroup{/lang} |
|---|
| 190 | </p> |
|---|
| 191 | </div> |
|---|
| 192 | |
|---|
| 193 | {/if} |
|---|
| 194 | |
|---|
| 195 | {if $saisons|count} |
|---|
| 196 | <div class="largeButtons"> |
|---|
| 197 | <ul> |
|---|
| 198 | {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} |
|---|
| 199 | {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} |
|---|
| 200 | </ul> |
|---|
| 201 | </div> |
|---|
| 202 | <br /> |
|---|
| 203 | <br /> |
|---|
| 204 | <br /> |
|---|
| 205 | {/if} |
|---|
| 206 | |
|---|
| 207 | {if $saisonID == 0 && $saisons|count > 1} |
|---|
| 208 | <form method="post" action="index.php?form=RacingLeagueResults{@SID_ARG_2ND}"> |
|---|
| 209 | <div class="border content"> |
|---|
| 210 | <div class="container-1"> |
|---|
| 211 | <h3 class="subHeadline"><img src="{@RELATIVE_WCF_DIR}icon/saisonGobletS.png" alt="" /> {lang}wcf.racing.league.saisons.saisonSelect{/lang}</h3> |
|---|
| 212 | <p class="description">{lang}wcf.racing.league.saisons.saisonSelect.description{/lang}</p> |
|---|
| 213 | <br /> |
|---|
| 214 | <div class="border"> |
|---|
| 215 | <div class="containerHead"> |
|---|
| 216 | <h3 class="containerContent">{lang}wcf.racing.league.saisons.overview{/lang}</h3> |
|---|
| 217 | </div> |
|---|
| 218 | |
|---|
| 219 | <table class="tableList"> |
|---|
| 220 | |
|---|
| 221 | <colgroup> |
|---|
| 222 | <col width="320"> |
|---|
| 223 | <col width="160"> |
|---|
| 224 | </colgroup> |
|---|
| 225 | |
|---|
| 226 | <thead> |
|---|
| 227 | <tr class="tableHead"> |
|---|
| 228 | <td align='center'>{lang}wcf.racing.league.saisons.saisonname{/lang}</td> |
|---|
| 229 | <td align='center'>{lang}wcf.racing.league.saisons.action{/lang}</td> |
|---|
| 230 | </tr> |
|---|
| 231 | </thead> |
|---|
| 232 | <tbody> |
|---|
| 233 | {foreach from=$saisons item=saison} |
|---|
| 234 | |
|---|
| 235 | <tr class="container-{cycle values='1,2'}"> |
|---|
| 236 | <td align='center'><a href="index.php?form=RacingLeagueResults&activeSaisonID={$saison.saisonID}{@SID_ARG_2ND}">{$saison.saisonName}</a></td> |
|---|
| 237 | <td align='center'> |
|---|
| 238 | {if $activeSaisonID == $saison.saisonID} |
|---|
| 239 | <img src="{RELATIVE_WCF_DIR}icon/enabledS.png" art="" title="{lang}wcf.racing.league.saison.activaded{/lang}" /> |
|---|
| 240 | {else} |
|---|
| 241 | <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> |
|---|
| 242 | {/if} |
|---|
| 243 | </td> |
|---|
| 244 | </tr> |
|---|
| 245 | {/foreach} |
|---|
| 246 | </tbody> |
|---|
| 247 | </table> |
|---|
| 248 | </div> |
|---|
| 249 | </div> |
|---|
| 250 | </div> |
|---|
| 251 | {/if} |
|---|
| 252 | |
|---|
| 253 | {else} |
|---|
| 254 | |
|---|
| 255 | <br /> |
|---|
| 256 | <div class="formField"> |
|---|
| 257 | <p class="info" id="saisons.noSaison"> |
|---|
| 258 | {lang}wcf.racing.league.saisons.noSaison{/lang} |
|---|
| 259 | </p> |
|---|
| 260 | </div> |
|---|
| 261 | {/if} |
|---|
| 262 | |
|---|
| 263 | <br /> |
|---|
| 264 | <div id="racingLeagueCopyright"> |
|---|
| 265 | <p class="footer" style="font-size: .79em; text-align: center;white-space: nowrap; text-decoration: none; ">{lang}wcf.racing.league.copyright{/lang}</p> |
|---|
| 266 | </div> |
|---|
| 267 | </div> |
|---|
| 268 | {include file='footer' sandbox=false} |
|---|
| 269 | </body> |
|---|
| 270 | </html> |
|---|