modcp_forumaccess.htm 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <div class="bm bw0 mdcp">
  2. <h1 class="mt">{lang mod_option_member_access}</h1>
  3. <div class="mbm">{lang mod_notice_access}</div>
  4. <!--{if $modforums['fids']}-->
  5. <script type="text/javascript">
  6. function chkallaccess(obj) {
  7. $('new_post').checked
  8. = $('new_post').disabled
  9. = $('new_reply').checked
  10. = $('new_reply').disabled
  11. = $('new_postattach').checked
  12. = $('new_postattach').disabled
  13. = $('new_getattach').checked
  14. = $('new_getattach').disabled
  15. = $('new_getimage').checked
  16. = $('new_getimage').disabled
  17. = $('new_postimage').disabled
  18. = obj.checked;
  19. }
  20. function disallaccess(obj) {
  21. $('new_view').checked
  22. = $('new_post').checked
  23. = $('new_post').checked
  24. = $('new_reply').checked
  25. = $('new_postattach').checked
  26. = $('new_getattach').checked
  27. = $('new_getimage').checked
  28. = $('new_postimage').disabled
  29. = false;
  30. $('customaccess').disabled
  31. = $('new_view').disabled
  32. = $('new_view').disabled
  33. = $('new_post').disabled
  34. = $('new_post').disabled
  35. = $('new_reply').disabled
  36. = $('new_postattach').disabled
  37. = $('new_getattach').disabled
  38. = $('new_getimage').disabled
  39. = $('new_postimage').disabled
  40. = obj.checked;
  41. }
  42. </script>
  43. <form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]">
  44. <input type="hidden" name="formhash" value="{FORMHASH}" />
  45. <input type="hidden" name="op" value="$op" id="operation" />
  46. <div class="exfm">
  47. <table cellspacing="0" cellpadding="0">
  48. <!--{if $adderror || $successed}-->
  49. <tr>
  50. <th>&nbsp;</th>
  51. <td>
  52. <span class="rq"> *
  53. <!--{if $successed}-->
  54. {lang mod_message_access_updatepermission}
  55. <!--{elseif $adderror == 1}-->
  56. {lang mod_message_access_user_nonexistence}
  57. <!--{elseif $adderror == 2}-->
  58. {lang mod_message_access_user_invalid}
  59. <!--{elseif $adderror == 3}-->
  60. {lang mod_message_access_admin_invalid}
  61. <!--{/if}-->
  62. </span>
  63. </td>
  64. </tr>
  65. <!--{/if}-->
  66. <tr>
  67. <th width="15%">{lang mod_moderate_selectforum}:</th>
  68. <td width="80%">
  69. <span class="ftid">
  70. <select name="fid" id="fid" class="ps" width="108">
  71. <!--{loop $modforums[list] $id $name}-->
  72. <option value="$id" {if $id == $_G[fid]}selected="selected"{/if}>$name</option>
  73. <!--{/loop}-->
  74. </select>
  75. </span>
  76. </td>
  77. </tr>
  78. <tr>
  79. <th>{lang username}:</th>
  80. <td>
  81. <input type="text" size="20" value="$new_user" name="new_user" class="px" /> &nbsp;&nbsp;
  82. </td>
  83. </tr>
  84. <tr>
  85. <th>{lang mod_access_change}:</th>
  86. <td>
  87. <label for="deleteaccess" class="lb"><input type="checkbox" value="1" name="deleteaccess" id="deleteaccess" onclick="disallaccess(this)" class="pc" />{lang mod_access_recover}</label>
  88. <span id="customaccess">
  89. <label for="new_view" class="lb"><input type="checkbox" value="-1" name="new_view" id="new_view" onclick="chkallaccess(this)" class="pc" />{lang mod_access_ban_viewthread}</label>
  90. <label for="new_post" class="lb"><input type="checkbox" value="-1" name="new_post" id="new_post" class="pc" />{lang mod_access_ban_postthread}</label>
  91. <label for="new_reply" class="lb"><input type="checkbox" value="-1" name="new_reply" id="new_reply" class="pc" />{lang mod_access_ban_postreply}</label>
  92. <label for="new_getattach" class="lb"><input type="checkbox" value="-1" name="new_getattach" id="new_getattach" class="pc" />{lang mod_access_ban_download}</label>
  93. <label for="new_getimage" class="lb"><input type="checkbox" value="-1" name="new_getimage" id="new_getimage" class="pc" />{lang mod_access_ban_getimage}</label>
  94. <label for="new_postattach" class="lb"><input type="checkbox" value="-1" name="new_postattach" id="new_postattach" class="pc" />{lang mod_access_ban_upload}</label>
  95. <label for="new_postimage" class="lb"><input type="checkbox" value="-1" name="new_postimage" id="new_postimage" class="pc" />{lang mod_access_ban_uploadimage}</label>
  96. </span>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td></td>
  101. <td><button type="submit" class="pn" name="addsubmit" value="true"><strong>{lang submit}</strong></button></td>
  102. </tr>
  103. </table>
  104. </div>
  105. <script type="text/javascript">
  106. <!--{if !empty($deleteaccess)}-->
  107. var obj = $('deleteaccess');
  108. obj.checked = true;
  109. disallaccess(obj);
  110. <!--{elseif !empty($new_view)}-->
  111. var obj = $('new_view');
  112. obj.checked = true;
  113. chkallaccess(obj);
  114. <!--{/if}-->
  115. </script>
  116. </form>
  117. <!--{/if}-->
  118. <div class="ptm pbm cl">
  119. <div class="y pns">
  120. <form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_GET[action]&op=$op">
  121. <input type="hidden" name="formhash" value="{FORMHASH}">
  122. {lang username}: <input type="text" name="suser" class="px vm" value="$suser" onclick="this.value='';" />&nbsp;
  123. <select name="fid" class="ps vm">
  124. <option>{lang all}{lang forum}</option>
  125. $forumlistall
  126. </select>&nbsp;
  127. <button type="submit" name="searchsubmit" id="searchsubmit" class="pn vm" value="true"><strong>{lang search}</strong></button>
  128. </form>
  129. </div>
  130. <h2>{lang mod_access_specialuser}</h2>
  131. </div>
  132. <table id="list_member" cellspacing="0" cellpadding="0" class="dt">
  133. <thead>
  134. <tr>
  135. <th>{lang member}</th>
  136. <th>{lang forum}</th>
  137. <th>{lang mod_access_viewthread}</th>
  138. <th>{lang mod_access_postthread}</th>
  139. <th>{lang mod_access_postreply}</th>
  140. <th>{lang mod_access_download}</th>
  141. <th>{lang mod_access_getimage}</th>
  142. <th>{lang mod_access_upload}</th>
  143. <th>{lang mod_access_uploadimage}</th>
  144. <th>{lang mod_access_optime}</th>
  145. <th>{lang moderator}</th>
  146. </tr>
  147. </thead>
  148. <!--{if $list[data]}-->
  149. <!--{loop $list[data] $access}-->
  150. <tr>
  151. <td><!--{if $users[$access[uid]] != ''}--><a href="home.php?mod=space&uid=$access[uid]" target="_blank" class="xi2">{$users[$access[uid]]}</a><!--{else}-->UID $access[uid]<!--{/if}--></td>
  152. <td>$access['forum']</td>
  153. <td>$access['allowview']</td>
  154. <td>$access['allowpost']</td>
  155. <td>$access['allowreply']</td>
  156. <td>$access['allowgetattach']</td>
  157. <td>$access['allowgetimage']</td>
  158. <td>$access['allowpostattach']</td>
  159. <td>$access['allowpostimage']</td>
  160. <td>$access[dateline]</td>
  161. <td><!--{if $users[$access[adminuser]] != ''}--><a href="home.php?mod=space&uid=$access[adminuser]" target="_blank" class="xi2">{$users[$access[adminuser]]}</a><!--{else}-->UID $access[adminuser]<!--{/if}--></td>
  162. </tr>
  163. <!--{/loop}-->
  164. <!--{else}-->
  165. <tr><td colspan="11"><p class="emp">{lang mod_message_access_nonexistence}</p></td></tr>
  166. <!--{/if}-->
  167. </table>
  168. <!--{if !empty($list[pagelink])}--><div class="pgs cl mtm">$list[pagelink]</div><!--{/if}-->
  169. </div>
  170. <script type="text/javascript" reload="1">
  171. if($('fid')) {
  172. simulateSelect('fid');
  173. }
  174. </script>