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

📄 memberadmin.ascx

📁 这是我编的一小软件。请等级等待指教。呵呵。ASP的
💻 ASCX
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="MemberAdmin.ascx.cs" Inherits="Seaskyer.WebApp.skyNews.Pages.AdminMSC.MemberAdmin" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="uc1" TagName="PowerItem" Src="CUserControls/PowerItem.ascx" %>
<table width="98%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="mframe-t-left"></td>
		<td class="mframe-t-mid"><span class="mframe-t-text"><%= lang.AppName%></span></td>
		<td class="mframe-t-right"></td>
	</tr>
</table>
<table width="98%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="mframe-m-left"></td>
		<td class="mframe-m-mid">
			<asp:Label width="100%" style="TEXT-ALIGN:center" id="label1" runat="server" Visible="False" />
			<asp:Panel ID="AdminPanel" Runat="server">
				<asp:DataGrid id="DataGrid1" runat="server" Width="100%" ShowHeader="True" ShowFooter="false"
					AutoGenerateColumns="false" AllowPaging="False" DataKeyField="UID" ItemStyle-CssClass="tdbg"
					CellSpacing="0" CellPadding="5" OnItemCreated="DataGrid1_ItemCreated">
					<HeaderStyle HorizontalAlign="center" CssClass="summary-title" Height="25" />
					<ItemStyle Height="22" />
					<EditItemStyle CssClass="tdbg-dark" />
					<Columns>
						<asp:TemplateColumn HeaderText="修改">
							<ItemStyle HorizontalAlign="Center" Width="40" />
							<ItemTemplate>
								<a href="/skyNews/Admin/MemberAdmin.aspx?Action=Modi&uid=<%# DataBinder.Eval(Container.DataItem, "UID")%>">
									修改 </a>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn HeaderText="UID" ItemStyle-Width="30" ItemStyle-HorizontalAlign="Right" DataField="UID"></asp:BoundColumn>
						<asp:TemplateColumn HeaderText="会员名称">
							<ItemStyle Width="200" />
							<ItemTemplate>
								<%# DataBinder.Eval(Container.DataItem, "UserID")%>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="所在组">
							<ItemStyle Width="60" />
							<ItemTemplate>
								<%# DataBinder.Eval(Container.DataItem, "GroupName")%>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="会员状态">
							<ItemStyle Width="60" />
							<ItemTemplate>
								<%# DataBinder.Eval(Container.DataItem, "Users")%>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn ItemStyle-Width="30" ItemStyle-HorizontalAlign="center" HeaderText="<input type=&quot;checkbox&quot; onclick=&quot;checkFormAll(this.form, this.checked)&quot;>">
							<ItemTemplate>
								<input type="checkbox" name="chk" value='<%# DataBinder.Eval(Container.DataItem, "UID")%>' />
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</asp:DataGrid>
				<table align="center" width="100%" height="30">
					<tr>
						<td><asp:Label ID="pageLabel" Runat="server" /></td>
					</tr>
				</table>
			</asp:Panel>
			<asp:Panel ID="ModiPanel" Runat="server">
				<table cellpadding="2" cellspacing="2" border="0" align="center" width="100%">
					<tr>
						<td style="font-size: 14px; color: blue;">修改用户信息
							<%= Request.QueryString["UserID"]%>
						</td>
					</tr>
				</table>
				<!-- 修改信息 -->
				<table cellpadding="0" cellspacing="8" border="0" width="" align="center">
					<tr>
						<td>用 户ID:</td>
						<td><asp:TextBox ID="uid" ReadOnly="True" Runat="server"></asp:TextBox></td>
					</tr>
					<tr>
						<td>用户名称:</td>
						<td><asp:TextBox ID="username" Runat="server"></asp:TextBox></td>
					</tr>
					<tr>
						<td>新 密 码:</td>
						<td><asp:TextBox TextMode="Password" ID="psw1" Runat="server"></asp:TextBox></td>
					</tr>
					<tr>
						<td>确认密码:</td>
						<td><asp:TextBox TextMode="Password" ID="psw2" Runat="server"></asp:TextBox></td>
					</tr>
					<tr>
						<td>用 户 组:</td>
						<td>
							<asp:DropDownList ID="usergroup" Runat="server">
								<asp:ListItem Value="">请选择组</asp:ListItem>
							</asp:DropDownList>
						</td>
					</tr>
					<tr>
						<td>用户状态:</td>
						<td>
							<asp:DropDownList ID="userstatus" Runat="server">
								<asp:ListItem Value="">请选择状态</asp:ListItem>
								<asp:ListItem Value="0">正常</asp:ListItem>
								<asp:ListItem Value="1">锁定</asp:ListItem>
								<asp:ListItem Value="-1">未开通</asp:ListItem>
							</asp:DropDownList>
						</td>
					</tr>
				</table>				
				<script language="javascript" type="text/javascript">
					<!--
					function checkFormAll(chk, obj)
					{
						oForm = document.forms[0];
						for( var i = 0; i < oForm.elements.length; i++ )
						{
							if ( oForm.elements[i].type == "checkbox" )
							{
								if( oForm.elements[i] == obj )
								{
									oForm.elements[i].checked = chk;
									
								}
								else
								{
									oForm.elements[i].checked = chk;
									oForm.elements[i].click();
								}
							}
						}
						
					}

					function showItem(id, obj)
					{
						if( obj.checked )
							document.getElementById('usermsc_upload').style.display = "block";
						else
							document.getElementById(id).style.display = "none";
					}
					//-->
				</script>
			</asp:Panel>
			<table align="center" width="100%" height="30">
				<tr>
					<td width="200">&nbsp;</td>
					<td align="center">
						<asp:Button ID="Modi" Runat="server" OnClick="Modi_OnClick" Text="修 改" />&nbsp;&nbsp;
						<input type="button" id="Back" Runat="server" value="返 回" />
					</td>
					<td align="right">
						<asp:DropDownList ID="ModiGroup" Runat="server">
							<asp:ListItem Value="">请选择组</asp:ListItem>
						</asp:DropDownList>
						<asp:Button ID="MultiModiBtn" Runat="server" OnClick="MultiModiBtn_OnClick" Text="批量修改" />
					</td>
					<td width="200" align="right"><asp:Button ID="DelBtn" Runat="server" OnClick="DelBtn_OnClick" Text="删 除" />&nbsp;</td>
				</tr>
			</table>
		</td>
		<td class="mframe-m-right"></td>
	</tr>
</table>
<table width="98%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="mframe-b-left"></td>
		<td class="mframe-b-mid">&nbsp;</td>
		<td class="mframe-b-right"></td>
	</tr>
</table>
<!-- #include file="Footer.Inc" -->

⌨️ 快捷键说明

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