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

📄 poweritem.ascx

📁 这是我编的一小软件。请等级等待指教。呵呵。ASP的
💻 ASCX
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="PowerItem.ascx.cs" Inherits="Seaskyer.WebApp.skyNews.Pages.AdminMSC.CUserControls.PowerItem" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%this.DataBind();%>
<table width="100%" align="center" cellspacing="1" cellpadding="3" style="border-collapse:collapse; border:#808080 1px solid"
	border="0" bgcolor="#ffffff">
	<tr Class="summary-title">
		<td align="center" colspan="2">基本权限设置
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td width="150px">基本页面浏览</td>
		<td>
			<span style="width:70px;">
				<asp:CheckBox ID="power0homepage0View" Runat="server" Checked='<%# GPB("homepage.ascx", "View")%>' Text="首页" /></span>
			<span style="width:70px;">
				<asp:CheckBox ID="power0list0View" Runat="server" Checked='<%# GPB("list.ascx", "View")%>' Text="分类页" /></span>
			<span style="width:150px;">
				<asp:CheckBox ID="power0show0View" Runat="server" Checked='<%# GPB("show.ascx", "View")%>' Text="新闻信息显示页" /></span>
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td>个人管理</td>
		<td>
			<span style="width:70px;">
				<asp:CheckBox ID="power0usermsc_controlpanel0View" Runat="server" Checked='<%# GPB("usermsc/controlpanel.ascx", "View")%>' Text="用户中心" /></span>
			<span style="width:70px;">
				<asp:CheckBox ID="power0usermsc_changepwd0Admin" Runat="server" Checked='<%# GPB("usermsc/changepwd.ascx", "Admin")%>' Text="修改密码" /></span>
			<span style="width:70px;">
				<asp:CheckBox ID="power0usermsc_customuserconfig0Admin" Runat="server" Checked='<%# GPB("usermsc/customuserconfig.ascx", "Admin")%>' Text="个人设置" /></span>
			<span style="width:100px;">
				<asp:CheckBox ID="power0usermsc_profileadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/profileadmin.ascx", "Admin")%>' Text="个人资料管理" /></span>
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td>分类管理权限规则</td>
		<td>
			<%
if( GPV("list.ascx", "ManagePower") != "" )
{
	for( int i = 0; i < power0list0ManagePower.Items.Count; i++ )
	{
		if( power0list0ManagePower.Items[i].Value == GPV("list.ascx", "ManagePower") )
			power0list0ManagePower.Items[i].Selected = true;
		else
			power0list0ManagePower.Items[i].Selected = false;
	}
}
%>
			<asp:RadioButtonList ID="power0list0ManagePower" RepeatDirection="Horizontal" Width="300" Runat="server">
				<asp:ListItem Value="0" Selected="True">无管理</asp:ListItem>
				<asp:ListItem Value="1">单一分类</asp:ListItem>
				<asp:ListItem Value="2">整个分类区</asp:ListItem>
				<asp:ListItem Value="3">所有分类</asp:ListItem>
			</asp:RadioButtonList>
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td>防刷新时间间隔</td>
		<td>
			<%if( GPV("post.ascx", "RefreshTime") == "" ){ power0post0RefreshTime.Value = config["refreshTimeSpan"]; }else{power0post0RefreshTime.Value = GPV("post.ascx", "RefreshTime"); }%>
			<input type="text" id="power0post0RefreshTime" value="" size="5" runat="server" NAME="power0post0RefreshTime" />秒
		</td>
	</tr>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td>文件上传</td>
		<td>
			<asp:CheckBox ID="power0usermsc_upload0Enable" Runat="server" Checked='<%# GPB("usermsc/upload.ascx", "Enable")%>' Text="是否允许文件上传" onclick="showItem('usermsc_upload', this);" ForeColor="BlueViolet" />
		</td>
	</tr>
	<tbody id="usermsc_upload" style="display:<%# GPB("usermsc/upload.ascx", "Enable") ? "block" : "none"%>">
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				<%if( GPV("usermsc/upload.ascx", "FileSize") == "" ){ power0usermsc_upload0FileSize.Text = config["uploadSize"]; }else{ power0usermsc_upload0FileSize.Text = GPV("usermsc/upload.ascx", "FileSize"); }%>
				大小:
				<asp:TextBox ID="power0usermsc_upload0FileSize" Runat="server" Columns="5" />KB
			</td>
			<td>
				<%if( GPV("usermsc/upload.ascx", "FileType") == "" ){ power0usermsc_upload0FileType.Text = config["uploadType"]; }else{power0usermsc_upload0FileType.Text = GPV("usermsc/upload.ascx", "FileType"); }%>
				类型:
				<asp:TextBox ID="power0usermsc_upload0FileType" Runat="server" Columns="80" />
			</td>
		</tr>
	</tbody>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td>新闻相关管理</td>
		<td>
			<asp:CheckBox ID="power0newsadmin0Enable" Runat="server" Checked='<%# GPB("newsadmin.ascx", "Enable")%>' Text="是否显示新闻管理面板" onclick="showItem('news_admin', this);" ForeColor="BlueViolet" />
		</td>
	</tr>
	<tbody id="news_admin" style="display:<%# GPB("newsadmin.ascx", "Enable") ? "block" : "none"%>">
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				新闻
			</td>
			<td>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_articleadd0Add" Runat="server" Checked='<%# GPB("usermsc/articleadd.ascx", "Add")%>' Text="添加" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_articleadd0Change" Runat="server" Checked='<%# GPB("usermsc/articleadd.ascx", "Change")%>' Text="修改" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_articleadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/articleadmin.ascx", "Admin")%>' Text="管理" /></span>
			</td>
		</tr>
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				评论
			</td>
			<td>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_remarkadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/remarkadmin.ascx", "Admin")%>' Text="管理" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_remarkcheck0Check" Runat="server" Checked='<%# GPB("usermsc/remarkcheck.ascx", "Check")%>' Text="审核" /></span>
			</td>
		</tr>
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				关键字
			</td>
			<td>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_keywordadd0Add" Runat="server" Checked='<%# GPB("usermsc/keywordadd.ascx", "Add")%>' Text="添加" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_keywordadd0Change" Runat="server" Checked='<%# GPB("usermsc/keywordadd.ascx", "Change")%>' Text="修改" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_keywordadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/keywordadmin.ascx", "Admin")%>' Text="管理" /></span>
			</td>
		</tr>
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				专题
			</td>
			<td>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_topicadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/topicadmin.ascx", "Admin")%>' Text="专题管理" /></span>
				<span style="width:100px;">
					<asp:CheckBox ID="power0usermsc_titlecssadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/titlecssadmin.ascx", "Admin")%>' Text="标题样式管理" /></span>
			</td>
		</tr>
	</tbody>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td>公告/调查/留言</td>
		<td>
			<asp:CheckBox ID="power0otheradmin0Enable" Runat="server" Checked='<%# GPB("otheradmin.ascx", "Enable")%>' Text="是否显示公告/调查/留言管理面板" onclick="showItem('other_admin', this);" ForeColor="BlueViolet" />
		</td>
	</tr>
	<tbody id="other_admin" style="display:<%# GPB("otheradmin.ascx", "Enable") ? "block" : "none"%>">
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				公告
			</td>
			<td>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_annadd0Add" Runat="server" Checked='<%# GPB("usermsc/annadd.ascx", "Add")%>' Text="添加" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_annadd0Change" Runat="server" Checked='<%# GPB("usermsc/annadd.ascx", "Change")%>' Text="修改" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_annadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/annadmin.ascx", "Admin")%>' Text="管理" /></span>
			</td>
		</tr>
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				调查
			</td>
			<td>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_polladd0Add" Runat="server" Checked='<%# GPB("usermsc/polladd.ascx", "Add")%>' Text="添加" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_polladd0Change" Runat="server" Checked='<%# GPB("usermsc/polladd.ascx", "Change")%>' Text="修改" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_polladmin0Admin" Runat="server" Checked='<%# GPB("usermsc/polladmin.ascx", "Admin")%>' Text="管理" /></span>
			</td>
		</tr>
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				留言
			</td>
			<td>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_guestbookadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/guestbookadmin.ascx", "Admin")%>' Text="管理留言" /></span>
			</td>
		</tr>
	</tbody>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td>友情链接管理</td>
		<td>
			<asp:CheckBox ID="power0linkadmin0Enable" Runat="server" Checked='<%# GPB("linkadmin.ascx", "Enable")%>' Text="是否显示友情链接管理面板" onclick="showItem('link_admin', this);" ForeColor="BlueViolet" />
		</td>
	</tr>
	<tbody id="link_admin" style="display:<%# GPB("linkadmin.ascx", "Enable") ? "block" : "none"%>">
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				链接管理
			</td>
			<td>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_linkadd0Add" Runat="server" Checked='<%# GPB("usermsc/linkadd.ascx", "Add")%>' Text="添加" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_linkadd0Change" Runat="server" Checked='<%# GPB("usermsc/linkadd.ascx", "Change")%>' Text="修改" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_linkadmin0Admin" Runat="server" Checked='<%# GPB("usermsc/linkadmin.ascx", "Admin")%>' Text="管理" /></span>
				<span style="width:70px;">
					<asp:CheckBox ID="power0usermsc_linkcheck0Check" Runat="server" Checked='<%# GPB("usermsc/linkcheck.ascx", "Check")%>' Text="审核" /></span>
			</td>
		</tr>
		<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
			<td align="right">
				分类管理
			</td>
			<td>
				<span style="width:100px;">
					<asp:CheckBox ID="power0usermsc_linksort0Admin" Runat="server" Checked='<%# GPB("usermsc/linksort.ascx", "Admin")%>' Text="链接分类管理" /></span>
			</td>
		</tr>
	</tbody>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';">
		<td>
			<!--文章是否需要审核 评论是否审核 可申请友情链接 -->
		</td>
		<td>
		</td>
	</tr>
</table>
<%if( Request.QueryString["Action"] == "ViewPower" ){%>
<script language="javascript" type="text/javascript">
<!--
window.onload = function()
{
	oForm = document.forms[0];
	for( var i = 0; i < oForm.elements.length; i++ )
	{
		var type = oForm.elements[i].type;
		if ( type == "checkbox" || type == "radio" || type == "text" || type == "submit" || type == "reset" )
		{
			oForm.elements[i].disabled = "disabled";
		}
	}
}


//-->
</script>
<%}%>

⌨️ 快捷键说明

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