- Affected Version
- WoltLab Suite 5.2
Hallo zusammen,
ich bekomme folgenden Fehler seit 2 Tagen.
QuoteDisplay MoreMon, 13 Apr 2020 21:00:20 +0000
Message: Template compilation failed: unknown tag {/If} in template 'fileAdd' on line 470
PHP version: 7.0.33-nmm1
WoltLab Suite version: 5.2.5
Request URI: /filebase/index.php?file-add/
Referrer: https://wasserlasser.com/filebase/
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
Peak Memory Usage: 14271520/536870912
======
Error Class: wcf\system\exception\SystemException
Error Message: Template compilation failed: unknown tag {/If} in template 'fileAdd' on line 470
Error Code: 0
File: /www/htdocs/w00e34a8/community/lib/system/template/TemplateScriptingCompiler.class.php (528)
Extra Information: -
Stack Trace: [{"file":"\/www\/htdocs\/w00e34a8\/community\/lib\/system\/template\/TemplateScriptingCompiler.class.php","line":339,"function":"compileTag","class":"wcf\\system\\template\\TemplateScriptingCompiler","type":"->","args":["\/If","fileAdd",{"application":"[redacted]","data":"[redacted]","filename":"[redacted]"}]},{"file":"\/www\/htdocs\/w00e34a8\/community\/lib\/system\/template\/TemplateCompiler.class.php","line":28,"function":"compileString","class":"wcf\\system\\template\\TemplateScriptingCompiler","type":"->","args":["fileAdd","{capture assign='pageTitle'}{lang}filebase.file.{@$action}{\/lang}{\/capture}\r\n\r\n{capture assign='contentTitle'}{lang}filebase.file.{@$action}{\/lang}{\/capture}\r\n\r\n{include file='header'}\r\n\r\n{if $action == 'add' && $quotaExceeded}\r\n\t<p class=\"warning\" role=\"status\">P\u0159ekro\u010dili jste limit \u00falo\u017ei\u0161t\u011b a nelze nahr\u00e1t nov\u00e9 soubory.<\/p>\r\n{\/if}\r\n\r\n{if $action == 'add' && !$__wcf->session->getPermission('user.filebase.canAddFileWithoutModeration')}\r\n\t<p class=\"info\" role=\"status\">Nov\u011b nahran\u00e9 soubory z\u016fstanou nep\u0159\u00edstupn\u00e9 pro ostatn\u00ed, dokud nebudou schv\u00e1leny moder\u00e1torem.<\/p>\r\n{\/if}\r\n\r\n{include file='formError'}\r\n\r\n<form id=\"messageContainer\" class=\"jsFormGuard\" method=\"post\" action=\"{if $action == 'add'}{link application='filebase' controller='FileAdd'}{\/link}{else}{link application='filebase' controller='FileEdit' id=$fileID}{\/link}{\/if}\">\r\n\t{if $action == 'add'}\r\n\t\t<section class=\"section\">\r\n\t\t\t<h2 class=\"sectionTitle\">Soubor<\/h2>\r\n\t\t\t\r\n\t\t\t{if 'upload'|in_array:$availableFileTypes}\r\n\t\t\t\t<dl{if $errorField == 'fileUpload'} class=\"formError\"{\/if} id=\"fileUpload\">\r\n\t\t\t\t\t<dt><label>{if $availableFileTypes|count > 1}<input type=\"radio\" name=\"fileType\" value=\"upload\"{if $fileType == 'upload'} checked{\/if}> {\/if}Nahr\u00e1t soubor<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t{if $fileUpload}\r\n\t\t\t\t\t\t\t\t<li class=\"box32\">\r\n\t\t\t\t\t\t\t\t\t<span class=\"icon icon32 fa-check\"><\/span>\r\n\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t<p>{$fileUpload->filename}<\/p>\r\n\t\t\t\t\t\t\t\t\t\t\t<small>{@$fileUpload->filesize|filesize}<\/small>\r\n\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<div data-max-size=\"{@$__wcf->session->getPermission('user.filebase.maxFileSize')}\"><\/div>\r\n\t\t\t\t\t\t{if $errorField == 'fileUpload'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<small>Maxim\u00e1ln\u00ed velikost souboru: {@$__wcf->session->getPermission('user.filebase.maxFileSize')|filesize}<br>\nPovolen\u00e9 p\u0159\u00edpony souboru: {', '|implode:$allowedFileExtensions}<\/small>\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t{if 'externalURL'|in_array:$availableFileTypes}\r\n\t\t\t\t<dl{if $errorField == 'externalURL'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><label>{if $availableFileTypes|count > 1}<input type=\"radio\" name=\"fileType\" value=\"externalURL\"{if $fileType == 'externalURL'} checked{\/if}> {\/if}Extern\u00ed adresa URL<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<input type=\"url\" id=\"downloadURL\" name=\"downloadURL\" value=\"{$downloadURL}\" maxlength=\"255\" class=\"long\" placeholder=\"http:\/\/\">\r\n\t\t\t\t\t\t{if $errorField == 'downloadURL'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.file.downloadURL.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t{if 'noFile'|in_array:$availableFileTypes}\r\n\t\t\t\t<dl>\r\n\t\t\t\t\t<dt><label>{if $availableFileTypes|count > 1}<input type=\"radio\" name=\"fileType\" value=\"noFile\"{if $fileType === 'noFile'} checked{\/if}> {\/if}Keine Datei<\/label><\/dt>\r\n\t\t\t\t\t<dd><small>Bei dieser Option {if LANGUAGE_USE_INFORMAL_VARIANT}kannst Du{else}k\u00f6nnen Sie{\/if} beispielsweise Informationen \u00fcber die Beschreibung und Dateianh\u00e4nge bereitstellen.<\/small><\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t\r\n\t\t<\/section>\r\n\t{\/if}\r\n\t\r\n\t<section class=\"section\">\r\n\t\t<h2 class=\"sectionTitle\">Detaily souboru<\/h2>\r\n\t\t\r\n\t\t<dl{if $errorField == 'categoryID'} class=\"formError\"{\/if}>\r\n\t\t\t<dt><label for=\"categoryID\">Kategorie<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<select name=\"categoryID\" id=\"categoryID\">\r\n\t\t\t\t\t<option value=\"0\">(Nen\u00ed v\u00fdb\u011br)<\/option>\r\n\t\t\t\t\t\r\n\t\t\t\t\t{foreach from=$categoryNodeList item=category}\r\n\t\t\t\t\t\t<option value=\"{@$category->categoryID}\"{if $category->categoryID == $categoryID} selected{\/if}{if !$category->getPermission('canUseCategory')} disabled{\/if}>{if $category->getDepth() > 1}{@\" \"|str_repeat:($category->getDepth() - 1)}{\/if}{$category->getTitle()}<\/option>\r\n\t\t\t\t\t{\/foreach}\r\n\t\t\t\t<\/select>\r\n\t\t\t\t{if !$moderatedCategoryIDs|empty}\r\n\t\t\t\t\t<small class=\"innerInfo\" id=\"moderatedCategoryInfo\"{if !$categoryID|in_array:$moderatedCategoryIDs} style=\"display: none;\"{\/if}>Neu in diese Kategorie hinzugef\u00fcgte Dateien unterliegen der Moderation und werden erst sichtbar, wenn sie durch einen Moderator gepr\u00fcft und freigeschaltet wurden.<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t\t{if $errorField == 'categoryID'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t{elseif $errorType == 'invalid'}\r\n\t\t\t\t\t\t\tVyberte jednu z dostupn\u00fdch mo\u017enost\u00ed.\r\n\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t{lang}filebase.file.category.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{if FILEBASE_ENABLE_FILE_ICON}\r\n\t\t\t<dl>\r\n\t\t\t\t<dt><label for=\"iconType\">Ikona<\/label><\/dt>\r\n\t\t\t\t<dd class=\"floated\">\r\n\t\t\t\t\t<label><input type=\"radio\" name=\"iconType\" value=\"none\"{if $iconType === 'none'} checked{\/if}> Standard-Icon<\/label>\r\n\t\t\t\t\t<label><input type=\"radio\" name=\"iconType\" value=\"upload\"{if $iconType === 'upload'} checked{\/if}> Hochgeladenes Icon<\/label>\r\n\t\t\t\t\t<label><input type=\"radio\" name=\"iconType\" value=\"fontAwesome\"{if $iconType === 'fontAwesome'} checked{\/if}> FontAwesome-Icon<\/label>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"fileIconUpload\" class=\"filebaseFileIconUpload{if $errorField == 'icon'} formError{\/if}\"{if $iconType !== 'upload'} style=\"display: none;\"{\/if}>\r\n\t\t\t\t<dt><label for=\"icon\">Hochgeladenes Icon<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t{if $iconLocation}\r\n\t\t\t\t\t\t<img src=\"{$iconLocation}\" alt=\"\" id=\"fileIcon\">\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<ul class=\"buttonList\">\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<div id=\"fileIconUploadButton\"><\/div>\r\n\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<button type=\"button\" class=\"button\" id=\"deleteFileIcon\" {if !$iconLocation} style=\"display: none;\"{\/if}>Smazat ikonu<\/button>\r\n\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t{if $errorField == 'icon'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.icon.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<small>Ikona se zobraz\u00ed vedle souboru. Rozm\u011bry ikony mus\u00ed b\u00fdt nejm\u00e9n\u011b 144 \u00d7 144 pixel\u016f.<br> Povolen\u00e9 p\u0159\u00edpony soubor\u016f: jpg, jpeg, png<\/small>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"fileIconFontAwesome\"{if $errorField === 'fontAwesomeIcon'} class=\"formError\"{\/if}{if $iconType !== 'fontAwesome'} style=\"display: none;\"{\/if}>\r\n\t\t\t\t<dt><label for=\"fontAwesomeIcon\">FontAwesome-Icon<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<span{if !$fontAwesomeIcon|empty} class=\"icon icon64 fa-{$fontAwesomeIcon}\"{\/if} id=\"fontAwesomeIcon_icon\"><\/span>\r\n\t\t\t\t\t<a href=\"#\" class=\"button small\" id=\"fontAwesomeIcon_openIconDialog\">Upravit<\/a>\r\n\t\t\t\t\t<input type=\"hidden\" id=\"fontAwesomeIcon\" name=\"fontAwesomeIcon\" value=\"{$fontAwesomeIcon}\">\r\n\t\t\t\t\t{if $errorField === 'fontAwesomeIcon'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType === 'empty'
$errorType === 'noValidSelection'}\r\n\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.icon.fontAwesome.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\r\n\t\t\t\t\t{include file='fontAwesomeJavaScript'}\r\n\t\t\t\t\t<script data-relocate=\"true\">\r\n\t\t\t\t\t\trequire(['WoltLabSuite\/Core\/Ui\/Style\/FontAwesome'], function(UiStyleFontAwesome) {\r\n\t\t\t\t\t\t\tvar button = elById('fontAwesomeIcon_openIconDialog');\r\n\t\t\t\t\t\t\tvar icon = elById('fontAwesomeIcon_icon');\r\n\t\t\t\t\t\t\tvar input = elById('fontAwesomeIcon');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tvar callback = function(iconName) {\r\n\t\t\t\t\t\t\t\ticon.className = 'icon icon64 fa-' + iconName;\r\n\t\t\t\t\t\t\t\tinput.value = iconName;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbutton.addEventListener('click', function(event) {\r\n\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tUiStyleFontAwesome.open(callback);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t<\/script>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{include file='messageFormMultilingualism'}\r\n\t\t\r\n\t\t{if $labelGroups|count}\r\n\t\t\t{foreach from=$labelGroups item=labelGroup}\r\n\t\t\t\t{if $labelGroup|count}\r\n\t\t\t\t\t<dl{if $errorField == 'label' && $errorType[$labelGroup->groupID]|isset} class=\"formError\"{\/if}>\r\n\t\t\t\t\t\t<dt><label>{$labelGroup->getTitle()}<\/label><\/dt>\r\n\t\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t\t<ul class=\"labelList jsOnly\" data-object-id=\"{@$labelGroup->groupID}\">\r\n\t\t\t\t\t\t\t\t<li class=\"dropdown labelChooser\" id=\"labelGroup{@$labelGroup->groupID}\" data-group-id=\"{@$labelGroup->groupID}\" data-force-selection=\"{if $labelGroup->forceSelection}true{else}false{\/if}\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"dropdownToggle\" data-toggle=\"labelGroup{@$labelGroup->groupID}\"><span class=\"badge label\">\u017d\u00e1dn\u00fd v\u00fdb\u011br<\/span><\/div>\r\n\t\t\t\t\t\t\t\t\t<div class=\"dropdownMenu\">\r\n\t\t\t\t\t\t\t\t\t\t<ul class=\"scrollableDropdownMenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t{foreach from=$labelGroup item=label}\r\n\t\t\t\t\t\t\t\t\t\t\t\t<li data-label-id=\"{@$label->labelID}\"><span><span class=\"badge label{if $label->getClassNames()} {@$label->getClassNames()}{\/if}\">{$label->getTitle()}<\/span><\/span><\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t{\/foreach}\r\n\t\t\t\t\t\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t\t\t<noscript>\r\n\t\t\t\t\t\t\t\t<select name=\"labelIDs[{@$labelGroup->groupID}]\">\r\n\t\t\t\t\t\t\t\t\t{foreach from=$labelGroup item=label}\r\n\t\t\t\t\t\t\t\t\t\t<option value=\"{@$label->labelID}\">{$label->getTitle()}<\/option>\r\n\t\t\t\t\t\t\t\t\t{\/foreach}\r\n\t\t\t\t\t\t\t\t<\/select>\r\n\t\t\t\t\t\t\t<\/noscript>\r\n\t\t\t\t\t\t\t{if $errorField == 'label' && $errorType[$labelGroup->groupID]|isset}\r\n\t\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t\t{if $errorType[$labelGroup->groupID] == 'missing'}\r\n\t\t\t\t\t\t\t\t\t\tMus\u00edte vybrat \u0161t\u00edtek.\r\n\t\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t\tVolba \u0161t\u00edtku je neplatn\u00e1.\r\n\t\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/dd>\r\n\t\t\t\t\t<\/dl>\r\n\t\t\t\t{\/if}\r\n\t\t\t{\/foreach}\r\n\t\t{\/if}\r\n\t\t\r\n\t\t<dl{if $errorField == 'subject'} class=\"formError\"{\/if}>\r\n\t\t\t<dt><label for=\"subject\">N\u00e1zev<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<input type=\"text\" id=\"subject\" name=\"subject\" value=\"{$subject}\" required maxlength=\"255\" class=\"long\">\r\n\t\t\t\t{if $errorField == 'subject'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t{elseif $errorType == 'censoredWordsFound'}\r\n\t\t\t\t\t\t\tZpr\u00e1va obsahuje cenzurovan\u00e1 slova: {implode from=$censoredWords key=censoredWord item=number}{$censoredWord}{if $number > 1} ({#$number}\u00d7){\/if}{\/implode}.\r\n\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t{lang}filebase.file.subject.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{if $action == 'add'}\r\n\t\t\t{if FILEBASE_ENABLE_VERSION_NUMBER}\r\n\t\t\t\t<dl id=\"versionNumberContainer\"{if $errorField == 'versionNumber'} class=\"formError\"{\/if}{if $fileType === 'noFile'} style=\"display: none;\"{\/if}>\r\n\t\t\t\t\t<dt><label for=\"versionNumber\">\u010c\u00edslo verze<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<input type=\"text\" id=\"versionNumber\" name=\"versionNumber\" value=\"{$versionNumber}\" required maxlength=\"80\" class=\"medium\">\r\n\t\t\t\t\t\t{if $errorField == 'versionNumber'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.file.versionNumber.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t{\/if}\r\n\t\t\r\n\t\t<dl{if $errorField == 'teaser'} class=\"formError\"{\/if}>\r\n\t\t\t<dt><label for=\"teaser\">Teaser<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<textarea id=\"teaser\" name=\"teaser\" rows=\"5\" cols=\"40\">{$teaser}<\/textarea>\r\n\t\t\t\t{if $errorField == 'teaser'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t{elseif $errorType == 'tooLong'}\r\n\t\t\t\t\t\t\t{lang maxTextLength=FILEBASE_MAX_TEASER_LENGTH}wcf.message.error.tooLong{\/lang}\r\n\t\t\t\t\t\t{elseif $errorType == 'censoredWordsFound'}\r\n\t\t\t\t\t\t\tZpr\u00e1va obsahuje cenzurovan\u00e1 slova: {implode from=$censoredWords key=censoredWord item=number}{$censoredWord}{if $number > 1} ({#$number}\u00d7){\/if}{\/implode}.\r\n\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t{lang}filebase.file.teaser.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t\t<small>Zadejte kr\u00e1tk\u00fd popis souboru, kter\u00fd nesm\u00ed p\u0159ekro\u010dit {#FILEBASE_MAX_TEASER_LENGTH} znak\u016f.<\/small>\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{if MODULE_TAGGING}{include file='tagInput'}{\/if}\r\n\t\t\r\n\t\t<dl{if $errorField == 'website'} class=\"formError\"{\/if}>\r\n\t\t\t<dt><label for=\"website\">Webov\u00e1 str\u00e1nka<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<input type=\"url\" id=\"website\" name=\"website\" value=\"{$website}\" maxlength=\"255\" class=\"long\" placeholder=\"http:\/\/\">\r\n\t\t\t\t{if $errorField == 'website'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{lang}filebase.file.website.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t\t<small>Voliteln\u00e9: Webov\u00e1 str\u00e1nka (URL) s dal\u0161\u00edmi podrobnostmi o tomto souboru.<\/small>\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{if $action == 'add'
$file->isOwner()
$__wcf->session->getPermission('mod.filebase.canEditFile')}\r\n\t\t\t<dl{if $errorField == 'authors'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"authors\">Dal\u0161\u00ed auto\u0159i<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<textarea id=\"authors\" name=\"authors\" class=\"long\" cols=\"40\" rows=\"2\">{$authors}<\/textarea>\r\n\t\t\t\t\t{if $errorField == 'authors'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType|is_array}\r\n\t\t\t\t\t\t\t\t{foreach from=$errorType item='errorData'}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.file.authors.error.{@$errorData.type}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/foreach}\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.authors.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<small>Voliteln\u00e9: M\u016f\u017eete p\u0159idat dal\u0161\u00ed u\u017eivatele, kte\u0159\u00ed mohou upravit tento soubor a p\u0159idat nov\u00e9 verze. V\u00edce u\u017eivatel\u016f odd\u011blte \u010d\u00e1rkou.<\/small>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{if MODULE_EDIT_HISTORY && $action == 'edit'}\r\n\t\t\t<dl{if $errorField == 'editReason'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"editReason\">Upravit d\u016fvod (voliteln\u00e9)<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<textarea rows=\"3\" cols=\"40\" id=\"editReason\" name=\"editReason\">{$editReason}<\/textarea>\r\n\t\t\t\t\t{if $errorField == 'editReason'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.editReason.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t{\/if}\r\n\t\t\r\n\t\t\r\n\t<\/section>\r\n\t\r\n\t{if $options|count}\r\n\t\t<section id=\"fileOptions\" class=\"section\">\r\n\t\t\t<h2 class=\"sectionTitle\">Dodate\u010dn\u00e9 informace<\/h2>\r\n\t\t\t\r\n\t\t\t{include application='filebase' file='fileOptionFieldList'}\r\n\t\t\t\r\n\t\t\t<script data-relocate=\"true\">\r\n\t\t\t\t(function() {\r\n\t\t\t\t\tvar optionCategories = {\r\n\t\t\t\t\t\t{implode from=$options item=optionData}\r\n\t\t\t\t\t\t\t{@$optionData[object]->optionID}: [ {implode from=$optionData[object]->getCategoryIDs() item=categoryID}{@$categoryID}{\/implode)} ]\r\n\t\t\t\t\t\t{\/implode}\r\n\t\t\t\t\t};\r\n\t\t\t\t\tvar fileOptions = elById('fileOptions');\r\n\t\t\t\t\tvar categoryIdField = elById('categoryID');\r\n\t\t\t\t\t\r\n\t\t\t\t\tvar changeCategoryId = function() {\r\n\t\t\t\t\t\tvar categoryId = ~~categoryIdField.value;\r\n\r\n\t\t\t\t\t\tvar allHidden = true;\r\n\t\t\t\t\t\tfor (var optionID in optionCategories) {\r\n\t\t\t\t\t\t\tvar optionElement = elById('fileOption' + optionID + 'Dl');\r\n\t\t\t\t\t\t\tif (optionCategories[optionID].length === 0
optionCategories[optionID].indexOf(categoryId) !== -1) {\r\n\t\t\t\t\t\t\t\telShow(optionElement);\r\n\r\n\t\t\t\t\t\t\t\tallHidden = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\telHide(optionElement);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (allHidden) {\r\n\t\t\t\t\t\t\telHide(fileOptions);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\telShow(fileOptions);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tcategoryIdField.addEventListener('change', changeCategoryId);\r\n\t\t\t\t\t\r\n\t\t\t\t\tchangeCategoryId();\r\n\t\t\t\t})();\r\n\t\t\t<\/script>\r\n\t\t<\/section>\r\n\t{\/if}\r\n\t\r\n\t{if FILEBASE_ENABLE_SELLING && $__wcf->session->getPermission('user.filebase.canSellFile')}\r\n\t\t<section class=\"section\" id=\"commericalFileData\"{if $fileType === 'noFile'} style=\"display: none;\"{\/if}>\r\n\t\t\t<h2 class=\"sectionTitle\">Komer\u010dn\u00ed<\/h2>\r\n\t\t\t\r\n\t\t\t<dl>\r\n\t\t\t\t<dt><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<label><input type=\"checkbox\" id=\"isCommercial\" name=\"isCommercial\" value=\"1\"{if $isCommercial} checked{\/if}> Zaplacen\u00fd soubor<\/label>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"isPurchasableDL\">\r\n\t\t\t\t<dt><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<label><input type=\"checkbox\" id=\"isPurchasable\" name=\"isPurchasable\" value=\"1\"{if $isPurchasable} checked{\/if}> K prodeji<\/label>\r\n\t\t\t\t\t<small>Zak\u00e1zat tuto mo\u017enost k do\u010dasn\u00e9mu z\u00e1kazu prodeje tohoto souboru. St\u00e1vaj\u00edc\u00ed z\u00e1kazn\u00edci budou m\u00edt nad\u00e1le p\u0159\u00edstup.<\/small>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"currencyDL\"{if $errorField == 'currency'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"currency\">M\u011bna<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<select name=\"currency\" id=\"currency\">\r\n\t\t\t\t\t\t{htmlOptions output=$availableCurrencies values=$availableCurrencies selected=$currency}\r\n\t\t\t\t\t<\/select>\r\n\t\t\t\t\t\r\n\t\t\t\t\t{if $errorField == 'currency'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.currency.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"priceDL\"{if $errorField == 'price'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"price\">Cena<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<input type=\"text\" id=\"price\" name=\"price\" value=\"{@$price|currency}\" class=\"tiny\">\r\n\t\t\t\t\t{if $errorField == 'price'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.price.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t\r\n\t\t<\/section>\r\n\t\t\r\n\t\t<script data-relocate=\"true\">\r\n\t\t\t$('#isCommercial').change(function (event) {\r\n\t\t\t\tif ($('#isCommercial').is(':checked')) {\r\n\t\t\t\t\t$('#priceDL, #currencyDL, #isPurchasableDL').show();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$('#priceDL, #currencyDL, #isPurchasableDL').hide();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('#isCommercial').change();\r\n\t\t<\/script>\r\n\t{\/if}\r\n\t\r\n\t{if FILEBASE_ENABLE_LICENSE}\r\n\t\t<section class=\"section\" id=\"licenseData\"{if $fileType === 'noFile'} style=\"display: none;\"{\/if}>\r\n\t\t\t<header class=\"sectionHeader\">\r\n\t\t\t\t<h2 class=\"sectionTitle\">Licen\u010dn\u00ed smlouva<\/h2>\r\n\t\t\t\t<p class=\"sectionDescription\">Poskytnout licen\u010dn\u00ed smlouvu pro tento produkt. {If FILEBASE_ENABLE_LICENSE_CONFIRMATION} Za \u00fa\u010delem sta\u017een\u00ed nebo zakoupen\u00ed produktu u\u017eivatel\u00e9 mus\u00ed souhlasit s touto smlouvu.{\/If}<\/p>\r\n\t\t\t<\/header>\r\n\t\t\t\r\n\t\t\t{if FILEBASE_ENABLE_CUSTOM_LICENSE}\r\n\t\t\t\t<dl id=\"licenseTypeDL\"{if $errorField == 'licenseType'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<label><input type=\"radio\" name=\"licenseType\" value=\"predefined\"{if $licenseType == 'predefined'} checked{\/if}> Pou\u017e\u00edt p\u0159eddefinovanou licenci<\/label>\r\n\t\t\t\t\t\t<label><input type=\"radio\" name=\"licenseType\" value=\"url\"{if $licenseType == 'url'} checked{\/if}> Eigene Lizenz-URL verwenden<\/label>\r\n\t\t\t\t\t\t<label><input type=\"radio\" name=\"licenseType\" value=\"text\"{if $licenseType == 'text'} checked{\/if}> Eigenen Lizenz-Text verwenden<\/label>\r\n\t\t\t\t\t\t{if $errorField == 'licenseType'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t\t\r\n\t\t\t\t<script data-relocate=\"true\">\r\n\t\t\t\t\t$(function() {\r\n\t\t\t\t\t\t$('#licenseTypeDL input[type=radio]').change(function(event) {\r\n\t\t\t\t\t\t\tvar $value = $(event.currentTarget).attr('value');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif ($value === 'predefined') {\r\n\t\t\t\t\t\t\t\t$('#licenseIDDL').show();\r\n\t\t\t\t\t\t\t\t$('#licenseNameDL, #licenseURLDL, #licenseTextDl').hide();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if ($value === 'url') {\r\n\t\t\t\t\t\t\t\t$('#licenseIDDL, #licenseTextDl').hide();\r\n\t\t\t\t\t\t\t\t$('#licenseNameDL, #licenseURLDL').show();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if ($value === 'text') {\r\n\t\t\t\t\t\t\t\t$('#licenseIDDL, #licenseURLDL').hide();\r\n\t\t\t\t\t\t\t\t$('#licenseNameDL, #licenseTextDl').show();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t$('#licenseTypeDL input[type=radio]:checked').trigger('change');\r\n\t\t\t\t\t});\r\n\t\t\t\t<\/script>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t<dl id=\"licenseIDDL\"{if $errorField == 'licenseID'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"licenseID\">Licence<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<select name=\"licenseID\" id=\"licenseID\">\r\n\t\t\t\t\t\t<option value=\"\">(Nen\u00ed v\u00fdb\u011br)<\/option>\r\n\t\t\t\t\t\t{foreach from=$availableLicenses item=availableLicense}\r\n\t\t\t\t\t\t\t<option value=\"{@$availableLicense->licenseID}\"{if $licenseID == $availableLicense->licenseID} selected{\/if}>{$availableLicense->licenseName}<\/option>\r\n\t\t\t\t\t\t{\/foreach}\r\n\t\t\t\t\t<\/select>\r\n\t\t\t\t\t{if $errorField == 'licenseID'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t{if FILEBASE_ENABLE_CUSTOM_LICENSE}\r\n\t\t\t\t<dl id=\"licenseNameDL\"{if $errorField == 'licenseName'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><label for=\"licenseName\">Jm\u00e9no licence<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<input type=\"text\" id=\"licenseName\" name=\"licenseName\" value=\"{$licenseName}\" class=\"long\" maxlength=\"255\">\r\n\t\t\t\t\t\t{if $errorField == 'licenseName'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.license.licenseName.error.{$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t\t\r\n\t\t\t\t<dl id=\"licenseURLDL\"{if $errorField == 'licenseURL'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><label for=\"licenseURL\">URL licence<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<input type=\"url\" id=\"licenseURL\" name=\"licenseURL\" value=\"{$licenseURL}\" class=\"long\" maxlength=\"65535\">\r\n\t\t\t\t\t\t{if $errorField == 'licenseURL'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.license.licenseURL.error.{$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t\t\r\n\t\t\t\t<dl id=\"licenseTextDl\"{if $errorField == 'licenseText'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><label for=\"licenseText\">Lizenz-Text<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<textarea name=\"licenseText\" id=\"licenseText\" cols=\"40\" rows=\"10\">{$licenseText}<\/textarea>\r\n\t\t\t\t\t\t{if $errorField == 'licenseText'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.license.licenseText.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t\r\n\t\t<\/section>\r\n\t{\/if}\r\n\t\r\n\t<section class=\"section\">\r\n\t\t<h2 class=\"sectionTitle\">Popis<\/h2>\r\n\t\t\r\n\t\t<dl class=\"wide{if $errorField == 'text'} formError{\/if}\">\r\n\t\t\t<dt><label for=\"text\">Popis<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<textarea id=\"text\" name=\"text\" rows=\"20\" cols=\"40\">{$text}<\/textarea>\r\n\t\t\t\t{if $errorField == 'text'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\tVypl\u0148te pros\u00edm toto pole.\r\n\t\t\t\t\t\t{elseif $errorType == 'tooLong'}\r\n\t\t\t\t\t\t\tZpr\u00e1va je p\u0159\u00edli\u0161 dlouh\u00e1, mus\u00ed b\u00fdt m\u00e9n\u011b ne\u017e {#$maxTextLength} znak\u016f.\r\n\t\t\t\t\t\t{elseif $errorType == 'censoredWordsFound'}\r\n\t\t\t\t\t\t\tZpr\u00e1va obsahuje cenzurovan\u00e1 slova: {implode from=$censoredWords key=censoredWord item=number}{$censoredWord}{if $number > 1} ({#$number}\u00d7){\/if}{\/implode}.\r\n\t\t\t\t\t\t{elseif $errorType == 'disallowedBBCodes'}\r\n\t\t\t\t\t\t\tZpr\u00e1va obsahuje nepovolen\u00e9 BBCodes: {implode from=$disallowedBBCodes item=disallowedBBCode}{$disallowedBBCode}{\/implode}.\r\n\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t{lang}filebase.file.message.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t\r\n\t<\/section>\r\n\t\r\n\t\r\n\t\r\n\t{include file='messageFormTabs' wysiwygContainerID='text'}\r\n\t\r\n\t<div class=\"formSubmit\">\r\n\t\t<input type=\"submit\" value=\"Potvrdit\" accesskey=\"s\">\r\n\t\t\r\n\t\t{if $action == 'edit'}\r\n\t\t\t{include file='messageFormPreviewButton' previewMessageObjectType='com.woltlab.filebase.file' previewMessageObjectID=$file->fileID}\r\n\t\t{else}\r\n\t\t\t{include file='messageFormPreviewButton' previewMessageObjectType='com.woltlab.filebase.file' previewMessageObjectID=0}\r\n\t\t{\/if}\r\n\t\t<input type=\"hidden\" id=\"uploadID\" name=\"uploadID\" value=\"{@$uploadID}\">\r\n\t\t{@SECURITY_TOKEN_INPUT_TAG}\r\n\t\t{if $availableFileTypes|count == 1}\r\n\t\t\t<input type=\"hidden\" id=\"fileType\" name=\"fileType\" value=\"{$availableFileTypes|reset}\">\r\n\t\t{\/if}\r\n\t\t<input type=\"hidden\" name=\"tmpHash\" value=\"{$tmpHash}\">\r\n\t<\/div>\r\n<\/form>\r\n\r\n<script data-relocate=\"true\">\r\n\t$(function() {\r\n\t\tWCF.Language.addObject({\r\n\t\t\t'filebase.file.upload.confirmOverwrite': 'Soubor jste ji\u017e nahrali, pokra\u010dov\u00e1n\u00ed p\u0159ep\u00ed\u0161e existuj\u00edc\u00ed soubor.',\r\n\t\t\t'filebase.file.upload.error.invalidExtension': 'P\u0159\u00edpona souboru je neplatn\u00e1.',\r\n\t\t\t'filebase.file.upload.error.tooLarge': 'Soubor je p\u0159\u00edli\u0161 velk\u00fd',\r\n\t\t\t'filebase.file.upload.error.uploadFailed': 'B\u011bhem nahr\u00e1v\u00e1n\u00ed do\u0161lo k nezn\u00e1m\u00e9 chyb\u011b.',\r\n\t\t\t'filebase.file.upload.error.quotaExceeded': 'P\u0159ekro\u010dili jste limit \u00falo\u017ei\u0161t\u011b a nelze nahr\u00e1t nov\u00e9 soubory.',\r\n\t\t\t'filebase.file.icon.error.invalidExtension': 'P\u0159\u00edpona souboru je neplatn\u00e1.',\r\n\t\t\t'filebase.file.icon.error.noImage': 'Nahran\u00fd soubor nen\u00ed obr\u00e1zek.',\r\n\t\t\t'filebase.file.icon.error.tooSmall': 'Ikona je p\u0159\u00edli\u0161 mal\u00e1.',\r\n\t\t\t'filebase.file.icon.error.tooLarge': 'Ikona je p\u0159\u00edli\u0161 velk\u00e1.',\r\n\t\t\t'filebase.file.icon.error.uploadFailed': 'B\u011bhem nahr\u00e1v\u00e1n\u00ed do\u0161lo k nezn\u00e1m\u00e9 chyb\u011b.',\r\n\t\t\t'filebase.file.icon.delete.confirmMessage': 'Opravdu chcete smazat tuto ikonu?',\r\n\t\t\t'wcf.label.none': '\u017d\u00e1dn\u00fd v\u00fdb\u011br',\r\n\t\t});\r\n\t\t\r\n\t\t{if !$labelGroups|empty}\r\n\t\t\tnew Filebase.File.LabelChooser({ {implode from=$labelGroupsToCategories key=__labelCategoryID item=labelGroupIDs}{@$__labelCategoryID}: [ {implode from=$labelGroupIDs item=labelGroupID}{@$labelGroupID}{\/implode} ] {\/implode} }, { {implode from=$labelIDs key=groupID item=labelID}{@$groupID}: {@$labelID}{\/implode} }, '#messageContainer');\r\n\t\t{\/if}\r\n\t\t\r\n\t\tnew WCF.Message.FormGuard();\r\n\t\t{if $action == 'add'}\r\n\t\t\tnew Filebase.File.Upload();\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{if FILEBASE_ENABLE_FILE_ICON}\r\n\t\t\tnew Filebase.File.IconUpload({if $action == 'edit'}{@$file->fileID}{else}0{\/if}, '{$tmpHash}');\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{if $action == 'add'
$file->isOwner()
$__wcf->session->getPermission('mod.filebase.canEditFile')}\r\n\t\t\tnew WCF.Search.User('#authors', null, false, [ ], true);\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{if $availableFileTypes|count > 1}\r\n\t\t\t$('input[name=fileType]').change(function (event) {\r\n\t\t\t\tvar $target = $(event.currentTarget);\r\n\t\t\t\tif ($target.val() == 'upload') {\r\n\t\t\t\t\t$('#downloadURL').disable();\r\n\t\t\t\t\t$('#fileUpload input[name=\"__files[]\"]').enable();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$('#downloadURL').enable();\r\n\t\t\t\t\t$('#fileUpload input[name=\"__files[]\"]').disable();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('input[name=fileType]:checked').trigger('change');\r\n\t\t{\/if}\r\n\t\t\r\n\t\tvar fileIconFontAwesomeContainer = elById('fileIconFontAwesome');\r\n\t\tvar fileIconUploadContaner = elById('fileIconUpload');\r\n\t\t\r\n\t\tfunction updateIconType(event) {\r\n\t\t\tswitch (event.currentTarget.value) {\r\n\t\t\t\tcase 'none':\r\n\t\t\t\t\telHide(fileIconFontAwesomeContainer);\r\n\t\t\t\t\telHide(fileIconUploadContaner);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 'upload':\r\n\t\t\t\t\telHide(fileIconFontAwesomeContainer);\r\n\t\t\t\t\telShow(fileIconUploadContaner);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 'fontAwesome':\r\n\t\t\t\t\telShow(fileIconFontAwesomeContainer);\r\n\t\t\t\t\telHide(fileIconUploadContaner);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telBySelAll('[name=iconType]', undefined, function(element) {\r\n\t\t\telement.addEventListener('change', updateIconType);\r\n\t\t});\r\n\t\t\r\n\t\tvar versionNumberContainer = elById('versionNumberContainer');\r\n\t\tvar commericalFileData = elById('commericalFileData');\r\n\t\tvar licenseData = elById('licenseData');\r\n\t\t\r\n\t\tfunction updateFileType(event) {\r\n\t\t\tif (event.currentTarget.value === 'noFile') {\r\n\t\t\t\telHide(versionNumberContainer);\r\n\t\t\t\tif (commericalFileData) elHide(commericalFileData);\r\n\t\t\t\telHide(licenseData);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\telShow(versionNumberContainer);\r\n\t\t\t\tif (commericalFileData) elShow(commericalFileData);\r\n\t\t\t\telShow(licenseData);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telBySelAll('[name=fileType]', undefined, function(element) {\r\n\t\t\telement.addEventListener('change', updateFileType);\r\n\t\t});\r\n\t\t\r\n\t\t{if !$moderatedCategoryIDs|empty}\r\n\t\t\tvar moderatedCategoryIDs = [ {implode from=$moderatedCategoryIDs item=moderatedCategoryID}{@$moderatedCategoryID}{\/implode} ];\r\n\t\t\tvar moderatedCategoryInfo = elById('moderatedCategoryInfo');\r\n\t\t\tvar categoryId = elById('categoryID');\r\n\t\t\t\r\n\t\t\tfunction updateCategoryId() {\r\n\t\t\t\tif (moderatedCategoryIDs.indexOf(~~categoryId.value) !== -1) {\r\n\t\t\t\t\telShow(moderatedCategoryInfo);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\telHide(moderatedCategoryInfo);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcategoryId.addEventListener('change', updateCategoryId);\r\n\t\t{\/if}\r\n\t});\r\n<\/script>\r\n\r\n{include file='footer'}\r\n{include file='wysiwyg' wysiwygSelector='text'}\r\n",{"application":"[redacted]","data":"[redacted]","filename":"[redacted]"}]},{"file":"\/www\/htdocs\/w00e34a8\/community\/lib\/system\/template\/TemplateEngine.class.php","line":475,"function":"compile","class":"wcf\\system\\template\\TemplateCompiler","type":"->","args":["fileAdd","{capture assign='pageTitle'}{lang}filebase.file.{@$action}{\/lang}{\/capture}\r\n\r\n{capture assign='contentTitle'}{lang}filebase.file.{@$action}{\/lang}{\/capture}\r\n\r\n{include file='header'}\r\n\r\n{if $action == 'add' && $quotaExceeded}\r\n\t<p class=\"warning\" role=\"status\">{lang}filebase.file.upload.error.quotaExceeded{\/lang}<\/p>\r\n{\/if}\r\n\r\n{if $action == 'add' && !$__wcf->session->getPermission('user.filebase.canAddFileWithoutModeration')}\r\n\t<p class=\"info\" role=\"status\">{lang}filebase.file.moderation.info{\/lang}<\/p>\r\n{\/if}\r\n\r\n{include file='formError'}\r\n\r\n<form id=\"messageContainer\" class=\"jsFormGuard\" method=\"post\" action=\"{if $action == 'add'}{link application='filebase' controller='FileAdd'}{\/link}{else}{link application='filebase' controller='FileEdit' id=$fileID}{\/link}{\/if}\">\r\n\t{if $action == 'add'}\r\n\t\t<section class=\"section\">\r\n\t\t\t<h2 class=\"sectionTitle\">{lang}filebase.file.file{\/lang}<\/h2>\r\n\t\t\t\r\n\t\t\t{if 'upload'|in_array:$availableFileTypes}\r\n\t\t\t\t<dl{if $errorField == 'fileUpload'} class=\"formError\"{\/if} id=\"fileUpload\">\r\n\t\t\t\t\t<dt><label>{if $availableFileTypes|count > 1}<input type=\"radio\" name=\"fileType\" value=\"upload\"{if $fileType == 'upload'} checked{\/if}> {\/if}{lang}filebase.file.upload{\/lang}<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t{if $fileUpload}\r\n\t\t\t\t\t\t\t\t<li class=\"box32\">\r\n\t\t\t\t\t\t\t\t\t<span class=\"icon icon32 fa-check\"><\/span>\r\n\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t<p>{$fileUpload->filename}<\/p>\r\n\t\t\t\t\t\t\t\t\t\t\t<small>{@$fileUpload->filesize|filesize}<\/small>\r\n\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{* placeholder for upload button: *}\r\n\t\t\t\t\t\t<div data-max-size=\"{@$__wcf->session->getPermission('user.filebase.maxFileSize')}\"><\/div>\r\n\t\t\t\t\t\t{if $errorField == 'fileUpload'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<small>{lang}filebase.file.upload.limits{\/lang}<\/small>\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t{if 'externalURL'|in_array:$availableFileTypes}\r\n\t\t\t\t<dl{if $errorField == 'externalURL'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><label>{if $availableFileTypes|count > 1}<input type=\"radio\" name=\"fileType\" value=\"externalURL\"{if $fileType == 'externalURL'} checked{\/if}> {\/if}{lang}filebase.file.externalURL{\/lang}<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<input type=\"url\" id=\"downloadURL\" name=\"downloadURL\" value=\"{$downloadURL}\" maxlength=\"255\" class=\"long\" placeholder=\"http:\/\/\">\r\n\t\t\t\t\t\t{if $errorField == 'downloadURL'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.file.downloadURL.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t{if 'noFile'|in_array:$availableFileTypes}\r\n\t\t\t\t<dl>\r\n\t\t\t\t\t<dt><label>{if $availableFileTypes|count > 1}<input type=\"radio\" name=\"fileType\" value=\"noFile\"{if $fileType === 'noFile'} checked{\/if}> {\/if}{lang}filebase.file.noFile{\/lang}<\/label><\/dt>\r\n\t\t\t\t\t<dd><small>{lang}filebase.file.noFile.description{\/lang}<\/small><\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t{event name='fileFields'}\r\n\t\t<\/section>\r\n\t{\/if}\r\n\t\r\n\t<section class=\"section\">\r\n\t\t<h2 class=\"sectionTitle\">{lang}filebase.file.information{\/lang}<\/h2>\r\n\t\t\r\n\t\t<dl{if $errorField == 'categoryID'} class=\"formError\"{\/if}>\r\n\t\t\t<dt><label for=\"categoryID\">{lang}filebase.file.category{\/lang}<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<select name=\"categoryID\" id=\"categoryID\">\r\n\t\t\t\t\t<option value=\"0\">{lang}wcf.global.noSelection{\/lang}<\/option>\r\n\t\t\t\t\t\r\n\t\t\t\t\t{foreach from=$categoryNodeList item=category}\r\n\t\t\t\t\t\t<option value=\"{@$category->categoryID}\"{if $category->categoryID == $categoryID} selected{\/if}{if !$category->getPermission('canUseCategory')} disabled{\/if}>{if $category->getDepth() > 1}{@\" \"|str_repeat:($category->getDepth() - 1)}{\/if}{$category->getTitle()}<\/option>\r\n\t\t\t\t\t{\/foreach}\r\n\t\t\t\t<\/select>\r\n\t\t\t\t{if !$moderatedCategoryIDs|empty}\r\n\t\t\t\t\t<small class=\"innerInfo\" id=\"moderatedCategoryInfo\"{if !$categoryID|in_array:$moderatedCategoryIDs} style=\"display: none;\"{\/if}>{lang}filebase.file.category.moderation.info{\/lang}<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t\t{if $errorField == 'categoryID'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t{elseif $errorType == 'invalid'}\r\n\t\t\t\t\t\t\t{lang}wcf.global.form.error.noValidSelection{\/lang}\r\n\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t{lang}filebase.file.category.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{if FILEBASE_ENABLE_FILE_ICON}\r\n\t\t\t<dl>\r\n\t\t\t\t<dt><label for=\"iconType\">{lang}filebase.file.icon{\/lang}<\/label><\/dt>\r\n\t\t\t\t<dd class=\"floated\">\r\n\t\t\t\t\t<label><input type=\"radio\" name=\"iconType\" value=\"none\"{if $iconType === 'none'} checked{\/if}> {lang}filebase.file.icon.none{\/lang}<\/label>\r\n\t\t\t\t\t<label><input type=\"radio\" name=\"iconType\" value=\"upload\"{if $iconType === 'upload'} checked{\/if}> {lang}filebase.file.icon.upload{\/lang}<\/label>\r\n\t\t\t\t\t<label><input type=\"radio\" name=\"iconType\" value=\"fontAwesome\"{if $iconType === 'fontAwesome'} checked{\/if}> {lang}filebase.file.icon.fontAwesome{\/lang}<\/label>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"fileIconUpload\" class=\"filebaseFileIconUpload{if $errorField == 'icon'} formError{\/if}\"{if $iconType !== 'upload'} style=\"display: none;\"{\/if}>\r\n\t\t\t\t<dt><label for=\"icon\">{lang}filebase.file.icon.upload{\/lang}<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t{if $iconLocation}\r\n\t\t\t\t\t\t<img src=\"{$iconLocation}\" alt=\"\" id=\"fileIcon\">\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<ul class=\"buttonList\">\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<div id=\"fileIconUploadButton\"><\/div>\r\n\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<button type=\"button\" class=\"button\" id=\"deleteFileIcon\" {if !$iconLocation} style=\"display: none;\"{\/if}>{lang}filebase.file.icon.delete{\/lang}<\/button>\r\n\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t{if $errorField == 'icon'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.icon.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<small>{lang}filebase.file.icon.description{\/lang}<\/small>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"fileIconFontAwesome\"{if $errorField === 'fontAwesomeIcon'} class=\"formError\"{\/if}{if $iconType !== 'fontAwesome'} style=\"display: none;\"{\/if}>\r\n\t\t\t\t<dt><label for=\"fontAwesomeIcon\">{lang}filebase.file.icon.fontAwesome{\/lang}<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<span{if !$fontAwesomeIcon|empty} class=\"icon icon64 fa-{$fontAwesomeIcon}\"{\/if} id=\"fontAwesomeIcon_icon\"><\/span>\r\n\t\t\t\t\t<a href=\"#\" class=\"button small\" id=\"fontAwesomeIcon_openIconDialog\">{lang}wcf.global.button.edit{\/lang}<\/a>\r\n\t\t\t\t\t<input type=\"hidden\" id=\"fontAwesomeIcon\" name=\"fontAwesomeIcon\" value=\"{$fontAwesomeIcon}\">\r\n\t\t\t\t\t{if $errorField === 'fontAwesomeIcon'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType === 'empty'
$errorType === 'noValidSelection'}\r\n\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.icon.fontAwesome.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\r\n\t\t\t\t\t{include file='fontAwesomeJavaScript'}\r\n\t\t\t\t\t<script data-relocate=\"true\">\r\n\t\t\t\t\t\trequire(['WoltLabSuite\/Core\/Ui\/Style\/FontAwesome'], function(UiStyleFontAwesome) {\r\n\t\t\t\t\t\t\tvar button = elById('fontAwesomeIcon_openIconDialog');\r\n\t\t\t\t\t\t\tvar icon = elById('fontAwesomeIcon_icon');\r\n\t\t\t\t\t\t\tvar input = elById('fontAwesomeIcon');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tvar callback = function(iconName) {\r\n\t\t\t\t\t\t\t\ticon.className = 'icon icon64 fa-' + iconName;\r\n\t\t\t\t\t\t\t\tinput.value = iconName;\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbutton.addEventListener('click', function(event) {\r\n\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tUiStyleFontAwesome.open(callback);\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t<\/script>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{include file='messageFormMultilingualism'}\r\n\t\t\r\n\t\t{if $labelGroups|count}\r\n\t\t\t{foreach from=$labelGroups item=labelGroup}\r\n\t\t\t\t{if $labelGroup|count}\r\n\t\t\t\t\t<dl{if $errorField == 'label' && $errorType[$labelGroup->groupID]|isset} class=\"formError\"{\/if}>\r\n\t\t\t\t\t\t<dt><label>{$labelGroup->getTitle()}<\/label><\/dt>\r\n\t\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t\t<ul class=\"labelList jsOnly\" data-object-id=\"{@$labelGroup->groupID}\">\r\n\t\t\t\t\t\t\t\t<li class=\"dropdown labelChooser\" id=\"labelGroup{@$labelGroup->groupID}\" data-group-id=\"{@$labelGroup->groupID}\" data-force-selection=\"{if $labelGroup->forceSelection}true{else}false{\/if}\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"dropdownToggle\" data-toggle=\"labelGroup{@$labelGroup->groupID}\"><span class=\"badge label\">{lang}wcf.label.none{\/lang}<\/span><\/div>\r\n\t\t\t\t\t\t\t\t\t<div class=\"dropdownMenu\">\r\n\t\t\t\t\t\t\t\t\t\t<ul class=\"scrollableDropdownMenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t{foreach from=$labelGroup item=label}\r\n\t\t\t\t\t\t\t\t\t\t\t\t<li data-label-id=\"{@$label->labelID}\"><span><span class=\"badge label{if $label->getClassNames()} {@$label->getClassNames()}{\/if}\">{$label->getTitle()}<\/span><\/span><\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t{\/foreach}\r\n\t\t\t\t\t\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t\t\t<noscript>\r\n\t\t\t\t\t\t\t\t<select name=\"labelIDs[{@$labelGroup->groupID}]\">\r\n\t\t\t\t\t\t\t\t\t{foreach from=$labelGroup item=label}\r\n\t\t\t\t\t\t\t\t\t\t<option value=\"{@$label->labelID}\">{$label->getTitle()}<\/option>\r\n\t\t\t\t\t\t\t\t\t{\/foreach}\r\n\t\t\t\t\t\t\t\t<\/select>\r\n\t\t\t\t\t\t\t<\/noscript>\r\n\t\t\t\t\t\t\t{if $errorField == 'label' && $errorType[$labelGroup->groupID]|isset}\r\n\t\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t\t{if $errorType[$labelGroup->groupID] == 'missing'}\r\n\t\t\t\t\t\t\t\t\t\t{lang}wcf.label.error.missing{\/lang}\r\n\t\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t\t{lang}wcf.label.error.invalid{\/lang}\r\n\t\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/dd>\r\n\t\t\t\t\t<\/dl>\r\n\t\t\t\t{\/if}\r\n\t\t\t{\/foreach}\r\n\t\t{\/if}\r\n\t\t\r\n\t\t<dl{if $errorField == 'subject'} class=\"formError\"{\/if}>\r\n\t\t\t<dt><label for=\"subject\">{lang}wcf.global.title{\/lang}<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<input type=\"text\" id=\"subject\" name=\"subject\" value=\"{$subject}\" required maxlength=\"255\" class=\"long\">\r\n\t\t\t\t{if $errorField == 'subject'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t{elseif $errorType == 'censoredWordsFound'}\r\n\t\t\t\t\t\t\t{lang}wcf.message.error.censoredWordsFound{\/lang}\r\n\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t{lang}filebase.file.subject.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{if $action == 'add'}\r\n\t\t\t{if FILEBASE_ENABLE_VERSION_NUMBER}\r\n\t\t\t\t<dl id=\"versionNumberContainer\"{if $errorField == 'versionNumber'} class=\"formError\"{\/if}{if $fileType === 'noFile'} style=\"display: none;\"{\/if}>\r\n\t\t\t\t\t<dt><label for=\"versionNumber\">{lang}filebase.file.versionNumber{\/lang}<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<input type=\"text\" id=\"versionNumber\" name=\"versionNumber\" value=\"{$versionNumber}\" required maxlength=\"80\" class=\"medium\">\r\n\t\t\t\t\t\t{if $errorField == 'versionNumber'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.file.versionNumber.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t{\/if}\r\n\t\t\r\n\t\t<dl{if $errorField == 'teaser'} class=\"formError\"{\/if}>\r\n\t\t\t<dt><label for=\"teaser\">{lang}filebase.file.teaser{\/lang}<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<textarea id=\"teaser\" name=\"teaser\" rows=\"5\" cols=\"40\">{$teaser}<\/textarea>\r\n\t\t\t\t{if $errorField == 'teaser'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t{elseif $errorType == 'tooLong'}\r\n\t\t\t\t\t\t\t{lang maxTextLength=FILEBASE_MAX_TEASER_LENGTH}wcf.message.error.tooLong{\/lang}\r\n\t\t\t\t\t\t{elseif $errorType == 'censoredWordsFound'}\r\n\t\t\t\t\t\t\t{lang}wcf.message.error.censoredWordsFound{\/lang}\r\n\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t{lang}filebase.file.teaser.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t\t<small>{lang}filebase.file.teaser.description{\/lang}<\/small>\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{if MODULE_TAGGING}{include file='tagInput'}{\/if}\r\n\t\t\r\n\t\t<dl{if $errorField == 'website'} class=\"formError\"{\/if}>\r\n\t\t\t<dt><label for=\"website\">{lang}filebase.file.website{\/lang}<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<input type=\"url\" id=\"website\" name=\"website\" value=\"{$website}\" maxlength=\"255\" class=\"long\" placeholder=\"http:\/\/\">\r\n\t\t\t\t{if $errorField == 'website'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{lang}filebase.file.website.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t\t<small>{lang}filebase.file.website.description{\/lang}<\/small>\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{if $action == 'add'
$file->isOwner()
$__wcf->session->getPermission('mod.filebase.canEditFile')}\r\n\t\t\t<dl{if $errorField == 'authors'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"authors\">{lang}filebase.file.authors{\/lang}<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<textarea id=\"authors\" name=\"authors\" class=\"long\" cols=\"40\" rows=\"2\">{$authors}<\/textarea>\r\n\t\t\t\t\t{if $errorField == 'authors'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType|is_array}\r\n\t\t\t\t\t\t\t\t{foreach from=$errorType item='errorData'}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.file.authors.error.{@$errorData.type}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/foreach}\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.authors.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<small>{lang}filebase.file.authors.description{\/lang}<\/small>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{if MODULE_EDIT_HISTORY && $action == 'edit'}\r\n\t\t\t<dl{if $errorField == 'editReason'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"editReason\">{lang}filebase.file.editReason{\/lang}<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<textarea rows=\"3\" cols=\"40\" id=\"editReason\" name=\"editReason\">{$editReason}<\/textarea>\r\n\t\t\t\t\t{if $errorField == 'editReason'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.editReason.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{event name='informationFields'}\r\n\t<\/section>\r\n\t\r\n\t{if $options|count}\r\n\t\t<section id=\"fileOptions\" class=\"section\">\r\n\t\t\t<h2 class=\"sectionTitle\">{lang}filebase.file.options{\/lang}<\/h2>\r\n\t\t\t\r\n\t\t\t{include application='filebase' file='fileOptionFieldList'}\r\n\t\t\t\r\n\t\t\t<script data-relocate=\"true\">\r\n\t\t\t\t(function() {\r\n\t\t\t\t\tvar optionCategories = {\r\n\t\t\t\t\t\t{implode from=$options item=optionData}\r\n\t\t\t\t\t\t\t{@$optionData[object]->optionID}: [ {implode from=$optionData[object]->getCategoryIDs() item=categoryID}{@$categoryID}{\/implode)} ]\r\n\t\t\t\t\t\t{\/implode}\r\n\t\t\t\t\t};\r\n\t\t\t\t\tvar fileOptions = elById('fileOptions');\r\n\t\t\t\t\tvar categoryIdField = elById('categoryID');\r\n\t\t\t\t\t\r\n\t\t\t\t\tvar changeCategoryId = function() {\r\n\t\t\t\t\t\tvar categoryId = ~~categoryIdField.value;\r\n\r\n\t\t\t\t\t\tvar allHidden = true;\r\n\t\t\t\t\t\tfor (var optionID in optionCategories) {\r\n\t\t\t\t\t\t\tvar optionElement = elById('fileOption' + optionID + 'Dl');\r\n\t\t\t\t\t\t\tif (optionCategories[optionID].length === 0
optionCategories[optionID].indexOf(categoryId) !== -1) {\r\n\t\t\t\t\t\t\t\telShow(optionElement);\r\n\r\n\t\t\t\t\t\t\t\tallHidden = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\telHide(optionElement);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (allHidden) {\r\n\t\t\t\t\t\t\telHide(fileOptions);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\telShow(fileOptions);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tcategoryIdField.addEventListener('change', changeCategoryId);\r\n\t\t\t\t\t\r\n\t\t\t\t\tchangeCategoryId();\r\n\t\t\t\t})();\r\n\t\t\t<\/script>\r\n\t\t<\/section>\r\n\t{\/if}\r\n\t\r\n\t{if FILEBASE_ENABLE_SELLING && $__wcf->session->getPermission('user.filebase.canSellFile')}\r\n\t\t<section class=\"section\" id=\"commericalFileData\"{if $fileType === 'noFile'} style=\"display: none;\"{\/if}>\r\n\t\t\t<h2 class=\"sectionTitle\">{lang}filebase.file.commercial{\/lang}<\/h2>\r\n\t\t\t\r\n\t\t\t<dl>\r\n\t\t\t\t<dt><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<label><input type=\"checkbox\" id=\"isCommercial\" name=\"isCommercial\" value=\"1\"{if $isCommercial} checked{\/if}> {lang}filebase.file.isCommercial{\/lang}<\/label>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"isPurchasableDL\">\r\n\t\t\t\t<dt><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<label><input type=\"checkbox\" id=\"isPurchasable\" name=\"isPurchasable\" value=\"1\"{if $isPurchasable} checked{\/if}> {lang}filebase.file.isPurchasable{\/lang}<\/label>\r\n\t\t\t\t\t<small>{lang}filebase.file.isPurchasable.description{\/lang}<\/small>\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"currencyDL\"{if $errorField == 'currency'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"currency\">{lang}filebase.file.currency{\/lang}<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<select name=\"currency\" id=\"currency\">\r\n\t\t\t\t\t\t{htmlOptions output=$availableCurrencies values=$availableCurrencies selected=$currency}\r\n\t\t\t\t\t<\/select>\r\n\t\t\t\t\t\r\n\t\t\t\t\t{if $errorField == 'currency'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.currency.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t<dl id=\"priceDL\"{if $errorField == 'price'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"price\">{lang}filebase.file.price{\/lang}<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<input type=\"text\" id=\"price\" name=\"price\" value=\"{@$price|currency}\" class=\"tiny\">\r\n\t\t\t\t\t{if $errorField == 'price'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t{lang}filebase.file.price.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t{event name='commercialFields'}\r\n\t\t<\/section>\r\n\t\t\r\n\t\t<script data-relocate=\"true\">\r\n\t\t\t$('#isCommercial').change(function (event) {\r\n\t\t\t\tif ($('#isCommercial').is(':checked')) {\r\n\t\t\t\t\t$('#priceDL, #currencyDL, #isPurchasableDL').show();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$('#priceDL, #currencyDL, #isPurchasableDL').hide();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('#isCommercial').change();\r\n\t\t<\/script>\r\n\t{\/if}\r\n\t\r\n\t{if FILEBASE_ENABLE_LICENSE}\r\n\t\t<section class=\"section\" id=\"licenseData\"{if $fileType === 'noFile'} style=\"display: none;\"{\/if}>\r\n\t\t\t<header class=\"sectionHeader\">\r\n\t\t\t\t<h2 class=\"sectionTitle\">{lang}filebase.license.licenseAgreement{\/lang}<\/h2>\r\n\t\t\t\t<p class=\"sectionDescription\">{lang}filebase.license.licenseAgreement.inputDescription{\/lang}<\/p>\r\n\t\t\t<\/header>\r\n\t\t\t\r\n\t\t\t{if FILEBASE_ENABLE_CUSTOM_LICENSE}\r\n\t\t\t\t<dl id=\"licenseTypeDL\"{if $errorField == 'licenseType'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<label><input type=\"radio\" name=\"licenseType\" value=\"predefined\"{if $licenseType == 'predefined'} checked{\/if}> {lang}filebase.license.licenseType.predefined{\/lang}<\/label>\r\n\t\t\t\t\t\t<label><input type=\"radio\" name=\"licenseType\" value=\"url\"{if $licenseType == 'url'} checked{\/if}> {lang}filebase.license.licenseType.url{\/lang}<\/label>\r\n\t\t\t\t\t\t<label><input type=\"radio\" name=\"licenseType\" value=\"text\"{if $licenseType == 'text'} checked{\/if}> {lang}filebase.license.licenseType.text{\/lang}<\/label>\r\n\t\t\t\t\t\t{if $errorField == 'licenseType'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t\t\r\n\t\t\t\t<script data-relocate=\"true\">\r\n\t\t\t\t\t$(function() {\r\n\t\t\t\t\t\t$('#licenseTypeDL input[type=radio]').change(function(event) {\r\n\t\t\t\t\t\t\tvar $value = $(event.currentTarget).attr('value');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif ($value === 'predefined') {\r\n\t\t\t\t\t\t\t\t$('#licenseIDDL').show();\r\n\t\t\t\t\t\t\t\t$('#licenseNameDL, #licenseURLDL, #licenseTextDl').hide();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if ($value === 'url') {\r\n\t\t\t\t\t\t\t\t$('#licenseIDDL, #licenseTextDl').hide();\r\n\t\t\t\t\t\t\t\t$('#licenseNameDL, #licenseURLDL').show();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if ($value === 'text') {\r\n\t\t\t\t\t\t\t\t$('#licenseIDDL, #licenseURLDL').hide();\r\n\t\t\t\t\t\t\t\t$('#licenseNameDL, #licenseTextDl').show();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t$('#licenseTypeDL input[type=radio]:checked').trigger('change');\r\n\t\t\t\t\t});\r\n\t\t\t\t<\/script>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t<dl id=\"licenseIDDL\"{if $errorField == 'licenseID'} class=\"formError\"{\/if}>\r\n\t\t\t\t<dt><label for=\"licenseID\">{lang}filebase.license.license{\/lang}<\/label><\/dt>\r\n\t\t\t\t<dd>\r\n\t\t\t\t\t<select name=\"licenseID\" id=\"licenseID\">\r\n\t\t\t\t\t\t<option value=\"\">{lang}wcf.global.noSelection{\/lang}<\/option>\r\n\t\t\t\t\t\t{foreach from=$availableLicenses item=availableLicense}\r\n\t\t\t\t\t\t\t<option value=\"{@$availableLicense->licenseID}\"{if $licenseID == $availableLicense->licenseID} selected{\/if}>{$availableLicense->licenseName}<\/option>\r\n\t\t\t\t\t\t{\/foreach}\r\n\t\t\t\t\t<\/select>\r\n\t\t\t\t\t{if $errorField == 'licenseID'}\r\n\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t{\/if}\r\n\t\t\t\t<\/dd>\r\n\t\t\t<\/dl>\r\n\t\t\t\r\n\t\t\t{if FILEBASE_ENABLE_CUSTOM_LICENSE}\r\n\t\t\t\t<dl id=\"licenseNameDL\"{if $errorField == 'licenseName'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><label for=\"licenseName\">{lang}filebase.license.licenseName{\/lang}<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<input type=\"text\" id=\"licenseName\" name=\"licenseName\" value=\"{$licenseName}\" class=\"long\" maxlength=\"255\">\r\n\t\t\t\t\t\t{if $errorField == 'licenseName'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.license.licenseName.error.{$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t\t\r\n\t\t\t\t<dl id=\"licenseURLDL\"{if $errorField == 'licenseURL'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><label for=\"licenseURL\">{lang}filebase.license.licenseURL{\/lang}<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<input type=\"url\" id=\"licenseURL\" name=\"licenseURL\" value=\"{$licenseURL}\" class=\"long\" maxlength=\"65535\">\r\n\t\t\t\t\t\t{if $errorField == 'licenseURL'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.license.licenseURL.error.{$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t\t\r\n\t\t\t\t<dl id=\"licenseTextDl\"{if $errorField == 'licenseText'} class=\"formError\"{\/if}>\r\n\t\t\t\t\t<dt><label for=\"licenseText\">{lang}filebase.license.licenseText{\/lang}<\/label><\/dt>\r\n\t\t\t\t\t<dd>\r\n\t\t\t\t\t\t<textarea name=\"licenseText\" id=\"licenseText\" cols=\"40\" rows=\"10\">{$licenseText}<\/textarea>\r\n\t\t\t\t\t\t{if $errorField == 'licenseText'}\r\n\t\t\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t\t\t{lang}filebase.license.licenseText.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t\t\t<\/small>\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/dd>\r\n\t\t\t\t<\/dl>\r\n\t\t\t{\/if}\r\n\t\t\t\r\n\t\t\t{event name='licenseFields'}\r\n\t\t<\/section>\r\n\t{\/if}\r\n\t\r\n\t<section class=\"section\">\r\n\t\t<h2 class=\"sectionTitle\">{lang}filebase.file.message{\/lang}<\/h2>\r\n\t\t\r\n\t\t<dl class=\"wide{if $errorField == 'text'} formError{\/if}\">\r\n\t\t\t<dt><label for=\"text\">{lang}filebase.file.message{\/lang}<\/label><\/dt>\r\n\t\t\t<dd>\r\n\t\t\t\t<textarea id=\"text\" name=\"text\" rows=\"20\" cols=\"40\">{$text}<\/textarea>\r\n\t\t\t\t{if $errorField == 'text'}\r\n\t\t\t\t\t<small class=\"innerError\">\r\n\t\t\t\t\t\t{if $errorType == 'empty'}\r\n\t\t\t\t\t\t\t{lang}wcf.global.form.error.empty{\/lang}\r\n\t\t\t\t\t\t{elseif $errorType == 'tooLong'}\r\n\t\t\t\t\t\t\t{lang}wcf.message.error.tooLong{\/lang}\r\n\t\t\t\t\t\t{elseif $errorType == 'censoredWordsFound'}\r\n\t\t\t\t\t\t\t{lang}wcf.message.error.censoredWordsFound{\/lang}\r\n\t\t\t\t\t\t{elseif $errorType == 'disallowedBBCodes'}\r\n\t\t\t\t\t\t\t{lang}wcf.message.error.disallowedBBCodes{\/lang}\r\n\t\t\t\t\t\t{else}\r\n\t\t\t\t\t\t\t{lang}filebase.file.message.error.{@$errorType}{\/lang}\r\n\t\t\t\t\t\t{\/if}\r\n\t\t\t\t\t<\/small>\r\n\t\t\t\t{\/if}\r\n\t\t\t<\/dd>\r\n\t\t<\/dl>\r\n\t\t\r\n\t\t{event name='messageFields'}\r\n\t<\/section>\r\n\t\r\n\t{event name='sections'}\r\n\t\r\n\t{include file='messageFormTabs' wysiwygContainerID='text'}\r\n\t\r\n\t<div class=\"formSubmit\">\r\n\t\t<input type=\"submit\" value=\"{lang}wcf.global.button.submit{\/lang}\" accesskey=\"s\">\r\n\t\t\r\n\t\t{if $action == 'edit'}\r\n\t\t\t{include file='messageFormPreviewButton' previewMessageObjectType='com.woltlab.filebase.file' previewMessageObjectID=$file->fileID}\r\n\t\t{else}\r\n\t\t\t{include file='messageFormPreviewButton' previewMessageObjectType='com.woltlab.filebase.file' previewMessageObjectID=0}\r\n\t\t{\/if}\r\n\t\t<input type=\"hidden\" id=\"uploadID\" name=\"uploadID\" value=\"{@$uploadID}\">\r\n\t\t{@SECURITY_TOKEN_INPUT_TAG}\r\n\t\t{if $availableFileTypes|count == 1}\r\n\t\t\t<input type=\"hidden\" id=\"fileType\" name=\"fileType\" value=\"{$availableFileTypes|reset}\">\r\n\t\t{\/if}\r\n\t\t<input type=\"hidden\" name=\"tmpHash\" value=\"{$tmpHash}\">\r\n\t<\/div>\r\n<\/form>\r\n\r\n<script data-relocate=\"true\">\r\n\t$(function() {\r\n\t\tWCF.Language.addObject({\r\n\t\t\t'filebase.file.upload.confirmOverwrite': '{lang}filebase.file.upload.confirmOverwrite{\/lang}',\r\n\t\t\t'filebase.file.upload.error.invalidExtension': '{lang}filebase.file.upload.error.invalidExtension{\/lang}',\r\n\t\t\t'filebase.file.upload.error.tooLarge': '{lang}filebase.file.upload.error.tooLarge{\/lang}',\r\n\t\t\t'filebase.file.upload.error.uploadFailed': '{lang}filebase.file.upload.error.uploadFailed{\/lang}',\r\n\t\t\t'filebase.file.upload.error.quotaExceeded': '{lang}filebase.file.upload.error.quotaExceeded{\/lang}',\r\n\t\t\t'filebase.file.icon.error.invalidExtension': '{lang}filebase.file.icon.error.invalidExtension{\/lang}',\r\n\t\t\t'filebase.file.icon.error.noImage': '{lang}filebase.file.icon.error.noImage{\/lang}',\r\n\t\t\t'filebase.file.icon.error.tooSmall': '{lang}filebase.file.icon.error.tooSmall{\/lang}',\r\n\t\t\t'filebase.file.icon.error.tooLarge': '{lang}filebase.file.icon.error.tooLarge{\/lang}',\r\n\t\t\t'filebase.file.icon.error.uploadFailed': '{lang}filebase.file.icon.error.uploadFailed{\/lang}',\r\n\t\t\t'filebase.file.icon.delete.confirmMessage': '{lang}filebase.file.icon.delete.confirmMessage{\/lang}',\r\n\t\t\t'wcf.label.none': '{lang}wcf.label.none{\/lang}',\r\n\t\t});\r\n\t\t\r\n\t\t{if !$labelGroups|empty}\r\n\t\t\tnew Filebase.File.LabelChooser({ {implode from=$labelGroupsToCategories key=__labelCategoryID item=labelGroupIDs}{@$__labelCategoryID}: [ {implode from=$labelGroupIDs item=labelGroupID}{@$labelGroupID}{\/implode} ] {\/implode} }, { {implode from=$labelIDs key=groupID item=labelID}{@$groupID}: {@$labelID}{\/implode} }, '#messageContainer');\r\n\t\t{\/if}\r\n\t\t\r\n\t\tnew WCF.Message.FormGuard();\r\n\t\t{if $action == 'add'}\r\n\t\t\tnew Filebase.File.Upload();\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{if FILEBASE_ENABLE_FILE_ICON}\r\n\t\t\tnew Filebase.File.IconUpload({if $action == 'edit'}{@$file->fileID}{else}0{\/if}, '{$tmpHash}');\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{if $action == 'add'
$file->isOwner()
$__wcf->session->getPermission('mod.filebase.canEditFile')}\r\n\t\t\tnew WCF.Search.User('#authors', null, false, [ ], true);\r\n\t\t{\/if}\r\n\t\t\r\n\t\t{if $availableFileTypes|count > 1}\r\n\t\t\t$('input[name=fileType]').change(function (event) {\r\n\t\t\t\tvar $target = $(event.currentTarget);\r\n\t\t\t\tif ($target.val() == 'upload') {\r\n\t\t\t\t\t$('#downloadURL').disable();\r\n\t\t\t\t\t$('#fileUpload input[name=\"__files[]\"]').enable();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$('#downloadURL').enable();\r\n\t\t\t\t\t$('#fileUpload input[name=\"__files[]\"]').disable();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('input[name=fileType]:checked').trigger('change');\r\n\t\t{\/if}\r\n\t\t\r\n\t\tvar fileIconFontAwesomeContainer = elById('fileIconFontAwesome');\r\n\t\tvar fileIconUploadContaner = elById('fileIconUpload');\r\n\t\t\r\n\t\tfunction updateIconType(event) {\r\n\t\t\tswitch (event.currentTarget.value) {\r\n\t\t\t\tcase 'none':\r\n\t\t\t\t\telHide(fileIconFontAwesomeContainer);\r\n\t\t\t\t\telHide(fileIconUploadContaner);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 'upload':\r\n\t\t\t\t\telHide(fileIconFontAwesomeContainer);\r\n\t\t\t\t\telShow(fileIconUploadContaner);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 'fontAwesome':\r\n\t\t\t\t\telShow(fileIconFontAwesomeContainer);\r\n\t\t\t\t\telHide(fileIconUploadContaner);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telBySelAll('[name=iconType]', undefined, function(element) {\r\n\t\t\telement.addEventListener('change', updateIconType);\r\n\t\t});\r\n\t\t\r\n\t\tvar versionNumberContainer = elById('versionNumberContainer');\r\n\t\tvar commericalFileData = elById('commericalFileData');\r\n\t\tvar licenseData = elById('licenseData');\r\n\t\t\r\n\t\tfunction updateFileType(event) {\r\n\t\t\tif (event.currentTarget.value === 'noFile') {\r\n\t\t\t\telHide(versionNumberContainer);\r\n\t\t\t\tif (commericalFileData) elHide(commericalFileData);\r\n\t\t\t\telHide(licenseData);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\telShow(versionNumberContainer);\r\n\t\t\t\tif (commericalFileData) elShow(commericalFileData);\r\n\t\t\t\telShow(licenseData);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telBySelAll('[name=fileType]', undefined, function(element) {\r\n\t\t\telement.addEventListener('change', updateFileType);\r\n\t\t});\r\n\t\t\r\n\t\t{if !$moderatedCategoryIDs|empty}\r\n\t\t\tvar moderatedCategoryIDs = [ {implode from=$moderatedCategoryIDs item=moderatedCategoryID}{@$moderatedCategoryID}{\/implode} ];\r\n\t\t\tvar moderatedCategoryInfo = elById('moderatedCategoryInfo');\r\n\t\t\tvar categoryId = elById('categoryID');\r\n\t\t\t\r\n\t\t\tfunction updateCategoryId() {\r\n\t\t\t\tif (moderatedCategoryIDs.indexOf(~~categoryId.value) !== -1) {\r\n\t\t\t\t\telShow(moderatedCategoryInfo);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\telHide(moderatedCategoryInfo);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcategoryId.addEventListener('change', updateCategoryId);\r\n\t\t{\/if}\r\n\t});\r\n<\/script>\r\n\r\n{include file='footer'}\r\n{include file='wysiwyg' wysiwygSelector='text'}\r\n","\/www\/htdocs\/w00e34a8\/community\/templates\/compiled\/41_filebase_5_fileAdd.php",{"application":"[redacted]","data":"[redacted]","filename":"[redacted]"}]},{"file":"\/www\/htdocs\/w00e34a8\/community\/lib\/system\/template\/TemplateEngine.class.php","line":327,"function":"compileTemplate","class":"wcf\\system\\template\\TemplateEngine","type":"->","args":["fileAdd","\/www\/htdocs\/w00e34a8\/community\/filebase\/templates\/fileAdd.tpl","\/www\/htdocs\/w00e34a8\/community\/templates\/compiled\/41_filebase_5_fileAdd.php",{"application":"[redacted]","data":"[redacted]","filename":"[redacted]"}]},{"file":"\/www\/htdocs\/w00e34a8\/community\/lib\/page\/AbstractPage.class.php","line":323,"function":"display","class":"wcf\\system\\template\\TemplateEngine","type":"->","args":["fileAdd","filebase"]},{"file":"\/www\/htdocs\/w00e34a8\/community\/lib\/page\/AbstractPage.class.php","line":114,"function":"show","class":"wcf\\page\\AbstractPage","type":"->","args":[]},{"file":"\/www\/htdocs\/w00e34a8\/community\/lib\/system\/request\/Request.class.php","line":83,"function":"__run","class":"wcf\\page\\AbstractPage","type":"->","args":[]},{"file":"\/www\/htdocs\/w00e34a8\/community\/lib\/system\/request\/RequestHandler.class.php","line":107,"function":"execute","class":"wcf\\system\\request\\Request","type":"->","args":[]},{"file":"\/www\/htdocs\/w00e34a8\/community\/filebase\/index.php","line":9,"function":"handle","class":"wcf\\system\\request\\RequestHandler","type":"->","args":["filebase"]}]
Kann mir jemand auf die Sprünge helfen wo ich suchen muss?
Danke
Wasserlasser