| 1 | {include file='header'} |
|---|
| 2 | {include file='wysiwyg'} |
|---|
| 3 | |
|---|
| 4 | <div class="mainHeadline"> |
|---|
| 5 | <img src="{@RELATIVE_WCF_DIR}icon/downloadDBKat{@$action|ucfirst}L.png" alt="" /> |
|---|
| 6 | <div class="headlineContainer"> |
|---|
| 7 | <h2>{lang}wcf.acp.dldb.kat.{@$action}{/lang}</h2> |
|---|
| 8 | {if $katID|isset}<p>{lang}{$name}{/lang}</p>{/if} |
|---|
| 9 | </div> |
|---|
| 10 | </div> |
|---|
| 11 | |
|---|
| 12 | {if $errorField} |
|---|
| 13 | <p class="error">{lang}wcf.global.form.error{/lang}</p> |
|---|
| 14 | {/if} |
|---|
| 15 | |
|---|
| 16 | {if $success|isset} |
|---|
| 17 | <p class="success">{lang}wcf.acp.dldb.{@$action}.success{/lang}</p> |
|---|
| 18 | {/if} |
|---|
| 19 | |
|---|
| 20 | <div class="contentHeader"> |
|---|
| 21 | <div class="largeButtons"> |
|---|
| 22 | <ul><li><a href="index.php?page=DownloadDBKatList&packageID={@PACKAGE_ID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/downloadDBKatM.png" alt="" title="{lang}wcf.acp.dldb.view{/lang}" /> <span>{lang}wcf.acp.dldb.view{/lang}</span></a></li></ul> |
|---|
| 23 | </div> |
|---|
| 24 | </div> |
|---|
| 25 | |
|---|
| 26 | <form method="post" action="index.php?form=DownloadDBKat{@$action|ucfirst}"> |
|---|
| 27 | <div class="border content"> |
|---|
| 28 | <div id="katEdit"> |
|---|
| 29 | <fieldset class="noJavaScript"> |
|---|
| 30 | <legend class="noJavaScript">{lang}wcf.acp.dldb.kat.description{/lang}</legend> |
|---|
| 31 | <div class="formElement{if $errorField == 'name'} formError{/if}"> |
|---|
| 32 | <div class="formFieldLabel"> |
|---|
| 33 | <label for="name">{lang}wcf.acp.dldb.katname{/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> |
|---|
| 44 | <div class="formElement"> |
|---|
| 45 | <div class="formFieldLabel"> |
|---|
| 46 | <label for="languageID">{lang}wcf.user.language{/lang}</label> |
|---|
| 47 | </div> |
|---|
| 48 | <div class="formField"> |
|---|
| 49 | <select name="languageID"> |
|---|
| 50 | {foreach from=$language item=item} |
|---|
| 51 | <option value="{$item.languageID}" {if $item.languageID == $languageID}selected{/if}>{@$item.languageName}</option> |
|---|
| 52 | {/foreach} |
|---|
| 53 | </select> |
|---|
| 54 | </div> |
|---|
| 55 | </div> |
|---|
| 56 | </fieldset> |
|---|
| 57 | <fieldset> |
|---|
| 58 | <legend>{lang}wcf.acp.dldb.description{/lang}</legend> |
|---|
| 59 | <textarea name="description" id="text" rows="5" cols="20">{$description}</textarea> |
|---|
| 60 | {if $errorField == 'description'} |
|---|
| 61 | <p class="innerError"> |
|---|
| 62 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 63 | {if $errorType == 'tooLong'}{lang}wcf.message.error.tooLong{/lang}{/if} |
|---|
| 64 | {if $errorType == 'censoredWordsFound'}{lang}wcf.message.error.censoredWordsFound{/lang}{/if} |
|---|
| 65 | </p> |
|---|
| 66 | {/if} |
|---|
| 67 | <div class="formFieldDesc hidden" id="descriptionHelpMessage""> |
|---|
| 68 | <p>{lang}wcf.acp.dldb.description.description{/lang}</p> |
|---|
| 69 | </div> |
|---|
| 70 | <script type="text/javascript">//<![CDATA[ |
|---|
| 71 | inlineHelp.register('description'); |
|---|
| 72 | //]]></script> |
|---|
| 73 | {include file="messageFormTabs"} |
|---|
| 74 | </fieldset> |
|---|
| 75 | <fieldset> |
|---|
| 76 | <legend>{lang}wcf.acp.dldb.topID.legend{/lang}</legend> |
|---|
| 77 | <div class="formGroup"> |
|---|
| 78 | {if $katOptions|count > 0} |
|---|
| 79 | <div class="formElement{if $errorField == 'topID'} formError{/if}" id="parentIDDiv"> |
|---|
| 80 | <div class="formFieldLabel"> |
|---|
| 81 | <label for="topID">{lang}wcf.acp.dldb.topID{/lang}</label> |
|---|
| 82 | </div> |
|---|
| 83 | <div class="formField"> |
|---|
| 84 | <select name="topID" id="topID"> |
|---|
| 85 | <option value="0">{lang}wcf.acp.dldb.topID.noTopID{/lang}</option> |
|---|
| 86 | {htmlOptions options=$katOptions disableEncoding=true selected=$topID} |
|---|
| 87 | </select> |
|---|
| 88 | {if $errorField == 'topID'} |
|---|
| 89 | <p class="innerError"> |
|---|
| 90 | {if $errorType == 'invalid'}{lang}wcf.acp.dldb.error.topID.invalid{/lang}{/if} |
|---|
| 91 | </p> |
|---|
| 92 | {/if} |
|---|
| 93 | </div> |
|---|
| 94 | <div class="formFieldDesc hidden" id="parentIDHelpMessage"> |
|---|
| 95 | {lang}wcf.acp.dldb.topID.description{/lang} |
|---|
| 96 | </div> |
|---|
| 97 | </div> |
|---|
| 98 | <script type="text/javascript">//<![CDATA[ |
|---|
| 99 | inlineHelp.register('parentID'); |
|---|
| 100 | //]]></script> |
|---|
| 101 | {/if} |
|---|
| 102 | <div class="formElement{if $errorField == 'sortOrder'} formError{/if}" id="positionDiv"> |
|---|
| 103 | <div class="formFieldLabel"> |
|---|
| 104 | <label for="sortOrder">{lang}wcf.acp.dldb.sortOrder{/lang}</label> |
|---|
| 105 | </div> |
|---|
| 106 | <div class="formField"> |
|---|
| 107 | <input type="text" class="inputText" id="sortOrder" name="sortOrder" value="{@$sortOrder}" /> |
|---|
| 108 | {if $errorField == 'sortOrder'} |
|---|
| 109 | <p class="innerError"> |
|---|
| 110 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 111 | </p> |
|---|
| 112 | {/if} |
|---|
| 113 | </div> |
|---|
| 114 | <div class="formFieldDesc hidden" id="positionHelpMessage"> |
|---|
| 115 | {lang}wcf.acp.dldb.sortOrder.description{/lang} |
|---|
| 116 | </div> |
|---|
| 117 | </div> |
|---|
| 118 | <script type="text/javascript">//<![CDATA[ |
|---|
| 119 | inlineHelp.register('position'); |
|---|
| 120 | //]]></script> |
|---|
| 121 | </div> |
|---|
| 122 | </fieldset> |
|---|
| 123 | <fieldset> |
|---|
| 124 | <legend>{lang}wcf.acp.dldb.groups{/lang}</legend> |
|---|
| 125 | <div class="formGroup"> |
|---|
| 126 | <div class="formGroupField"> |
|---|
| 127 | <fieldset> |
|---|
| 128 | <div class="formField"> |
|---|
| 129 | {htmlCheckboxes options=$availableGroups name=groupIDs selected=$groupIDs} |
|---|
| 130 | </div> |
|---|
| 131 | </fieldset> |
|---|
| 132 | </div> |
|---|
| 133 | </div> |
|---|
| 134 | </fieldset> |
|---|
| 135 | <fieldset> |
|---|
| 136 | <legend>{lang}wcf.acp.dldb.uploadGroups{/lang}</legend> |
|---|
| 137 | <div class="formGroup"> |
|---|
| 138 | <div class="formGroupField"> |
|---|
| 139 | <fieldset> |
|---|
| 140 | <div class="formField"> |
|---|
| 141 | {htmlCheckboxes options=$availableGroups name=uploadGroups selected=$uploadGroups} |
|---|
| 142 | </div> |
|---|
| 143 | </fieldset> |
|---|
| 144 | </div> |
|---|
| 145 | </div> |
|---|
| 146 | </fieldset> |
|---|
| 147 | <div class="formSubmit"> |
|---|
| 148 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 149 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 150 | <input type="hidden" name="packageID" value="{@PACKAGE_ID}" /> |
|---|
| 151 | {@SID_INPUT_TAG} |
|---|
| 152 | <input type="hidden" name="action" value="{@$action}" /> |
|---|
| 153 | {if $katID|isset} |
|---|
| 154 | <input type="hidden" name="katID" value="{@$katID}" /> |
|---|
| 155 | {/if} |
|---|
| 156 | </div> |
|---|
| 157 | </form> |
|---|
| 158 | |
|---|
| 159 | {include file='footer'} |
|---|