| 1 | {include file='header'} |
|---|
| 2 | {include file='Wysiwyg'} |
|---|
| 3 | <div class="mainHeadline"> |
|---|
| 4 | <img src="{@RELATIVE_WCF_DIR}icon/downloadDBData{@$action|ucfirst}L.png" alt="" /> |
|---|
| 5 | <div class="headlineContainer"> |
|---|
| 6 | <h2>{lang}wcf.acp.dldb.data.{@$action}{/lang}</h2> |
|---|
| 7 | {if $katID|isset}<p>{lang}{$name}{/lang}</p>{/if} |
|---|
| 8 | </div> |
|---|
| 9 | </div> |
|---|
| 10 | |
|---|
| 11 | {if $errorField} |
|---|
| 12 | <p class="error">{lang}wcf.global.form.error{/lang}</p> |
|---|
| 13 | {/if} |
|---|
| 14 | |
|---|
| 15 | {if $success|isset} |
|---|
| 16 | <p class="success">{lang}wcf.acp.dldb.{@$action}.success{/lang}</p> |
|---|
| 17 | {/if} |
|---|
| 18 | |
|---|
| 19 | <div class="contentHeader"> |
|---|
| 20 | <div class="largeButtons"> |
|---|
| 21 | <ul><li><a href="index.php?page=DownloadDBDataList&packageID={@PACKAGE_ID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/downloadDBDataListM.png" alt="" title="{lang}wcf.acp.dldb.data.list{/lang}" /> <span>{lang}wcf.acp.dldb.data.list{/lang}</span></a></li></ul> |
|---|
| 22 | </div> |
|---|
| 23 | </div> |
|---|
| 24 | |
|---|
| 25 | <form enctype="multipart/form-data" method="post" action="index.php?form=DownloadDBData{@$action|ucfirst}"> |
|---|
| 26 | <div class="border content"> |
|---|
| 27 | <div id="dataEdit"> |
|---|
| 28 | {if $katOptions|count > 0} |
|---|
| 29 | <fieldset class="noJavaScript"> |
|---|
| 30 | <legend class="noJavaScript">{lang}wcf.acp.dldb.data.data{/lang}</legend> |
|---|
| 31 | <div class="formElement{if $errorField == 'name'} formError{/if}" id="nameDiv"> |
|---|
| 32 | <div class="formFieldLabel"> |
|---|
| 33 | <label for="name">{lang}wcf.acp.dldb.data.name{/lang}</label> |
|---|
| 34 | </div> |
|---|
| 35 | <div class="formField"> |
|---|
| 36 | <input type="text" class="inputText" id="name" name="name" value="{$name}" /> |
|---|
| 37 | {if $errorField == 'name'} |
|---|
| 38 | <p class="innerError"> |
|---|
| 39 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 40 | </p> |
|---|
| 41 | {/if} |
|---|
| 42 | </div> |
|---|
| 43 | <div class="formFieldDesc hidden" id="nameHelpMessage"> |
|---|
| 44 | {lang}wcf.acp.dldb.data.name.description{/lang} |
|---|
| 45 | </div> |
|---|
| 46 | <script type="text/javascript">//<![CDATA[ |
|---|
| 47 | inlineHelp.register('name'); |
|---|
| 48 | //]]></script> |
|---|
| 49 | </div> |
|---|
| 50 | <div class="formElement"> |
|---|
| 51 | <div class="formFieldLabel"> |
|---|
| 52 | <label for="languageID">{lang}wcf.user.language{/lang}</label> |
|---|
| 53 | </div> |
|---|
| 54 | <div class="formField"> |
|---|
| 55 | <select name="languageID"> |
|---|
| 56 | {foreach from=$language item=item} |
|---|
| 57 | <option value="{$item.languageID}" {if $item.languageID == $languageID}selected{/if}>{@$item.languageName}</option> |
|---|
| 58 | {/foreach} |
|---|
| 59 | </select> |
|---|
| 60 | </div> |
|---|
| 61 | </div> |
|---|
| 62 | </fieldset> |
|---|
| 63 | <fieldset> |
|---|
| 64 | <legend>{lang}wcf.acp.dldb.data.description{/lang}</legend> |
|---|
| 65 | <textarea name="description" id="text" rows="5" cols="20">{$description}</textarea> |
|---|
| 66 | {if $errorField == 'description'} |
|---|
| 67 | <p class="innerError"> |
|---|
| 68 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 69 | {if $errorType == 'tooLong'}{lang}wcf.message.error.tooLong{/lang}{/if} |
|---|
| 70 | {if $errorType == 'censoredWordsFound'}{lang}wcf.message.error.censoredWordsFound{/lang}{/if} |
|---|
| 71 | </p> |
|---|
| 72 | {/if} |
|---|
| 73 | <div class="formFieldDesc hidden" id="descriptionHelpMessage""> |
|---|
| 74 | <p>{lang}wcf.acp.dldb.data.description.description{/lang}</p> |
|---|
| 75 | </div> |
|---|
| 76 | <script type="text/javascript">//<![CDATA[ |
|---|
| 77 | inlineHelp.register('description'); |
|---|
| 78 | //]]></script> |
|---|
| 79 | {include file="messageFormTabs"} |
|---|
| 80 | </fieldset> |
|---|
| 81 | <fieldset> |
|---|
| 82 | {if $action == 'edit' && $fileName != ''} |
|---|
| 83 | <div class="formElement" id="fileNameDiv"> |
|---|
| 84 | <div class="formFieldLabel"> |
|---|
| 85 | <label for="fileName">{lang}wcf.acp.dldb.data.fileName{/lang}</label> |
|---|
| 86 | </div> |
|---|
| 87 | <div class="formField"> |
|---|
| 88 | <input readonly type="text" class="inputText" id="fileName" name="fileName" value="{$fileName}" /> |
|---|
| 89 | </div> |
|---|
| 90 | </div> |
|---|
| 91 | {/if} |
|---|
| 92 | {if $action == 'edit' && $mimeType != ''} |
|---|
| 93 | <div class="formElement" id="mimeTypeDiv"> |
|---|
| 94 | <div class="formFieldLabel"> |
|---|
| 95 | <label for="mimeType">{lang}wcf.acp.dldb.data.mimeType{/lang}</label> |
|---|
| 96 | </div> |
|---|
| 97 | <div class="formField"> |
|---|
| 98 | <input readonly type="text" class="inputText" id="mimeType" name="mimeType" value="{$mimeType}" /> |
|---|
| 99 | </div> |
|---|
| 100 | </div> |
|---|
| 101 | {/if} |
|---|
| 102 | <div class="formGroup"> |
|---|
| 103 | <div class="formElement{if $errorField == 'katID'} formError{/if}" id="katIDDiv"> |
|---|
| 104 | <div class="formFieldLabel"> |
|---|
| 105 | <label for="katID">{lang}wcf.acp.dldb.data.katID{/lang}</label> |
|---|
| 106 | </div> |
|---|
| 107 | <div class="formField"> |
|---|
| 108 | <select name="katID" id="katID"> |
|---|
| 109 | <option value="0"></option> |
|---|
| 110 | {htmlOptions options=$katOptions disableEncoding=true selected=$katID} |
|---|
| 111 | </select> |
|---|
| 112 | {if $errorField == 'katID'} |
|---|
| 113 | <p class="innerError"> |
|---|
| 114 | {if $errorType == 'invalid'}{lang}wcf.acp.dldb.data.error.katID.invalid{/lang}{/if} |
|---|
| 115 | </p> |
|---|
| 116 | {/if} |
|---|
| 117 | </div> |
|---|
| 118 | <div class="formFieldDesc hidden" id="katIDHelpMessage"> |
|---|
| 119 | {lang}wcf.acp.dldb.data.katID.description{/lang} |
|---|
| 120 | </div> |
|---|
| 121 | <script type="text/javascript">//<![CDATA[ |
|---|
| 122 | inlineHelp.register('katID'); |
|---|
| 123 | //]]></script> |
|---|
| 124 | </div> |
|---|
| 125 | </div> |
|---|
| 126 | <div class="formElement{if $errorField == 'previewIMG'} formError{/if}" id="previewIMGDiv"> |
|---|
| 127 | <div class="formFieldLabel"> |
|---|
| 128 | <label for="previewIMG">{lang}wcf.acp.dldb.data.previewIMG{/lang}</label> |
|---|
| 129 | </div> |
|---|
| 130 | <div class="formField"> |
|---|
| 131 | {if $previewFile} |
|---|
| 132 | <a href="{$previewIMG}"><img src="{@RELATIVE_WCF_DIR}{@DOWNLOADDB_PREVIEW_DIR}thumbnail-{$dataID}_{$previewFile}" alt="" /></a> |
|---|
| 133 | {/if} |
|---|
| 134 | {if $action == 'edit' && $previewIMG} |
|---|
| 135 | <div class="formElement"> |
|---|
| 136 | <div class="formFieldLabel"> |
|---|
| 137 | <label for="delPreview">{lang}wcf.acp.dldb.data.delPreview{/lang}</label> |
|---|
| 138 | </div> |
|---|
| 139 | <div class="formField"> |
|---|
| 140 | <input type="checkbox" class="checkbox" id="delPreview" name="delPreview" value="1" /> |
|---|
| 141 | </div> |
|---|
| 142 | </div> |
|---|
| 143 | {/if} |
|---|
| 144 | <input type="file" name="previewArray" id="previewIMG" /> |
|---|
| 145 | {if $errorField == 'previewIMG'} |
|---|
| 146 | <div class="innerError"> |
|---|
| 147 | {if $errorType|is_array} |
|---|
| 148 | {foreach from=$errorType item=error} |
|---|
| 149 | <p> |
|---|
| 150 | {$error.filename}: |
|---|
| 151 | {if $error.errorType == 'badFile'}{lang}wcf.acp.dldb.data.error.badFile{/lang}{/if} |
|---|
| 152 | {if $error.errorType == 'notAllowedExtension'}{lang}wcf.acp.dldb.data.error.notAllowedExtension{/lang}{/if} |
|---|
| 153 | {if $error.errorType == 'tooLarge'}{lang}wcf.acp.dldb.data.error.tooLarge{/lang}{/if} |
|---|
| 154 | {if $error.errorType == 'copyFailed'}{lang}wcf.acp.dldb.data.error.copyFailed{/lang}{/if} |
|---|
| 155 | </p> |
|---|
| 156 | {/foreach} |
|---|
| 157 | {else} |
|---|
| 158 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 159 | {if $errorType == 'uploadFailed'}{lang}wcf.acp.dldb.data.error.uploadFailed{/lang}{/if} |
|---|
| 160 | {if $errorType == 'badFile'}{lang}wcf.acp.dldb.data.error.badFile{/lang}{/if} |
|---|
| 161 | {if $errorType == 'notAllowedExtension'}{lang}wcf.acp.dldb.data.error.notAllowedExtension{/lang}{/if} |
|---|
| 162 | {if $errorType == 'tooLarge'}{lang}wcf.acp.dldb.data.error.tooLarge{/lang}{/if} |
|---|
| 163 | {if $errorType == 'copyFailed'}{lang}wcf.acp.dldb.data.error.copyFailed{/lang}{/if} |
|---|
| 164 | {/if} |
|---|
| 165 | </div> |
|---|
| 166 | {/if} |
|---|
| 167 | </div> |
|---|
| 168 | <div class="formFieldDesc hidden" id="previewIMGHelpMessage"> |
|---|
| 169 | {lang}wcf.acp.dldb.data.previewIMG.description{/lang}<br /> |
|---|
| 170 | {lang}wcf.acp.option.downloaddb_allowed_preview_ext{/lang}: {$previewExtensions} |
|---|
| 171 | </div> |
|---|
| 172 | <script type="text/javascript">//<![CDATA[ |
|---|
| 173 | inlineHelp.register('previewIMG'); |
|---|
| 174 | //]]></script> |
|---|
| 175 | </div> |
|---|
| 176 | <div class="formElement{if $errorField == 'sortOrder'} formError{/if}" id="positionDiv"> |
|---|
| 177 | <div class="formFieldLabel"> |
|---|
| 178 | <label for="sortOrder">{lang}wcf.acp.dldb.sortOrder{/lang}</label> |
|---|
| 179 | </div> |
|---|
| 180 | <div class="formField"> |
|---|
| 181 | <input type="text" class="inputText" id="sortOrder" name="sortOrder" value="{@$sortOrder}" /> |
|---|
| 182 | {if $errorField == 'sortOrder'} |
|---|
| 183 | <p class="innerError"> |
|---|
| 184 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 185 | </p> |
|---|
| 186 | {/if} |
|---|
| 187 | </div> |
|---|
| 188 | <div class="formFieldDesc hidden" id="positionHelpMessage"> |
|---|
| 189 | {lang}wcf.acp.dldb.sortOrder.description{/lang} |
|---|
| 190 | </div> |
|---|
| 191 | <script type="text/javascript">//<![CDATA[ |
|---|
| 192 | inlineHelp.register('position'); |
|---|
| 193 | //]]></script> |
|---|
| 194 | </div> |
|---|
| 195 | </fieldset> |
|---|
| 196 | <fieldset> |
|---|
| 197 | <legend>{lang}wcf.acp.dldb.data.settings{/lang}</legend> |
|---|
| 198 | {if $action == 'add' || !$isExtern} |
|---|
| 199 | <div class="formElement{if $errorField == 'upload'} formError{/if}" id="uploadDiv"> |
|---|
| 200 | <div class="formFieldLabel"> |
|---|
| 201 | <label for="upload">{lang}wcf.acp.dldb.data.upload{/lang}</label> |
|---|
| 202 | </div> |
|---|
| 203 | <div class="formField"> |
|---|
| 204 | <input type="file" name="upload" id="upload" /> |
|---|
| 205 | {if $errorField == 'upload'} |
|---|
| 206 | <div class="innerError"> |
|---|
| 207 | {if $errorType|is_array} |
|---|
| 208 | {foreach from=$errorType item=error} |
|---|
| 209 | <p> |
|---|
| 210 | {$error.filename}: |
|---|
| 211 | {if $error.errorType == 'badFile'}{lang}wcf.acp.dldb.data.error.badFile{/lang}{/if} |
|---|
| 212 | {if $error.errorType == 'notAllowedExtension'}{lang}wcf.acp.dldb.data.error.notAllowedExtension{/lang}{/if} |
|---|
| 213 | {if $error.errorType == 'tooLarge'}{lang}wcf.acp.dldb.data.error.tooLarge{/lang}{/if} |
|---|
| 214 | {if $error.errorType == 'copyFailed'}{lang}wcf.acp.dldb.data.error.copyFailed{/lang}{/if} |
|---|
| 215 | </p> |
|---|
| 216 | {/foreach} |
|---|
| 217 | {else} |
|---|
| 218 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 219 | {if $errorType == 'uploadFailed'}{lang}wcf.acp.dldb.data.error.uploadFailed{/lang}{/if} |
|---|
| 220 | {if $errorType == 'badFile'}{lang}wcf.acp.dldb.data.error.badFile{/lang}{/if} |
|---|
| 221 | {if $errorType == 'notAllowedExtension'}{lang}wcf.acp.dldb.data.error.notAllowedExtension{/lang}{/if} |
|---|
| 222 | {if $errorType == 'tooLarge'}{lang}wcf.acp.dldb.data.error.tooLarge{/lang}{/if} |
|---|
| 223 | {if $errorType == 'copyFailed'}{lang}wcf.acp.dldb.data.error.copyFailed{/lang}{/if} |
|---|
| 224 | {/if} |
|---|
| 225 | </div> |
|---|
| 226 | {/if} |
|---|
| 227 | </div> |
|---|
| 228 | <div class="formFieldDesc hidden" id="uploadHelpMessage"> |
|---|
| 229 | {lang}wcf.acp.dldb.data.upload.description{/lang}<br /> |
|---|
| 230 | {lang}wcf.acp.option.downloaddb_allowed_file_ext{/lang}: {$fileExtensions} |
|---|
| 231 | </div> |
|---|
| 232 | <script type="text/javascript">//<![CDATA[ |
|---|
| 233 | inlineHelp.register('upload'); |
|---|
| 234 | //]]></script> |
|---|
| 235 | </div> |
|---|
| 236 | {/if} |
|---|
| 237 | <div class="formElement{if $errorField == 'link'} formError{/if}" id="linkDiv"> |
|---|
| 238 | <div class="formFieldLabel"> |
|---|
| 239 | <label for="link">{lang}wcf.acp.dldb.data.link{/lang}</label> |
|---|
| 240 | </div> |
|---|
| 241 | <div class="formField"> |
|---|
| 242 | <input type="text" class="inputText" id="link" name="link" value="{$link}" /> |
|---|
| 243 | {if $errorField == 'link'} |
|---|
| 244 | <p class="innerError"> |
|---|
| 245 | {if $errorType == 'badFile'}{lang}wcf.acp.dldb.data.error.badFile{/lang}{/if} |
|---|
| 246 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 247 | {if $errorType == 'invalid'}{lang}wcf.acp.dldb.data.error.linkANDfile{/lang}{/if} |
|---|
| 248 | </p> |
|---|
| 249 | {/if} |
|---|
| 250 | </div> |
|---|
| 251 | <div class="formFieldDesc hidden" id="linkHelpMessage"> |
|---|
| 252 | {lang}wcf.acp.dldb.data.link.description{/lang} |
|---|
| 253 | </div> |
|---|
| 254 | <script type="text/javascript">//<![CDATA[ |
|---|
| 255 | inlineHelp.register('link'); |
|---|
| 256 | //]]></script> |
|---|
| 257 | </div> |
|---|
| 258 | <div class="formElement" id="groesseDiv"> |
|---|
| 259 | <div class="formFieldLabel"> |
|---|
| 260 | <label for="groesse">{lang}wcf.acp.dldb.data.groesse{/lang}</label> |
|---|
| 261 | </div> |
|---|
| 262 | <div class="formField"> |
|---|
| 263 | <input {if $fileName}readonly {/if}type="text" class="inputText" id="groesse" name="groesse" value="{$groesse}" /> |
|---|
| 264 | </div> |
|---|
| 265 | <div class="formFieldDesc hidden" id="groesseHelpMessage"> |
|---|
| 266 | {lang}wcf.acp.dldb.data.groesse.description{/lang} |
|---|
| 267 | </div> |
|---|
| 268 | <script type="text/javascript">//<![CDATA[ |
|---|
| 269 | inlineHelp.register('groesse'); |
|---|
| 270 | //]]></script> |
|---|
| 271 | </div> |
|---|
| 272 | <div class="formElement" id="supportThreadDiv"> |
|---|
| 273 | <div class="formFieldLabel"> |
|---|
| 274 | <label for="supportThread">{lang}wcf.acp.dldb.data.supportThread{/lang}</label> |
|---|
| 275 | </div> |
|---|
| 276 | <div class="formField"> |
|---|
| 277 | <input type="text" class="inputText" id="supportThread" name="supportThread" value="{$supportThread}" /> |
|---|
| 278 | </div> |
|---|
| 279 | <div class="formFieldDesc hidden" id="supportThreadHelpMessage"> |
|---|
| 280 | {lang}wcf.acp.dldb.data.supportThread.description{/lang} |
|---|
| 281 | </div> |
|---|
| 282 | <script type="text/javascript">//<![CDATA[ |
|---|
| 283 | inlineHelp.register('supportThread'); |
|---|
| 284 | //]]></script> |
|---|
| 285 | </div> |
|---|
| 286 | {if $action == 'edit'} |
|---|
| 287 | <div class="formElement"> |
|---|
| 288 | <div class="formFieldLabel"> |
|---|
| 289 | <label for="downloads">{lang}wcf.acp.dldb.data.downloads{/lang}</label> |
|---|
| 290 | </div> |
|---|
| 291 | <div class="formField"> |
|---|
| 292 | {$downloads} : <input type="checkbox" class="checkbox" id="downloadsAkt" name="downloadsAkt" value="1" /> {lang}wcf.acp.dldb.data.downloadsneu{/lang} |
|---|
| 293 | </div> |
|---|
| 294 | </div> |
|---|
| 295 | <div class="formElement"> |
|---|
| 296 | <div class="formFieldLabel"> |
|---|
| 297 | <label for="dldbUserID">{lang}wcf.acp.dldb.data.userid{/lang}</label> |
|---|
| 298 | </div> |
|---|
| 299 | <div class="formField"> |
|---|
| 300 | {$dldbUserName} : <input type="checkbox" class="checkbox" id="UserIDAkt" name="UserIDAkt" value="1" /> {lang}wcf.acp.dldb.data.useridneu{/lang} |
|---|
| 301 | </div> |
|---|
| 302 | </div> |
|---|
| 303 | <div class="formElement"> |
|---|
| 304 | <div class="formFieldLabel"> |
|---|
| 305 | <label for="datum">{lang}wcf.acp.dldb.data.datum{/lang}</label> |
|---|
| 306 | </div> |
|---|
| 307 | <div class="formField"> |
|---|
| 308 | {$datum|date} : <input type="checkbox" class="checkbox" id="datumAkt" name="datumAkt" value="1" /> {lang}wcf.acp.dldb.data.datumneu{/lang} |
|---|
| 309 | </div> |
|---|
| 310 | </div> |
|---|
| 311 | {/if} |
|---|
| 312 | </fieldset> |
|---|
| 313 | {/if} |
|---|
| 314 | <div class="formSubmit"> |
|---|
| 315 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 316 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 317 | <input type="hidden" name="packageID" value="{@PACKAGE_ID}" /> |
|---|
| 318 | {@SID_INPUT_TAG} |
|---|
| 319 | <input type="hidden" name="action" value="{@$action}" /> |
|---|
| 320 | {if $dataID|isset} |
|---|
| 321 | <input type="hidden" name="dataID" value="{@$dataID}" /> |
|---|
| 322 | <input type="hidden" name="downloads" value="{@$downloads}" /> |
|---|
| 323 | <input type="hidden" name="dldbUserID" value="{@$dldbUserID}" /> |
|---|
| 324 | <input type="hidden" name="dldbUserName" value="{@$dldbUserName}" /> |
|---|
| 325 | <input type="hidden" name="datum" value="{@$datum}" /> |
|---|
| 326 | <input type="hidden" name="fileNameAlt" value="{@$fileNameAlt}" /> |
|---|
| 327 | <input type="hidden" name="previewIMG" value="{@$previewIMG}" /> |
|---|
| 328 | <input type="hidden" name="previewFile" value="{@$previewFile}" /> |
|---|
| 329 | {/if} |
|---|
| 330 | </div> |
|---|
| 331 | </form> |
|---|
| 332 | |
|---|
| 333 | {include file='footer'} |
|---|