SysManageRole.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:14k
- <%@ page language="C#" autoeventwireup="true" inherits="SysManage_SysManageRole, App_Web_2n6c6zuv" theme="Normal" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>无标题页</title>
<link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
<script>
-
- function modelesswin(url,mwidth,mheight)
- {
- if (document.all&&window.print)
- var returnValue=window.showModalDialog(url,"","help:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px,location=no, status=no;");
- // window.open(url,"","height="+mheight+",width="+mwidth+",top=159,left=262,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no");
- if (returnValue!=undefined && returnValue=='btok')
- {
- window.location.reload();
- }
- }
-
- </script>
<script type="text/javascript" language="javascript" src="../js/calendar.js"></script>
</head>
<body>
<form id="form1" runat="server">
<TABLE width="100%" height="100%" border="0" cellPadding="0" cellSpacing="0" >
<tr>
<td bgColor="#f7f7f7" style="height: 25px; width: 100%;">
<strong> 角色管理 < ></strong>
</td>
</tr>
<tr>
<td style="height: 5px; width: 100%;"> <img src="../Images/add.gif" height="15" align="absmiddle">
- <a href="javascript: modelesswin('AddRole.aspx',500,450)">新建角色</a></td>
</tr>
<tr>
<td style="height: 10px; width: 100%;">
<asp:DropDownList ID="DDL_Condition" runat="server" Width="134px">
<asp:ListItem Value="1" Text="角色名称"></asp:ListItem>
<asp:ListItem Value="2" Text="创建者"></asp:ListItem>
</asp:DropDownList><asp:TextBox ID="TB_Condition" runat="server" Width="250px"></asp:TextBox><asp:CheckBox ID="CB_Blur" runat="server" Text="模糊查询" />
- <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Search.gif" OnClick ="ImageButton1_Click"
- Width="47px" Height="20px" /></td>
</tr>
<tr>
<td style="text-align: right; width: 100%;">
<%--<asp:GridView ID="GridView1" runat="server" Width ="100%" AutoGenerateColumns="false" DataKeyNames="RoleID" SkinID="GridViewSkin"
HeaderStyle-ForeColor="black" HeaderStyle-Font-Underline="false" AllowPaging="True" AllowSorting="True"
PageSize="6" OnRowEditing="GridView1_RowEditing" OnRowDeleting="GridView1_RowDeleting" OnPageIndexChanging="GridView1_PageIndexChanging">--%>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="RoleID" BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" SelectedRowStyle-CssClass="SelectedRow" HeaderStyle-CssClass="GridHeader" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="true" CellSpacing="1" CellPadding="0" OnRowDataBound="GridView1_RowDataBound" Width="100%"
- OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
- HeaderStyle-ForeColor="black" HeaderStyle-Font-Size="12px" HeaderStyle-Font-Underline="false" AllowPaging="True" AllowSorting="True" OnPageIndexChanging="GridView1_PageIndexChanging">
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
<Columns>
<asp:BoundField DataField="RoleID" HeaderText="角色ID" Visible =false>
<HeaderStyle Width="15%"/>
</asp:BoundField>
<asp:BoundField DataField="RoleName" HeaderText="角色名称">
<HeaderStyle Width="15%"/>
</asp:BoundField>
<asp:BoundField DataField="CreateRole" HeaderText="创建者">
<HeaderStyle Width="15%"/>
</asp:BoundField>
<%-- <asp:BoundField DataField="UserRole" HeaderText="使用者">
<HeaderStyle Width="11%" />
</asp:BoundField>--%>
<asp:BoundField DataField="RoleDesc" HeaderText="角色描述">
<HeaderStyle Width="25%"/>
</asp:BoundField>
<asp:TemplateField HeaderText="操 作">
<ItemTemplate>
<asp:ImageButton ID="IB_Edit" ToolTip="编辑" runat="server" CommandName="edit" ImageUrl="~/images/s_edit.gif"/>
<asp:ImageButton ToolTip="删除" ID="IB_Del" runat="server" CommandName="Delete" ImageUrl="~/images/s-del.gif"
OnClientClick='<%#"return confirm("确认删除角色编号为『"+Eval("RoleID")+"』的记录吗?");" %>'/>
</ItemTemplate>
<HeaderStyle Width="10%" HorizontalAlign="Left"/>
<ItemStyle HorizontalAlign="Left" BorderWidth="0px"/>
</asp:TemplateField>
</Columns>
<FooterStyle CssClass="GridFooter" />
- <PagerStyle CssClass="GridPage" />
- <PagerTemplate>
- <asp:Label ID="LabelCurrentPage" runat="server">当前页:<%# ((GridView)Container.NamingContainer).PageIndex + 1 %></asp:Label>
- <asp:Label ID="LabelPageCount" runat="server" >总页数:<%# ((GridView)Container.NamingContainer).PageCount %></asp:Label>
- <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>
- <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enable="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>
- 转到第:<asp:TextBox ID="LinkTextBoxNewPage" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'></asp:TextBox>页
- <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="0-99999" ValidationGroup="goto" ControlToValidate="LinkTextBoxNewPage"
- MaximumValue="99999" MinimumValue="0" Display="Dynamic" ></asp:RangeValidator>
- <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" ValidationGroup="goto" />
- </PagerTemplate>
-
<EmptyDataTemplate>
<center class="EmpetyData"> 系统提示:无用户数据,您可以新增用户数据。</center>
</EmptyDataTemplate>
</asp:GridView>
-
- <%--<tr>
- <td style="width: 100%">
- <table border="0" cellpadding="0" cellspacing="0" class="tablestyle" width="100%">
- <tr class="head">
- <td style="height: 18px">
- <strong>角色管理</strong></td>
- </tr>
- <tr class="headtwo">
- <td>
- </td>
- </tr>
- <tr>
- <td>
- <asp:FormView runat="server" ID="FormView1" Width="100%" SkinID="FormViewSkin" DefaultMode="Insert" DataKeyNames="RoleID">
- <InsertItemTemplate>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tablecontect">
- <tr>
- <td class="spec" width="10%">角色名称</td>
- <td width="35%"><div align="left">
- <asp:TextBox ID="TB_sRole_Name" runat="server" CssClass="default" Text='<%# Bind("RoleName") %>' Width="300px"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必填" ControlToValidate="TB_sRole_Name" ValidationGroup="SaveButton" Display="Dynamic"></asp:RequiredFieldValidator>
- </div></td>
- <td class="spec" width="10%">角色描述</td>
- <td><div align="left">
- <asp:TextBox ID="TB_sRole_Desc" runat="server" CssClass="default" Text='<%# Bind("RoleDesc") %>'
- Width="300px"></asp:TextBox>
- </div></td>
- </tr>
- <tr>
- <td class="spec" width="10%">
- 创建角色</td>
- <td width="35%" align="left">
-
- <asp:DropDownList ID="DDL_CreateRole" runat="server" Width="306px">
- </asp:DropDownList>
-
- </td>
- <td class="spec" width="10%">
- 使用角色</td>
- <td align="left">
- <asp:DropDownList ID="DDL_UserRole" runat="server" Width="306px">
- </asp:DropDownList>
- </td>
- </tr>
-
- </table>
- </InsertItemTemplate>
- <EditItemTemplate>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tablecontect">
- <tr>
- <td class="spec" width="10%">角色名称</td>
- <td width="35%"><div align="left">
- <asp:TextBox ID="TB_sRole_Name" runat="server" CssClass="default" Text='<%# Bind("RoleName") %>' Width="300px"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必填" ControlToValidate="TB_sRole_Name" ValidationGroup="SaveButton" Display="Dynamic"></asp:RequiredFieldValidator>
- </div></td>
- <td class="spec" width="10%">角色描述</td>
- <td><div align="left">
- <asp:TextBox ID="TB_sRole_Desc" runat="server" CssClass="default" Text='<%# Bind("RoleDesc") %>'
- Width="300px"></asp:TextBox>
- </div></td>
- </tr>
- <tr>
- <td class="spec" width="10%">
- 创建角色</td>
- <td width="35%" align="left">
-
- <asp:DropDownList ID="DDL_CreateRole" runat="server" Width="306px">
- </asp:DropDownList>
-
- </td>
- <td class="spec" width="10%">
- 使用角色</td>
- <td align="left">
- <asp:DropDownList ID="DDL_UserRole" runat="server" Width="306px">
- </asp:DropDownList>
- </td>
- </tr>
-
- </table>
- </EditItemTemplate>
- </asp:FormView>
- </td>
- </tr>
- <tr height ="15px">
- <td style="height: 15px">
- </td>
- </tr>
</table>
</tr>--%>
<%-- <tr>
<td align="center"><asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/queding.gif" OnClick="ImageButton2_Click" /></td>
</tr>--%>
</TABLE>
</form>
</body>
</html>