⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boardmanager.aspx

📁 LiteBlaster 是一款基于 .NET Framework 原创的 ASP.NET 论坛系统。后台程序库采用 C#/VB.NET 编写
💻 ASPX
字号:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" Inherits="Auway.LiteBlaster.Pages.BoardManager" %>
<%@ Register Src="Controls/Header.ascx" TagName="Header" TagPrefix="LB" %>
<%@ Register Src="Controls/Footer.ascx" TagName="Footer" TagPrefix="LB" %>
<%@ Import Namespace="Auway.LiteBlaster.Core" %>
<%@ Import Namespace="Auway.LiteBlaster.Enumerations" %>
<%@ Import Namespace="Auway.LiteBlaster.Exceptions" %>
<%@ Import Namespace="Auway.LiteBlaster.Extensions" %>
<%@ Import Namespace="Auway.LiteBlaster.Forum" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><!-- InstanceBegin template="/Templates/main.dwt.aspx" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=SystemInfo.Instance.ForumTitle %></title>
<link type="text/css" rel="stylesheet" href="Skins/Styles/main.css" />
<link type="text/css" rel="stylesheet" href="Skins/Styles/itemList.css" />
<script language="javascript" type="text/javascript" src="Lib/sarissa.js"></script>
<script language="javascript" type="text/javascript" src="Lib/ajax.js"></script>
<script language="javascript" type="text/javascript" src="Lib/x/x_core.js"></script>
<script language="javascript" type="text/javascript" src="Lib/x/x_event.js"></script>
<script language="javascript" type="text/javascript" src="Lib/main.js"></script>
<!-- InstanceBeginEditable name="head" -->
<script language="javascript" type="text/javascript" src="Lib/boardManager.js"></script>
<script language="javascript" type="text/javascript">
	var boardId = <%=BoardID %>;
</script>
<style type="text/css">
	.input_text{
		border:#999FFF 1px solid;
		width:90%;
	}
	.input_text_sml{
		border:#999FFF 1px solid;
		width:30%;
	}
	.input_select{
		width:60%;
	}
</style>
<!-- InstanceEndEditable -->
</head>
<body style="min-width:900px">
	<div id="BodyFrame" align="left">
		<div id="BodyFrameInner">
			<LB:Header id="HeaderFrame" runat="server" />
			<div id="PathIndicator">
				&raquo;&nbsp;<a href="Admin/../"><%=SystemInfo.Instance.ForumTitle %></a><span id="ExtraPathIndicator"></span>
			</div>
            <!-- InstanceBeginEditable name="PathIndicator" -->
			<script language="javascript" type="text/javascript">
				addExtraTitle('版面管理');
				setExtraPathIndicator('<%=Boards.Instance.GetBoardPathHtml(CurBoard.ID) & " &gt; 版面管理" %>');
			</script>
			<!-- InstanceEndEditable -->
			<br />
			<table id="Container">
				<tbody><tr><td>
					<!-- InstanceBeginEditable name="Container" -->
					<table class="ListBody" align="center"><tbody><tr><td>
						<table class="ListTable ListHeader">
							<tbody>
								<tr>
									<td>版面选项</td>
									<td class="ListHeaderExpanded" onClick="switchHeaderSwitcherVisible('BoardOptionsBody', event);">&nbsp;</td>
								</tr>
							</tbody>
						</table>
						<table id="BoardOptionsBody" class="ListTable">
							<tbody>
								<tr>
									<td colspan="2" class="ListHeaderSub">
										版面简介
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style1 txtcenter">
										<textarea id="Description" rows="5" class="input_text"><%=Server.HtmlEncode(CurBoard.Description) %></textarea>
										<br />
										可使用 UBB
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style3 txtcenter">
										<input type="button" value="确定" onClick="updateDescription(this);" />
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr>
									<td colspan="2" class="ListHeaderSub">
										版面扩展
									</td>
								</tr>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtright" width="20%">
										最佳回复:
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtleft">
										<input id="BestAnswerEnabled" type="checkbox" <%=IIf(CurBoard.BestAnswerEnabled, "checked=""checked""", String.Empty) %> /><label for="BestAnswerEnabled">启用最佳回复</label>
									</td>
								</tr>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtright">
										附件上传:
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtleft">
										<input id="UploadEnabled" type="checkbox" <%=IIf(CurBoard.UploadEnabled, "checked=""checked""", String.Empty) %> /><label for="UploadEnabled">启用附件上传</label>
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style3 txtcenter">
										<input type="button" value="确定" onClick="updateExtensions(this);" />
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr>
									<td colspan="2" class="ListHeaderSub">
										版面状态
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style1 txtcenter">
										<select id="Status" class="input_select">
											<option value="0">正常</option>
											<option value="1">只读</option>
											<option value="2">关闭</option>
										</select>
										<script language="javascript" type="text/javascript">
											xGetElementById('Status').value = <%=CType(CurBoard.Status, Byte) %>;
										</script>
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style3 txtcenter">
										<input type="button" value="确定" onClick="updateStatus(this);" />
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr>
									<td colspan="2" class="ListHeaderSub">
										访问权限
									</td>
								</tr>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtright">
										访问所需最少经验值:
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtleft">
										<input id="MinEP" type="text" class="input_text" value="<%=CurBoard.MinEP %>" />
										<br />
										设为零,则代表不按照经验值限制访问权限。
									</td>
								</tr>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtright">
										可限制的有效用户组代号:
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtleft">
										<%=Server.HtmlEncode(GenerateGroupCodes) %>
									</td>
								</tr>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtright">
										只读用户组:
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtleft">
										<input id="ReadonlyGroups" type="text" class="input_text" value="<%=ReadonlyGroups_str %>" />
										<br />
										填入用户组的代号,多个用逗号分隔。
									</td>
								</tr>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtright">
										拒绝用户组:
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtleft">
										<input id="ForbiddenGroups" type="text" class="input_text" value="<%=ForbiddenGroups_str %>" />
										<br />
										填入用户组的代号,多个用逗号分隔。
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style3 txtcenter">
										<input type="button" value="确定" onClick="updatePrivileges(this);" />
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr>
									<td colspan="2" class="ListHeaderSub">
										版规
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style1 txtcenter">
										<br />
										<textarea id="Rules" rows="5" class="input_text"><%=Server.HtmlEncode(CurBoard.Rules) %></textarea>
										<br />
										可使用 UBB
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style3 txtcenter">
										<input type="button" value="确定" onClick="updateRules(this);" />
									</td>
								</tr>
							</tbody>
						</table>
						<%	If Groups.CompareGroupType(UserInfo.CurrentUserOrGuest.GroupType, GroupType.SuperMaster) >= 0 Then	%>
						<br />
						<table class="ListTable ListHeader">
							<tbody>
								<tr>
									<td>版主任免</td>
									<td class="ListHeaderExpanded" onClick="switchHeaderSwitcherVisible('BoardMastersBody', event);">&nbsp;</td>
								</tr>
							</tbody>
						</table>
						<table id="BoardMastersBody" class="ListTable">
							<tbody>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtright">
										版主:
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtleft">
										<input id="BoardMasters" type="text" class="input_text" value="<%=BoardMasters %>" />
										<br />
										多个版主用逗号分隔
									</td>
								</tr>
								<tr>
									<td colspan="2" class="ListItemsTd ListItemsTd_style3 txtcenter">
										<input type="button" value="确定" onClick="updateMasters(this);" />
									</td>
								</tr>
							</tbody>
						</table>
						<%	End If	%>
						<br />
						<table class="ListTable ListHeader">
							<tbody>
								<tr>
									<td>特殊访问</td>
									<td class="ListHeaderExpanded" onClick="switchHeaderSwitcherVisible('ExtraAccessBody', event);">&nbsp;</td>
								</tr>
							</tbody>
						</table>
						<table class="ListTable" id="ExtraAccessBody">
							<tbody>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtcenter" width="10%">
										用户 ID
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtcenter" width="30%">
										访问规则
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtcenter" width="40%">
										失效时间
									</td>
									<td class="ListItemsTd ListItemsTd_style2 txtcenter">
										操作
									</td>
								</tr>
							</tbody>
							<tbody>
								<tr>
									<td class="ListItemsTd ListItemsTd_style2 txtcenter">
										<input id="ExtraAccessUserID" type="text" class="input_text" />
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtcenter">
										<select id="ExtraAccessAccessType" class="input_select">
											<option value="1">只读访问</option>
											<option value="2">拒绝访问</option>
											<option value="3">可读可写访问</option>
										</select>
									</td>
									<td class="ListItemsTd ListItemsTd_style1 txtcenter">
										<input id="ExtraAccessExpireInHours" type="text" class="input_text_sml" value="0" />
										小时后失效(非正代表无限期)
									</td>
									<td class="ListItemsTd ListItemsTd_style2 txtcenter">
										<input type="button" value="添加" onClick="addExtraAccess(this);" />
									</td>
								</tr>
							</tbody>
						</table>
						<div id="ExtraAccessListContainer"><%=GenerateExtraAccessItemsHtml() %></div>
					</td></tr></tbody></table>
					<!-- InstanceEndEditable -->
				</td></tr></tbody>
			</table>
			<br />
			<LB:Footer id="FooterFrame" runat="server" />
		</div>
	</div>
</body>
<!-- InstanceEnd --></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -