<h3><{$mod_name}></h3>

<!-- category selection -->
<form name="selectcategory" action="<{$mod_url}>/admin/index.php" method="get" style="margin: 20px 0px">
	<input type="hidden" name="page" value="category_access" />
	<label for="select_cat_id"><{$smarty.const._MD_A_D3FORUM_LABEL_SELECTCATEGORY}></label>:
	<select name="cat_id" id="select_cat_id"><{html_options options=$cat_options selected=$cat_id}></select>
	<input type="submit" value="<{$smarty.const._SUBMIT}>" />
</form>

<!-- category title -->
<p>
	<{$smarty.const._MD_D3FORUM_CATEGORY}>:<{$cat_title}>
	[<a href="<{$mod_url}>/index.php?page=categorymanager&amp;cat_id=<{$cat_id}>"><{$smarty.const._EDIT}></a>]
	[<a href="<{$mod_url}>/index.php?page=makecategory&amp;cat_id=<{$cat_id}>"><{$smarty.const._MD_D3FORUM_LINK_MAKESUBCATEGORY}></a>]
	[<a href="<{$mod_url}>/index.php?page=makeforum&amp;cat_id=<{$cat_id}>"><{$smarty.const._MD_D3FORUM_LINK_MAKEFORUM}></a>]
</p>

<!-- group form -->
<h2 class="head"><{$smarty.const._MD_A_D3FORUM_H2_GROUPPERMS}></h2>
<form name="groupperms" action="<{$mod_url}>/admin/index.php?page=category_access&amp;cat_id=<{$cat_id}>" method="post" style="margin:20px 0px">
	<{$gticket_hidden}>
	<table class="outer">
		<tr>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_GROUPNAME}>
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_READ}>
				<input type="checkbox" onclick="with(document.groupperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].id.indexOf('gcol_1_')>=0){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_POST}>
				<input type="checkbox" onclick="with(document.groupperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].id.indexOf('gcol_2_')>=0){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_EDIT}>
				<input type="checkbox" onclick="with(document.groupperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].id.indexOf('gcol_3_')>=0){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_DELETE}>
				<input type="checkbox" onclick="with(document.groupperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].id.indexOf('gcol_4_')>=0){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_POST_AUTO_APPROVED}>
				<input type="checkbox" onclick="with(document.groupperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].id.indexOf('gcol_5_')>=0){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_IS_MODERATOR}>
				<input type="checkbox" onclick="with(document.groupperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].id.indexOf('gcol_6_')>=0){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_MAKEFORUM}>
				<input type="checkbox" onclick="with(document.groupperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].id.indexOf('gcol_7_')>=0){elements[i].checked=this.checked;}}}">
			</th>
		</tr>
		<{$group_trs}>
	</table>
	<input type="submit" name="group_update" value="<{$smarty.const._SUBMIT}>" />
</form>


<!-- user form -->
<h2 class="head"><{$smarty.const._MD_A_D3FORUM_H2_USERPERMS}></h2>
<form name="userperms" action="<{$mod_url}>/admin/index.php?page=category_access&amp;cat_id=<{$cat_id}>" method="post" style="margin:20px 0px">
	<{$gticket_hidden}>
	<table class="outer">
		<tr>
			<th><{$smarty.const._MD_A_D3FORUM_TH_UID}></th>
			<th><{$smarty.const._MD_A_D3FORUM_TH_UNAME}></th>
			<th><{$smarty.const._MD_A_D3FORUM_TH_CAN_READ}></th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_POST}>
				<input type="checkbox" onclick="with(document.userperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&(elements[i].id.indexOf('ucol_2_')>=0||elements[i].id.indexOf('ncol_2_')>=0)){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_EDIT}>
				<input type="checkbox" onclick="with(document.userperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&(elements[i].id.indexOf('ucol_3_')>=0||elements[i].id.indexOf('ncol_3_')>=0)){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_DELETE}>
				<input type="checkbox" onclick="with(document.userperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&(elements[i].id.indexOf('ucol_4_')>=0||elements[i].id.indexOf('ncol_4_')>=0)){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_POST_AUTO_APPROVED}>
				<input type="checkbox" onclick="with(document.userperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&(elements[i].id.indexOf('ucol_5_')>=0||elements[i].id.indexOf('ncol_5_')>=0)){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_IS_MODERATOR}>
				<input type="checkbox" onclick="with(document.userperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&(elements[i].id.indexOf('ucol_6_')>=0||elements[i].id.indexOf('ncol_6_')>=0)){elements[i].checked=this.checked;}}}">
			</th>
			<th>
				<{$smarty.const._MD_A_D3FORUM_TH_CAN_MAKEFORUM}>
				<input type="checkbox" onclick="with(document.userperms){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&(elements[i].id.indexOf('ucol_7_')>=0||elements[i].id.indexOf('ncol_7_')>=0)){elements[i].checked=this.checked;}}}">
			</th>
		</tr>
		<{$user_trs}>
		<{$newuser_trs}>
	</table>
	<input type="submit" name="user_update" value="<{$smarty.const._SUBMIT}>" />
	<br />
	<{$smarty.const._MD_A_D3FORUM_NOTICE_ADDUSERS}>
</form>
