ListView.aspx
上传用户:jdb8708888
上传日期:2013-05-29
资源大小:19971k
文件大小:5k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="ListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Role.ListView" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>ListView</title>
  6. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  11. <script language="javascript">
  12. function SelectItem()
  13. {
  14. var i = 0;
  15. var e;
  16. for( i = 0 ; i < ListView.elements.length ; i ++ )
  17. {
  18. e = ListView.elements[ i ];
  19. if( e.type == "checkbox" ) e.checked = !e.checked;
  20. }
  21. }
  22. // 高亮背景
  23. function high( which )
  24. which.style.background = "#C0D9E6";
  25. which.style.font.color = "red";
  26. // 取消背景高亮
  27. function low( which )
  28. which.style.background = "#FFFFFF";
  29. which.style.font.color = "black";
  30. }
  31. </script>
  32. </HEAD>
  33. <body text="#000000" leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout">
  34. <form id="ListView" runat="server">
  35. <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  36. <TR>
  37. <TD>
  38. <TABLE class="gbtext" id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
  39. <TR>
  40. <TD align="center" width="90" background='../../images/maillistbutton<%Response.Write(GetSelectImage("1","2",DisplayType,0));%>.gif' height="24">
  41. <asp:LinkButton id="lbMember" runat="server" CssClass="Newbutton">角色成员</asp:LinkButton></TD>
  42. <TD align="center" width="90" background='../../images/maillistbutton<%Response.Write(GetSelectImage("1","2",DisplayType,1));%>.gif' height="24">
  43. <asp:LinkButton id="lbNonMember" runat="server" CssClass="Newbutton">非成员</asp:LinkButton></TD>
  44. <TD align="right">
  45. <asp:Button id="cmdManageRole" runat="server" Width="68px" Text="角色管理" Height="20px" CssClass="redbuttoncss"></asp:Button>
  46. <asp:Button id="cmdManageRight" runat="server" Width="72px" Text="权限管理" Height="19px" CssClass="redbuttoncss"></asp:Button>
  47. <asp:Button id="cmdDeleteStaffFromRole" runat="server" Width="74px" Text="脱离角色" Height="20px"
  48. CssClass="redbuttoncss"></asp:Button>
  49. <asp:Button id="cmdAddToRole" runat="server" Width="73px" Text="加入角色" Height="20px" CssClass="redbuttoncss"></asp:Button>
  50. </TD>
  51. </TR>
  52. </TABLE>
  53. </TD>
  54. </TR>
  55. <TR>
  56. <TD>
  57. <asp:datagrid id="dbStaffList" runat="server" DataKeyField="Staff_ID" AllowPaging="True" Width="100%"
  58. AutoGenerateColumns="False" PageSize="15" BorderWidth="1px" BackColor="White" BorderColor="#93BEE2"
  59. BorderStyle="None" CellPadding="3" OnPageIndexChanged="DataGrid_PageChanged">
  60. <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
  61. <AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
  62. <ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
  63. <HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
  64. <FooterStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
  65. <Columns>
  66. <asp:TemplateColumn HeaderText="ID">
  67. <HeaderStyle Width="20px"></HeaderStyle>
  68. <ItemTemplate>
  69. <asp:CheckBox id="Staff_ID" runat="server"></asp:CheckBox>
  70. </ItemTemplate>
  71. </asp:TemplateColumn>
  72. <asp:HyperLinkColumn Text="真实姓名" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="../Position/NewStaff.aspx?StaffID={0}&amp;ReturnPage=0"
  73. DataTextField="RealName" HeaderText="真实姓名">
  74. <HeaderStyle Width="100px"></HeaderStyle>
  75. </asp:HyperLinkColumn>
  76. <asp:BoundColumn DataField="Mobile" HeaderText="手机">
  77. <HeaderStyle Width="60px"></HeaderStyle>
  78. </asp:BoundColumn>
  79. <asp:BoundColumn DataField="Age" HeaderText="年龄">
  80. <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
  81. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  82. </asp:BoundColumn>
  83. <asp:BoundColumn DataField="SexName" HeaderText="性别">
  84. <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
  85. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  86. </asp:BoundColumn>
  87. <asp:BoundColumn DataField="Email" HeaderText="EMAIL">
  88. <HeaderStyle Width="100px"></HeaderStyle>
  89. </asp:BoundColumn>
  90. <asp:BoundColumn DataField="Position_Name" HeaderText="所在职位">
  91. <HeaderStyle Width="150px"></HeaderStyle>
  92. </asp:BoundColumn>
  93. <asp:BoundColumn DataField="RQ" HeaderText="注册日期">
  94. <HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
  95. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  96. </asp:BoundColumn>
  97. </Columns>
  98. <PagerStyle Font-Size="X-Small" HorizontalAlign="Right" ForeColor="#003399" BackColor="#E8F4FF"
  99. Mode="NumericPages"></PagerStyle>
  100. </asp:datagrid></TD>
  101. </TR>
  102. </TABLE>
  103. </form>
  104. </body>
  105. </HTML>