| 1 | {include file='header'} |
|---|
| 2 | {if $edit == 0} |
|---|
| 3 | <div class="mainHeadline"> |
|---|
| 4 | <img src="{@RELATIVE_WCF_DIR}icon/databaseAutoJoinGroupL.png" alt="" /> |
|---|
| 5 | <div class="headlineContainer"> |
|---|
| 6 | <h2>{lang}wcf.acp.database.autojoingroup{/lang}</h2> |
|---|
| 7 | <p>{lang}wcf.acp.database.autojoingroup.description{/lang}</p> |
|---|
| 8 | </div> |
|---|
| 9 | </div> |
|---|
| 10 | {else} |
|---|
| 11 | <div class="mainHeadline"> |
|---|
| 12 | <img src="{@RELATIVE_WCF_DIR}icon/databaseAutoJoinGroupEditL.png" alt="" /> |
|---|
| 13 | <div class="headlineContainer"> |
|---|
| 14 | <h2>{lang}wcf.acp.database.autojoingroup.edit{/lang}</h2> |
|---|
| 15 | <p>{lang}wcf.acp.database.autojoingroup.edit.description{/lang}</p> |
|---|
| 16 | </div> |
|---|
| 17 | </div> |
|---|
| 18 | {/if} |
|---|
| 19 | |
|---|
| 20 | {if $errorField} |
|---|
| 21 | <p class="error">{lang}wcf.global.form.error{/lang}</p> |
|---|
| 22 | {/if} |
|---|
| 23 | |
|---|
| 24 | {if $success|isset} |
|---|
| 25 | <p class="success">{lang}wcf.acp.database.autojoingroup.success{/lang}</p> |
|---|
| 26 | {/if} |
|---|
| 27 | |
|---|
| 28 | {if $edit == 0} |
|---|
| 29 | <div class="border content"> |
|---|
| 30 | <div class="container-1"> |
|---|
| 31 | |
|---|
| 32 | {if $joins|count > 0} |
|---|
| 33 | <div class="contentBox"> |
|---|
| 34 | <h3 class="subHeadline">{lang}wcf.acp.database.autojoingroup.table{/lang}</h3> |
|---|
| 35 | |
|---|
| 36 | {if MODULE_DATABASE == 1 && MODULE_DATABASE_AUTOJOINGROUP == 1} |
|---|
| 37 | <div class="smallButtons"> |
|---|
| 38 | <ul> |
|---|
| 39 | <img src="{@RELATIVE_WCF_DIR}icon/enabledS.png" alt="" title="{lang}wcf.acp.database.autojoingroup.is.on{/lang}" /><span> {lang}wcf.acp.database.autojoingroup.is.on{/lang} </span> |
|---|
| 40 | </ul> |
|---|
| 41 | </div> |
|---|
| 42 | {else} |
|---|
| 43 | <div class="smallButtons"> |
|---|
| 44 | <ul> |
|---|
| 45 | <img src="{@RELATIVE_WCF_DIR}icon/warningM.png" alt="" title="{lang}wcf.acp.database.autojoingroup.is.off{/lang}" /> <img src="{@RELATIVE_WCF_DIR}icon/disabledS.png" alt="" title="{lang}wcf.acp.database.autojoingroup.is.off{/lang}" /><span> <strong>{lang}wcf.acp.database.autojoingroup.is.off{/lang}</strong> </span><img src="{@RELATIVE_WCF_DIR}icon/warningM.png" alt="" title="{lang}wcf.acp.database.autojoingroup.is.off{/lang}" /> |
|---|
| 46 | </ul> |
|---|
| 47 | </div> |
|---|
| 48 | {/if} |
|---|
| 49 | <br /> |
|---|
| 50 | |
|---|
| 51 | <div class="border"> |
|---|
| 52 | <table class="tableList membersList"> |
|---|
| 53 | <thead> |
|---|
| 54 | <tr class="tableHead"> |
|---|
| 55 | <th>{lang}wcf.acp.database.autojoingroup.uploads{/lang}</th> |
|---|
| 56 | <th>{lang}wcf.acp.database.autojoingroup.group{/lang}</th> |
|---|
| 57 | <th>{lang}wcf.acp.database.autojoingroup.action{/lang}</th> |
|---|
| 58 | </tr> |
|---|
| 59 | </thead> |
|---|
| 60 | <tbody> |
|---|
| 61 | {foreach from=$joins item=join} |
|---|
| 62 | <tr class="deletable"> |
|---|
| 63 | <td><strong>{$join.uploads}</strong></td> |
|---|
| 64 | <td><strong>{$join.groupName}</strong></td> |
|---|
| 65 | <td> |
|---|
| 66 | |
|---|
| 67 | {if $join.disable == 1} |
|---|
| 68 | <a href="index.php?action=DatabaseAutoJoinGroupTurnOn&joinID={$join.joinID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/disabledS.png" alt="" title="{lang}wcf.acp.database.autojoingroup.disabled{/lang}" /></a> |
|---|
| 69 | {else} |
|---|
| 70 | <a href="index.php?action=DatabaseAutoJoinGroupTurnOff&joinID={$join.joinID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/enabledS.png" alt="" title="{lang}wcf.acp.database.autojoingroup.enabled{/lang}" /></a> |
|---|
| 71 | {/if} |
|---|
| 72 | {if $join.editable == 1} |
|---|
| 73 | <a href="index.php?form=DatabaseAutoJoinGroup&joinID={$join.joinID}&edit=1{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/editS.png" alt="" title="{lang}wcf.acp.database.autojoingroup.edit{/lang}" /></a> |
|---|
| 74 | {else} |
|---|
| 75 | <img src="{@RELATIVE_WCF_DIR}icon/editDisabledS.png" alt="" title="{lang}wcf.acp.database.autojoingroup.editDisabled{/lang}" /> |
|---|
| 76 | {/if} |
|---|
| 77 | <a href="index.php?action=DatabaseAutoJoinGroupDeleteJoin&joinID={$join.joinID}{@SID_ARG_2ND}" onclick="return confirm('{lang}wcf.acp.database.autojoingroup.delete.sure{/lang}')" ><img src="{@RELATIVE_WCF_DIR}icon/deleteS.png" alt="" title="{lang}wcf.acp.database.autojoingroup.delete{/lang}" /></a> |
|---|
| 78 | |
|---|
| 79 | </td> |
|---|
| 80 | </tr> |
|---|
| 81 | {/foreach} |
|---|
| 82 | </tbody> |
|---|
| 83 | </table> |
|---|
| 84 | </div> |
|---|
| 85 | </div> |
|---|
| 86 | |
|---|
| 87 | {else} |
|---|
| 88 | <div class="contentBox"> |
|---|
| 89 | <h3 class="subHeadline">{lang}wcf.acp.database.autojoingroup.table{/lang}</h3> |
|---|
| 90 | <div class="formField"> |
|---|
| 91 | <p class="info" id="autojoingroupNoJoin"> |
|---|
| 92 | {lang}wcf.acp.database.autojoingroup.nojoins{/lang} |
|---|
| 93 | </p> |
|---|
| 94 | </div> |
|---|
| 95 | </div> |
|---|
| 96 | {/if} |
|---|
| 97 | </div> |
|---|
| 98 | </div> |
|---|
| 99 | |
|---|
| 100 | <form method="post" action="index.php?form=DatabaseAutoJoinGroup"> |
|---|
| 101 | <div class="border content"> |
|---|
| 102 | <div class="container-1"> |
|---|
| 103 | {lang}wcf.acp.database.autojoingroup.add.description{/lang} |
|---|
| 104 | <fieldset> |
|---|
| 105 | <legend>{lang}wcf.acp.database.autojoingroup.add{/lang}</legend> |
|---|
| 106 | |
|---|
| 107 | {if $groups|count > 0} |
|---|
| 108 | |
|---|
| 109 | <div class="formElement{if $errorField == 'uploads'} formError{/if}" id="uploadsDiv"> |
|---|
| 110 | <div class="formFieldLabel"> |
|---|
| 111 | <label for="uploads">{lang}wcf.acp.database.autojoingroup.add.uploads{/lang}</label> |
|---|
| 112 | </div> |
|---|
| 113 | <div class="formField"> |
|---|
| 114 | <input id="uploads" type="text" class="inputText" name="uploads" value="" /> |
|---|
| 115 | {if $errorField == 'uploads'} |
|---|
| 116 | <p class="innerError"> |
|---|
| 117 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 118 | </p> |
|---|
| 119 | {/if} |
|---|
| 120 | </div> |
|---|
| 121 | |
|---|
| 122 | <div class="formFieldDesc hidden" id="uploadsHelpMessage"> |
|---|
| 123 | <p>{lang}wcf.acp.database.autojoingroup.add.uploads.description{/lang}</p> |
|---|
| 124 | </div> |
|---|
| 125 | </div> |
|---|
| 126 | |
|---|
| 127 | <script type="text/javascript"> |
|---|
| 128 | //<![CDATA[ |
|---|
| 129 | inlineHelp.register('uploads'); |
|---|
| 130 | //]]> |
|---|
| 131 | </script> |
|---|
| 132 | |
|---|
| 133 | <div class="formElement{if $errorField == 'group'} formError{/if}" id="groupDiv"> |
|---|
| 134 | <div class="formFieldLabel"> |
|---|
| 135 | <label for="group">{lang}wcf.acp.database.autojoingroup.add.group{/lang}</label> |
|---|
| 136 | </div> |
|---|
| 137 | <div class="formField"> |
|---|
| 138 | <select name="groupID" id="groupID"> |
|---|
| 139 | {foreach from=$groups item=group} |
|---|
| 140 | <option value="{$group.groupID}"> {$group.groupName} </option> |
|---|
| 141 | {/foreach} |
|---|
| 142 | </select> |
|---|
| 143 | {if $errorField == 'group'} |
|---|
| 144 | <p class="innerError"> |
|---|
| 145 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 146 | </p> |
|---|
| 147 | {/if} |
|---|
| 148 | </div> |
|---|
| 149 | |
|---|
| 150 | <div class="formFieldDesc hidden" id="groupHelpMessage"> |
|---|
| 151 | <p>{lang}wcf.acp.database.autojoingroup.add.group.description{/lang}</p> |
|---|
| 152 | </div> |
|---|
| 153 | </div> |
|---|
| 154 | |
|---|
| 155 | <script type="text/javascript"> |
|---|
| 156 | //<![CDATA[ |
|---|
| 157 | inlineHelp.register('group'); |
|---|
| 158 | //]]> |
|---|
| 159 | </script> |
|---|
| 160 | {else} |
|---|
| 161 | <br /> |
|---|
| 162 | <div class="formField"> |
|---|
| 163 | <p class="warning" id="autojoingroupNoAccessibleGroup"> |
|---|
| 164 | {lang}wcf.acp.database.autojoingroup.noaccessiblegroup{/lang} |
|---|
| 165 | </p> |
|---|
| 166 | </div> |
|---|
| 167 | {/if} |
|---|
| 168 | </fieldset> |
|---|
| 169 | </div> |
|---|
| 170 | </div> |
|---|
| 171 | <div class="formSubmit"> |
|---|
| 172 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 173 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 174 | <input type="hidden" name="packageID" value="{@PACKAGE_ID}" /> |
|---|
| 175 | {@SID_INPUT_TAG} |
|---|
| 176 | </div> |
|---|
| 177 | {/if} |
|---|
| 178 | {if $edit == 1} |
|---|
| 179 | <form method="post" action="index.php?form=DatabaseAutoJoinGroup"> |
|---|
| 180 | <div class="border content"> |
|---|
| 181 | <div class="container-1"> |
|---|
| 182 | {lang}wcf.acp.database.autojoingroup.edit.description{/lang} |
|---|
| 183 | <fieldset> |
|---|
| 184 | <legend>{lang}wcf.acp.database.autojoingroup.edit{/lang}</legend> |
|---|
| 185 | <div class="formElement{if $errorField == 'uploads'} formError{/if}" id="uploadsDiv"> |
|---|
| 186 | <div class="formFieldLabel"> |
|---|
| 187 | <label for="uploads">{lang}wcf.acp.database.autojoingroup.edit.uploads{/lang}</label> |
|---|
| 188 | </div> |
|---|
| 189 | <div class="formField"> |
|---|
| 190 | <input id="uploads" type="text" class="inputText" name="uploads" value="{$uploads}" /> |
|---|
| 191 | {if $errorField == 'uploads'} |
|---|
| 192 | <p class="innerError"> |
|---|
| 193 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 194 | </p> |
|---|
| 195 | {/if} |
|---|
| 196 | </div> |
|---|
| 197 | |
|---|
| 198 | <div class="formFieldDesc hidden" id="uploadsHelpMessage"> |
|---|
| 199 | <p>{lang}wcf.acp.database.autojoingroup.edit.uploads.description{/lang}</p> |
|---|
| 200 | </div> |
|---|
| 201 | </div> |
|---|
| 202 | |
|---|
| 203 | <script type="text/javascript"> |
|---|
| 204 | //<![CDATA[ |
|---|
| 205 | inlineHelp.register('uploads'); |
|---|
| 206 | //]]> |
|---|
| 207 | </script> |
|---|
| 208 | |
|---|
| 209 | <div class="formElement{if $errorField == 'group'} formError{/if}" id="groupDiv"> |
|---|
| 210 | <div class="formFieldLabel"> |
|---|
| 211 | <label for="group">{lang}wcf.acp.database.autojoingroup.edit.group{/lang}</label> |
|---|
| 212 | </div> |
|---|
| 213 | <div class="formField"> |
|---|
| 214 | <select name="groupID" id="groupID"> |
|---|
| 215 | {foreach from=$groups item=group} |
|---|
| 216 | <option value="{$group.groupID}" {if $groupName == $group.groupName}selected="selected"{/if}> {$group.groupName} </option> |
|---|
| 217 | {/foreach} |
|---|
| 218 | </select> |
|---|
| 219 | {if $errorField == 'group'} |
|---|
| 220 | <p class="innerError"> |
|---|
| 221 | {if $errorType == 'empty'}{lang}wcf.global.error.empty{/lang}{/if} |
|---|
| 222 | </p> |
|---|
| 223 | {/if} |
|---|
| 224 | </div> |
|---|
| 225 | |
|---|
| 226 | <div class="formFieldDesc hidden" id="groupHelpMessage"> |
|---|
| 227 | <p>{lang}wcf.acp.database.autojoingroup.edit.group.description{/lang}</p> |
|---|
| 228 | </div> |
|---|
| 229 | </div> |
|---|
| 230 | |
|---|
| 231 | <script type="text/javascript"> |
|---|
| 232 | //<![CDATA[ |
|---|
| 233 | inlineHelp.register('group'); |
|---|
| 234 | //]]> |
|---|
| 235 | </script> |
|---|
| 236 | </fieldset> |
|---|
| 237 | </div> |
|---|
| 238 | </div> |
|---|
| 239 | <div class="formSubmit"> |
|---|
| 240 | <input type="submit" accesskey="s" value="{lang}wcf.global.button.submit{/lang}" /> |
|---|
| 241 | <input type="reset" accesskey="r" value="{lang}wcf.global.button.reset{/lang}" /> |
|---|
| 242 | <input type="hidden" name="edit" value="2" /> |
|---|
| 243 | <input type="hidden" name="joinID" value="{$joinID}" /> |
|---|
| 244 | <input type="hidden" name="packageID" value="{@PACKAGE_ID}" /> |
|---|
| 245 | {@SID_INPUT_TAG} |
|---|
| 246 | </div> |
|---|
| 247 | {/if} |
|---|
| 248 | </form> |
|---|
| 249 | |
|---|
| 250 | {include file='footer'} |
|---|