ManageStaff.aspx
上传用户:xuming1973
上传日期:2014-02-27
资源大小:17511k
文件大小:7k
源码类别:

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

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="ManageStaff.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Staff.ManageStaff" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>ManageStaff</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. <script language="javascript">
  11. var ball1 = new Image();
  12. var ball2 = new Image();
  13. ball1.src = 'images/ball1.gif';
  14. ball2.src = 'images/ball2.gif';
  15. var active = new Image();
  16. var nonactive = new Image();
  17. active.src = '../../images/maillistbutton2.gif';
  18. nonactive.src = '../../images/maillistbutton1.gif';
  19. function onMouseOver(img)
  20. {
  21. document.images[img].src = ball2.src;
  22. }
  23. function onMouseOut(img)
  24. {
  25. document.images[img].src = ball1.src;
  26. }
  27. function onOverBar(bar)
  28. {
  29. if (bar != null) {
  30. bar.style.backgroundImage = "url("+active.src+")";
  31. }
  32. }
  33. function onOutBar(bar)
  34. {
  35. if (bar != null) {
  36. bar.style.backgroundImage = "url("+nonactive.src+")";
  37. }
  38. }
  39. function selectAll(){
  40. var len=document.MailList.elements.length;
  41. var i;
  42.     for (i=0;i<len;i++){
  43. if (document.MailList.elements[i].type=="checkbox"){
  44.         document.MailList.elements[i].checked=true;
  45.  }
  46. }
  47. }
  48. function unSelectAll(){
  49.           var len=document.MailList.elements.length;
  50.           var i;
  51.           for (i=0;i<len;i++){
  52.                if (document.MailList.elements[i].type=="checkbox"){
  53.                   document.MailList.elements[i].checked=false; 
  54.                }   
  55.           } 
  56.     }
  57. </script>
  58. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  59. </HEAD>
  60. <body MS_POSITIONING="GridLayout" leftmargin="0" topmargin="0">
  61. <form id="ManageStaff" method="post" runat="server">
  62. <FONT face="宋体">
  63. <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  64. <tr>
  65. <td vAlign="top" ><TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  66. <TBODY>
  67. <TR height="30">
  68. <TD class="GbText" width="20" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6" align="right"><FONT color="#003366" size="3"><IMG height="16" src="../../DataImages/staff.gif" width="16"></FONT></TD>
  69. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#e8f4ff" width="60"
  70. align="right"><font color="#006699">人员管理</font></TD>
  71. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="right" width=85%></TD>
  72. </TD></TR></TBODY></TABLE></TD></TR>
  73. <tr><TD>
  74. <TABLE class="gbtext" id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
  75. <TR>
  76. <TD align="center" width="90" background='../../images/maillistbutton<%Response.Write(GetSelectImage("1","2",DisplayType,0));%>.gif' height="24"><asp:linkbutton id="lbOnline" runat="server" CssClass="Newbutton">在职员工</asp:linkbutton></TD>
  77. <TD align="center" width="90" background='../../images/maillistbutton<%Response.Write(GetSelectImage("1","2",DisplayType,1));%>.gif' height="24"><asp:linkbutton id="lbOffLine" runat="server" CssClass="Newbutton">离职员工</asp:linkbutton></TD>
  78. <TD align="right">
  79. <asp:CheckBox id="cbRemind" runat="server" Text="提醒公司全体员工" Width="240px" Font-Size="X-Small" Height="16px"></asp:CheckBox>&nbsp;&nbsp;&nbsp;<asp:button id="cmdNewStaff" runat="server" Text="新员工" CssClass="redbuttoncss"></asp:button>
  80. <asp:button id="cmdDimission" runat="server" Text="离职" CssClass="redbuttoncss"></asp:button><asp:button id="cmdRehab" runat="server" Text="复职" CssClass="redbuttoncss"></asp:button>
  81. <asp:button id="cmdChangePosition" runat="server" Text="调职" CssClass="redbuttoncss"></asp:button>
  82. <asp:Button id="btn_Search" runat="server" CssClass="redbuttoncss" Text="查询"></asp:Button></TD>
  83. </TR>
  84. </TABLE>
  85. </TD>
  86. </TR>
  87. <TR>
  88. <TD><asp:datagrid id="dbStaffList" runat="server" OnPageIndexChanged="DataGrid_PageChanged" BorderColor="#93BEE2"
  89. BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" PageSize="15" AllowPaging="True"
  90. AutoGenerateColumns="False" DataKeyField="Staff_ID" Width="100%">
  91. <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
  92. <AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
  93. <ItemStyle Font-Size="X-Small"></ItemStyle>
  94. <HeaderStyle Font-Size="X-Small" Font-Bold="True" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
  95. <FooterStyle Font-Size="X-Small" HorizontalAlign="Right" BackColor="#E8F4FF"></FooterStyle>
  96. <Columns>
  97. <asp:TemplateColumn HeaderText="ID">
  98. <HeaderStyle Width="20px"></HeaderStyle>
  99. <ItemTemplate>
  100. <asp:CheckBox id="chkStaff_ID" runat="server"></asp:CheckBox>
  101. </ItemTemplate>
  102. </asp:TemplateColumn>
  103. <asp:HyperLinkColumn Text="真实姓名" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="../position/NewStaff.aspx?StaffID={0}&amp;ReturnPage=1"
  104. DataTextField="RealName" HeaderText="真实姓名">
  105. <HeaderStyle Width="100px"></HeaderStyle>
  106. </asp:HyperLinkColumn>
  107. <asp:BoundColumn DataField="Mobile" HeaderText="手机">
  108. <HeaderStyle Width="60px"></HeaderStyle>
  109. </asp:BoundColumn>
  110. <asp:BoundColumn DataField="Age" HeaderText="年龄">
  111. <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
  112. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  113. </asp:BoundColumn>
  114. <asp:BoundColumn DataField="SexName" HeaderText="性别">
  115. <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
  116. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  117. </asp:BoundColumn>
  118. <asp:BoundColumn DataField="Email" HeaderText="EMAIL">
  119. <HeaderStyle Width="100px"></HeaderStyle>
  120. </asp:BoundColumn>
  121. <asp:BoundColumn DataField="position_Name" HeaderText="所在部门">
  122. <HeaderStyle Width="150px"></HeaderStyle>
  123. </asp:BoundColumn>
  124. <asp:BoundColumn DataField="RQ" HeaderText="注册日期">
  125. <HeaderStyle HorizontalAlign="Right" Width="80px"></HeaderStyle>
  126. <ItemStyle HorizontalAlign="Right"></ItemStyle>
  127. </asp:BoundColumn>
  128. </Columns>
  129. <PagerStyle Font-Size="X-Small" HorizontalAlign="left" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  130. </asp:datagrid></TD>
  131. </TR>
  132. <TR>
  133. <TD></TD>
  134. </TR>
  135. </TABLE>
  136. </FONT>
  137. </form>
  138. </body>
  139. </HTML>