| 1 | {include file='header'} |
|---|
| 2 | {include file='Wysiwyg'} |
|---|
| 3 | <script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/TabbedPane.class.js"></script> |
|---|
| 4 | <script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/ImageResizer.class.js"></script> |
|---|
| 5 | <style type="text/css">@import url("{@RELATIVE_WCF_DIR}style/wysiwyg.css");</style> |
|---|
| 6 | <script type="text/javascript"> |
|---|
| 7 | //<![CDATA[ |
|---|
| 8 | function setLinkType(newType) { |
|---|
| 9 | switch (newType) { |
|---|
| 10 | case 0: |
|---|
| 11 | hideOptions('width', 'height'); |
|---|
| 12 | showOptions(); |
|---|
| 13 | break; |
|---|
| 14 | case 1: |
|---|
| 15 | hideOptions('width', 'height'); |
|---|
| 16 | showOptions(); |
|---|
| 17 | break; |
|---|
| 18 | case 2: |
|---|
| 19 | hideOptions(); |
|---|
| 20 | showOptions('width', 'height'); |
|---|
| 21 | break; |
|---|
| 22 | } |
|---|
| 23 | } |
|---|
| 24 | onloadEvents.push(function() { setLinkType({@$LinkType}); }); |
|---|
| 25 | //]]> |
|---|
| 26 | </script> |
|---|
| 27 | <script type="text/javascript"> |
|---|
| 28 | //<![CDATA[ |
|---|
| 29 | function setPermissionType(newType) { |
|---|
| 30 | switch (newType) { |
|---|
| 31 | case 0: |
|---|
| 32 | hideOptions('post', 'points', 'money'); |
|---|
| 33 | showOptions(); |
|---|
| 34 | break; |
|---|
| 35 | case 1: |
|---|
| 36 | hideOptions('points', 'money'); |
|---|
| 37 | showOptions('post'); |
|---|
| 38 | break; |
|---|
| 39 | case 2: |
|---|
| 40 | hideOptions('post', 'money'); |
|---|
| 41 | showOptions('points'); |
|---|
| 42 | break; |
|---|
| 43 | case 3: |
|---|
| 44 | hideOptions('post', 'points'); |
|---|
| 45 | showOptions('money'); |
|---|
| 46 | break; |
|---|
| 47 | } |
|---|
| 48 | } |
|---|
| 49 | onloadEvents.push(function() { setPermissionType({@$PermissionType}); }); |
|---|
| 50 | //]]> |
|---|
| 51 | </script> |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | <div class="mainHeadline"> |
|---|
| 55 | <img src="{@RELATIVE_WCF_DIR}icon/gamemenue{@$action|ucfirst}L.png" alt="" /> |
|---|
| 56 | <div class="headlineContainer"> |
|---|
| 57 | <h2>{lang}wcf.acp.gamemenue.{@$action}{/lang}</h2> |
|---|
| 58 | {if $menue_id|isset}<p>{lang}{$name}{/lang}</p>{/if} |
|---|
| 59 | </div> |
|---|
| 60 | </div> |
|---|
| 61 | |
|---|
| 62 | {if $errorField} |
|---|
| 63 | <p class="error">{lang}wcf.global.form.error{/lang}</p> |
|---|
| 64 | {/if} |
|---|
| 65 | {if $success|isset} |
|---|
| 66 | <p class="success">{if $action == 'add'}{lang}wcf.acp.gamemenue.add.success{/lang}{else}{lang}wcf.acp.gamemenue.edit.success{/lang}{/if}</p> |
|---|
| 67 | {/if} |
|---|
| 68 | |
|---|
| 69 | <div class="contentHeader"> |
|---|
| 70 | <div class="largeButtons"> |
|---|
| 71 | <ul><li><a href="index.php?page=GamemenueList&packageID={@PACKAGE_ID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/gamemenueM.png" alt="" title="{lang}wcf.acp.gamemenue.view{/lang}" /> <span>{lang}wcf.acp.gamemenue.view{/lang}</span></a></li></ul> |
|---|
| 72 | </div> |
|---|
| 73 | </div> |
|---|
| 74 | |
|---|
| 75 | <form method="post" action="index.php?form=Gamemenue{@$action|ucfirst}"> |
|---|
| 76 | <div class="border content"> |
|---|
| 77 | <div class="container-1"> |
|---|
| 78 | <h3 class="subHeadline">{lang}wcf.acp.gamemenue.data{/lang}</h3> |
|---|
| 79 | <div class="formElement" id="position"> |
|---|
| 80 | <div class="formFieldLabel"> |
|---|
| 81 | <label for="title">{lang}wcf.acp.gamemenue.position{/lang}</label> |
|---|
| 82 | </div> |
|---|
| 83 | <div class="formField"> |
|---|
| 84 | <label id="position"><input type="text" size="5" name="position" value="{$position}" /></label> |
|---|
| 85 | </div> |
|---|
| 86 | </div> |
|---|
| 87 | <fieldset> |
|---|
| 88 | <legend>{lang}wcf.acp.gamemenue.data{/lang}</legend> |
|---|
| 89 | <div class="formElement{if $errorField == 'name'} formError{/if}"> |
|---|
| 90 | <div class="formFieldLabel"> |
|---|
| 91 | <label for="title">{lang}wcf.acp.gamemenue.name{/lang}</label> |
|---|
| 92 | </div> |
|---|
| 93 | <div class="formField"> |
|---|
| 94 | <input type="text" class="inputText" id="name" name="name" value="{$name}" /> |
|---|
| 95 | {if $errorField == 'name'} |
|---|
| 96 | <p class="innerError"> |
|---|
| 97 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 98 | </p> |
|---|
| 99 | {/if} |
|---|
| 100 | </div> |
|---|
| 101 | </div> |
|---|
| 102 | <div class="formElement{if $errorField == 'link'} formError{/if}"> |
|---|
| 103 | <div class="formFieldLabel"> |
|---|
| 104 | <label for="title">{lang}wcf.acp.gamemenue.link{/lang}</label> |
|---|
| 105 | </div> |
|---|
| 106 | <div class="formField"> |
|---|
| 107 | <input type="text" class="inputText" id="link" name="link" value="{$link}" /> |
|---|
| 108 | {if $errorField == 'title'} |
|---|
| 109 | <p class="innerError"> |
|---|
| 110 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 111 | </p> |
|---|
| 112 | {/if} |
|---|
| 113 | </div> |
|---|
| 114 | </div> |
|---|
| 115 | <div class="formElement{if $errorField == 'bild'} formError{/if}"> |
|---|
| 116 | <div class="formFieldLabel"> |
|---|
| 117 | <label for="bild">{lang}wcf.acp.gamemenue.bild{/lang}</label> |
|---|
| 118 | </div> |
|---|
| 119 | <div class="formField"> |
|---|
| 120 | <input type="text" class="inputText" id="bild" name="bild" value="{$bild}" /> |
|---|
| 121 | </div> |
|---|
| 122 | </div> |
|---|
| 123 | </fieldset> |
|---|
| 124 | <fieldset> |
|---|
| 125 | <legend>{lang}wcf.acp.gamemenue.text{/lang}</legend> |
|---|
| 126 | <div class="formElement{if $errorField == 'text'} formError{/if}" id="editor"> |
|---|
| 127 | <div class="formField"> |
|---|
| 128 | <textarea name="text" id="text" rows="15" cols="40" tabindex="3">{$text}</textarea> |
|---|
| 129 | {if $errorField == 'text'} |
|---|
| 130 | <p class="innerError"> |
|---|
| 131 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 132 | {if $errorType == 'tooLong'}{lang}wcf.message.error.tooLong{/lang}{/if} |
|---|
| 133 | {if $errorType == 'censoredWordsFound'}{lang}wcf.message.error.censoredWordsFound{/lang}{/if} |
|---|
| 134 | </p> |
|---|
| 135 | {/if} |
|---|
| 136 | </div> |
|---|
| 137 | </div> |
|---|
| 138 | {include file='messageFormTabs'} |
|---|
| 139 | </fieldset> |
|---|
| 140 | <fieldset> |
|---|
| 141 | <legend>{lang}wcf.acp.gamemenue.linkoptions{/lang}</legend> |
|---|
| 142 | <div class="formElement" id="LinkType"> |
|---|
| 143 | <ul class="formOptions"> |
|---|
| 144 | <li><label><input onclick="if (IS_SAFARI) setLinkType(0)" onfocus="setLinkType(0)" type="radio" name="LinkType" value="0" {if $LinkType == 0}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.nowin{/lang}</label></li> |
|---|
| 145 | <li><label><input onclick="if (IS_SAFARI) setLinkType(1)" onfocus="setLinkType(1)" type="radio" name="LinkType" value="1" {if $LinkType == 1}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.target{/lang}</label></li> |
|---|
| 146 | <li><label><input onclick="if (IS_SAFARI) setLinkType(2)" onfocus="setLinkType(2)" type="radio" name="LinkType" value="2" {if $LinkType == 2}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.extend{/lang}</label></li> |
|---|
| 147 | </ul> |
|---|
| 148 | </div> |
|---|
| 149 | <div class="formElement" id="width"> |
|---|
| 150 | <div class="formFieldLabel"> |
|---|
| 151 | <label for="width">{lang}wcf.acp.gamemenue.width{/lang}</label> |
|---|
| 152 | </div> |
|---|
| 153 | <div class="formField"> |
|---|
| 154 | <label id="width"><input type="text" size="5" name="width" value="{$width}" /></label> |
|---|
| 155 | </div> |
|---|
| 156 | </div> |
|---|
| 157 | <div class="formElement" id="height"> |
|---|
| 158 | <div class="formFieldLabel"> |
|---|
| 159 | <label for="height">{lang}wcf.acp.gamemenue.height{/lang}</label> |
|---|
| 160 | </div> |
|---|
| 161 | <div class="formField"> |
|---|
| 162 | <label id="height"><input type="text" size="5" name="height" value="{$height}" /></label> |
|---|
| 163 | </div> |
|---|
| 164 | </div> |
|---|
| 165 | </fieldset> |
|---|
| 166 | <fieldset> |
|---|
| 167 | <legend>{lang}wcf.acp.gamemenue.gameoptions{/lang}</legend> |
|---|
| 168 | <div class="formElement" id="PermissionType"> |
|---|
| 169 | <ul class="formOptions"> |
|---|
| 170 | <li><label><input onclick="if (IS_SAFARI) setPermissionType(0)" onfocus="setPermissionType(0)" type="radio" name="PermissionType" value="0" {if $PermissionType == 0}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.nixtest1{/lang}</label></li> |
|---|
| 171 | <li><label><input onclick="if (IS_SAFARI) setPermissionType(1)" onfocus="setPermissionType(1)" type="radio" name="PermissionType" value="1" {if $PermissionType == 1}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.post1{/lang}</label></li> |
|---|
| 172 | <li><label><input onclick="if (IS_SAFARI) setPermissionType(2)" onfocus="setPermissionType(2)" type="radio" name="PermissionType" value="2" {if $PermissionType == 2}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.points1{/lang}</label></li> |
|---|
| 173 | {if $GUTHABEN_ENABLE_GLOBAL} |
|---|
| 174 | <li><label><input onclick="if (IS_SAFARI) setPermissionType(3)" onfocus="setPermissionType(3)" type="radio" name="PermissionType" value="3" {if $PermissionType == 3}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.money1{/lang}</label></li> |
|---|
| 175 | {/if} |
|---|
| 176 | </ul> |
|---|
| 177 | </div> |
|---|
| 178 | <div class="formElement" id="post"> |
|---|
| 179 | <div class="formField"> |
|---|
| 180 | <label id="post"><input type="text" size="5" name="post" value="{$post}" /> {lang}wcf.acp.gamemenue.post2{/lang}</label> |
|---|
| 181 | </div> |
|---|
| 182 | </div> |
|---|
| 183 | <div class="formElement" id="points"> |
|---|
| 184 | <div class="formField"> |
|---|
| 185 | <label id="points"><input type="text" size="5" name="points" value="{$points}" /> {lang}wcf.acp.gamemenue.points2{/lang}</label> |
|---|
| 186 | </div> |
|---|
| 187 | </div> |
|---|
| 188 | <div class="formElement" id="money"> |
|---|
| 189 | <div class="formField"> |
|---|
| 190 | <label id="money"><input type="text" size="5" name="money" value="{$money}" /> {lang}wcf.acp.gamemenue.money2{/lang}</label> |
|---|
| 191 | </div> |
|---|
| 192 | </div> |
|---|
| 193 | <div class="formElement" id="showhit"> |
|---|
| 194 | <div class="formField"> |
|---|
| 195 | <label id="showhit"><input type="checkbox" name="showhit" value="1" {if $showhit}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.showhit{/lang}</label> |
|---|
| 196 | </div> |
|---|
| 197 | </div> |
|---|
| 198 | {if $action == 'edit'} |
|---|
| 199 | <div class="formElement" id="hit"> |
|---|
| 200 | <div class="formFieldLabel"> |
|---|
| 201 | <label for="hit">{lang}wcf.acp.gamemenue.hit{/lang}</label> |
|---|
| 202 | </div> |
|---|
| 203 | <div class="formField"> |
|---|
| 204 | <label id="hit"><input type="text" size="5" name="hit" value="{$hit}" /></label> |
|---|
| 205 | </div> |
|---|
| 206 | </div> |
|---|
| 207 | {/if} |
|---|
| 208 | <div class="formElement" id="active"> |
|---|
| 209 | <div class="formField"> |
|---|
| 210 | <label id="active"><input type="checkbox" name="active" value="1" {if $active}checked="checked" {/if}/> {lang}wcf.acp.gamemenue.active{/lang}</label> |
|---|
| 211 | </div> |
|---|
| 212 | </div> |
|---|
| 213 | </fieldset> |
|---|
| 214 | </div> |
|---|
| 215 | </div> |
|---|
| 216 | <div class="formSubmit"> |
|---|
| 217 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 218 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 219 | <input type="hidden" name="packageID" value="{@PACKAGE_ID}" /> |
|---|
| 220 | <input type="hidden" name="action" value="{@$action}" /> |
|---|
| 221 | {@SID_INPUT_TAG} |
|---|
| 222 | {if $menue_id|isset}<input type="hidden" name="menue_id" value="{@$menue_id}" />{/if} |
|---|
| 223 | </div> |
|---|
| 224 | </form> |
|---|
| 225 | |
|---|
| 226 | {include file='footer'} |
|---|