UserList.aspx
上传用户:autodoor
上传日期:2022-08-04
资源大小:9973k
文件大小:5k
源码类别:

.net编程

开发平台:

Others

  1. <%@ Page language="c#" Codebehind="UserList.aspx.cs" AutoEventWireup="false" Inherits="qminoa.Webs.PM.UserList" %>
  2. <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>User List</title>
  6. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  7. <link href="styles.css" type="text/css" rel="stylesheet">
  8. </HEAD>
  9. <body>
  10. <form id="UserList" method="post" runat="server">
  11. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  12. <tr>
  13. <td class="tab-active" vAlign="top" height="15"><img height="15" src="images/spacer.gif" width="15"></td>
  14. </tr>
  15. </table>
  16. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  17. <tr>
  18. <td width="8"><img height="8" src="images/spacer.gif" width="8"></td>
  19. <td vAlign="top">
  20. <table class="admin-tan-border" height="530" cellSpacing="20" cellPadding="0" width="100%" border="0">
  21. <tr vAlign="top">
  22. <td><span class="header-gray">单位名称</span><asp:dropdownlist id="BranchDropList" runat="server" CssClass="standard-text" DataValueField="BranchID" DataTextField="BranchName" Width="91px" AutoPostBack="True"></asp:dropdownlist>&nbsp;&nbsp;&nbsp;
  23. <span class="header-gray">部门名称</span><asp:dropdownlist id="DepartmentDropList" runat="server" CssClass="standard-text" DataValueField="DepID" DataTextField="DepName" Width="91px" AutoPostBack="True"></asp:dropdownlist>&nbsp;&nbsp;&nbsp;
  24. <br>
  25. <asp:datagrid id="Users" runat="server" BorderStyle="None" Width="100%" CellPadding="2" AutoGenerateColumns="False" AllowSorting="True" BorderColor="White" AllowPaging="True">
  26. <headerstyle font-bold="True" cssclass="grid-header"></headerstyle>
  27. <columns>
  28. <asp:templatecolumn HeaderText="姓名" SortExpression="UserName">
  29. <headerstyle horizontalalign="Left" width="60%" cssclass="grid-header" verticalalign="Middle"></headerstyle>
  30. <itemstyle cssclass="grid-first-item"></itemstyle>
  31. <itemtemplate>
  32. <asp:label ID="UserName" Text='<%# DataBinder.Eval(Container, "DataItem.UserName") %>' Runat="server" />
  33. </itemtemplate>
  34. <edititemtemplate>
  35. <asp:label ID="Label1" Text='<%# DataBinder.Eval(Container, "DataItem.UserName") %>' Runat="server" />
  36. </edititemtemplate>
  37. </asp:templatecolumn>
  38. <asp:templatecolumn HeaderText="角色名称" SortExpression="RoleName">
  39. <headerstyle horizontalalign="Left" width="20%" cssclass="grid-header" verticalalign="Middle"></headerstyle>
  40. <itemstyle cssclass="grid-item"></itemstyle>
  41. <itemtemplate>
  42. &nbsp;
  43. <asp:label ID="lblGridRoleName" Text='<%# DataBinder.Eval(Container, "DataItem.RoleName") %>' Runat="server" Visible="true" />
  44. </itemtemplate>
  45. <edititemtemplate>
  46. <asp:DropDownList Width="100px" ID="ddlRoles" CssClass="Standard-text" DataSource='<%# GetRoles() %>' DataTextField="Name" DataValueField="RoleID" Runat="server" />
  47. </edititemtemplate>
  48. </asp:templatecolumn>
  49. <asp:templatecolumn Visible="False" HeaderText="UserID">
  50. <itemtemplate>
  51. <asp:label ID="lblGridUserID" Text='<%# DataBinder.Eval(Container, "DataItem.UserID") %>' Runat="server" Visible="true" />
  52. </itemtemplate>
  53. </asp:templatecolumn>
  54. <asp:templatecolumn HeaderText="编辑">
  55. <headerstyle horizontalalign="Center" width="20%" cssclass="grid-header" verticalalign="Middle"></headerstyle>
  56. <itemstyle cssclass="grid-edit-column"></itemstyle>
  57. <itemtemplate>
  58. <asp:imagebutton runat="server" ImageUrl="images/icon-pencil.gif" AlternateText="编辑此记录" CommandName="Edit" CausesValidation="false" ID="Imagebutton1" NAME="Imagebutton1"></asp:imagebutton>
  59. <img src="images/spacer.gif" width="3">
  60. </itemtemplate>
  61. <edititemtemplate>
  62. <asp:imagebutton runat="server" ImageUrl="images/icon-floppy.gif" AlternateText="更新此记录" CommandName="Update" CausesValidation="False" ID="Imagebutton3" NAME="Imagebutton3"></asp:imagebutton>
  63. <img src="images/spacer.gif" width="3">
  64. <asp:imagebutton runat="server" ImageUrl="images/icon-pencil-x.gif" AlternateText="取消" CommandName="Cancel" CausesValidation="False" ID="Imagebutton4" NAME="Imagebutton4"></asp:imagebutton>
  65. </edititemtemplate>
  66. </asp:templatecolumn>
  67. </columns>
  68. <pagerstyle horizontalalign="Center"></pagerstyle>
  69. </asp:datagrid>
  70. </td>
  71. </tr>
  72. <tr vAlign="top">
  73. <td colSpan="3" height="12"><img height="1" src="images/spacer.gif" width="1"></td>
  74. </tr>
  75. </table>
  76. </td>
  77. <td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
  78. </tr>
  79. <tr>
  80. <td vAlign="top" colSpan="5" height="15"><img height="15" src="images/spacer.gif" width="15"></td>
  81. </tr>
  82. </table>
  83. </form>
  84. </body>
  85. </HTML>