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