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

📄 admin_admingroup.aspx

📁 具有的功能适合于网站的运营和管理
💻 ASPX
字号:
<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_AdminGroup, HoWaveIMSV5.0" title="管理员权限组管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="adminheading">
   <tr>
      <th  class="user" align="left">管理员权限组管理</th>   
      <td style="width:15%; text-align:center;">
           <a href="?Action=Add"><asp:Image ImageUrl="../IMS_Img/Manage/new.png" ID="AddAdmin" runat="server" CssClass="Imagebutton" ImageAlign="Middle"/>
           <br />新增</a>
      </td>                     
   </tr>
</table>
<style runat="server" >
.list tr td{
     border: 0;
}
.list{
    margin-left:50px;
}
.adminmenubar
{
    float:left; 
    width:200px; 
    line-height:25px;
    text-align:right; 
    background-color:#EDF7FE; 
    border:1px #FFFFFF solid;
    height:25px;
}
</style>
<table class="adminlist" width="100%">
     <tr>
       <td style=" vertical-align:top; width:100%;" >
           <fieldset>
              <legend>管理员权限组管理</legend>                           
                   <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllAdminGroup" TypeName="AdminGroupBLL" DeleteMethod="DeleteAdminGroup" OnDeleting="CheckGroupIsFree" >
                       <DeleteParameters>
                           <asp:Parameter Name="AdminGroupID" Type="Int32" />
                       </DeleteParameters>
                   </asp:ObjectDataSource>
                        <asp:GridView ID="ListGroupForm"  runat="server" Width="100%" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1"  DataKeyNames="AdminGroupID" EnableViewState="False" AllowPaging="True" >
                            <Columns>
                                <asp:BoundField  DataField="AdminGroupID" HeaderText="ID" ItemStyle-Width="50px"/>
                                <asp:HyperLinkField DataNavigateUrlFields="AdminGroupID" DataNavigateUrlFormatString='?Action=Edit&AdminGroupID={0}' DataTextField="GroupName" HeaderText="权限组名称" ItemStyle-HorizontalAlign="Left" />
                                <asp:BoundField  DataField="AdminNumByGroup" HeaderText="组人数" DataFormatString="{0} 人" ItemStyle-Width="150px"/>
                                <asp:TemplateField ItemStyle-Width="150px">
                                    <ItemTemplate>
                                    <asp:LinkButton ID="delgroup" OnClientClick="javascript:{return confirm('确定删除吗?')}" Text="删除" CommandName="Delete"  runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                             </Columns>
                             <RowStyle BorderStyle="Dotted" HorizontalAlign="Center" />
                            <EmptyDataTemplate>
                                暂无管理员权限组
                            </EmptyDataTemplate>
                 </asp:GridView>
                 <div style="border:1px solid #3DA8E2; padding:2px; margin-top:5px;">
               <asp:FormView ID="AddGroupForm" DataKeyNames="AdminGroupID" runat="server" DefaultMode="Insert" DataSourceID="ObjectDataSource2" style="width:100%;">
                   <EditItemTemplate>
                       <div style="width:100%;"><div class="adminmenubar"><label>管理组名称:</label></div><div style=" float:left;"><asp:TextBox ID="GroupName1" runat="server" Text='<%# Bind("GroupName") %>'></asp:TextBox></div></div>
                       <div style="width:100%;"><div class="adminmenubar" style="height:200px;"><label>管理组内容:</label></div><div style=" float:left;">
                       <asp:CheckBoxList runat="server" ID="content1" CssClass="list"  >
                         <asp:ListItem Text="管理员管理" Value="admin" />
                         <asp:ListItem Text="网站配置管理" Value="webconfig" />
                         <asp:ListItem Text="数据库管理" Value="database" />
                         <asp:ListItem Text="银行社区管理" Value="bank" />
                         <asp:ListItem Text="会员管理" Value="passport" />
                         <asp:ListItem Text="会员数据同步管理" Value="userdata" />
                         <asp:ListItem Text="整合频道管理" Value="interface" />
                         <asp:ListItem Text="充值卡管理" Value="card" />
                       </asp:CheckBoxList></div></div>
                        <asp:HiddenField ID="DataContent" Value='<%# Bind("Content") %>' runat="server" OnDataBinding="BindCheckbox" />
                       <div style="padding:10px 0 0 50px; width:100%; border-top:1px solid #3DA8E2;">
                       <asp:Button CommandName="Update" runat="server" Text="更新" ID="editbutton" />
                       <input type="button" onclick="javascript:{history.back()}" name="quxiao" value="取消" />
                       </div>
                   </EditItemTemplate>
                   <InsertItemTemplate>
                       <div style="width:100%;"><div class="adminmenubar"><label>管理组名称:</label></div><div style=" float:left;"><asp:TextBox ID="GroupName1" runat="server" Text='<%# Bind("GroupName") %>'></asp:TextBox></div></div>
                       <div style="width:100%;"><div class="adminmenubar" style="height:200px;"><label>管理组内容:</label></div><div style=" float:left;">
                       <asp:CheckBoxList runat="server" ID="content1" CssClass="list" >
                         <asp:ListItem Text="管理员管理" Value="admin" />
                         <asp:ListItem Text="网站配置管理" Value="webconfig" />
                         <asp:ListItem Text="数据库管理" Value="database" />
                         <asp:ListItem Text="银行社区管理" Value="bank" />
                         <asp:ListItem Text="会员管理" Value="passport" />
                         <asp:ListItem Text="会员数据同步管理" Value="userdata" />
                         <asp:ListItem Text="整合频道管理" Value="interface" />
                         <asp:ListItem Text="充值卡管理" Value="card" />
                       </asp:CheckBoxList></div></div>
                     <div style="padding:10px 0 0 50px; width:100%; border-top:1px solid #3DA8E2;">
                       <asp:Button CommandName="Insert" runat="server" Text="添加" ID="addbutton"/>
                       <input type="button" onclick="javascript:{history.back()}" name="quxiao" value="取消" />
                       </div>
                   </InsertItemTemplate>
                 
               </asp:FormView>
               </div>
               
               <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" TypeName="AdminGroupBLL" OnUpdated="UpdateOK" OnInserted="InsertOK" OnInserting="FromCheck" OnUpdating="FromCheck" SelectMethod="GetAdminGroupByID" UpdateMethod="UpdateAdminGroup" InsertMethod="InsertAdminGroup" >
               <SelectParameters >
                 <asp:QueryStringParameter Name="AdminGroupID" Type="Int32" QueryStringField="AdminGroupID" />
               </SelectParameters>
               <UpdateParameters>
                 <asp:Parameter Name="GroupName" Type="String" />
                 <asp:Parameter Name="Content" Type="String" />
               </UpdateParameters>
               <InsertParameters>
                 <asp:Parameter Name="GroupName" Type="String"  />
                 <asp:Parameter Name="Content" Type="String" />
               </InsertParameters>
               </asp:ObjectDataSource>
            </fieldset>
        </td>
     </tr>
</table>
</asp:Content>

⌨️ 快捷键说明

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