<%@ Page language="c#" Codebehind="EmpsGrid.cs" AutoEventWireup="false" Inherits="Employee_Directory.EmpsGrid" %>
<%@ Register TagPrefix="CC" TagName="Header" Src="Header.ascx" %><%@Register TagPrefix="CC" TagName="Pager" Src="CCPager.ascx"%>
<html>
  <head>
	<title>职工管理</title>
	<meta name="CODE_LANGUAGE" Content="C#">
	<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head>
  <body text="#000000" link="#000080" vlink="#000080" alink="#000080">

  <form method="post" runat="server">
<CC:Header id="Header" runat="server"/>
	
<table><tr><td valign="top" >


    <table id="Search_holder" runat="Server" border="0" cellspacing="2" cellpadding="0">
	<tr><td align="center" bgcolor="#FFBB55" colspan="7"><a name="Search"><font style="font-size: 12pt; color: #FFFFFF; font-family: Arial, Tahoma, Verdana, Helvetica; font-weight: bold"><asp:label id="SearchForm_Title" runat="server">查询</asp:label></font></a></td></tr>
	<tr>
      <td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">户名</font></td>
      <td >
	<asp:TextBox
	id=Search_emp_login
 Columns=10 MaxLength=20
	runat="server"/>
	
	  </td></tr><tr><td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">姓名</font></td>
      <td >
	<asp:TextBox
	id=Search_name
 Columns=10 MaxLength=100
	runat="server"/>
	
	  </td></tr><tr><td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">本月之星</font></td>
      <td >
	<asp:DropDownList 
	id=Search_manmonth

	DataTextField=""
	DataValueField=""
	runat="server"/>
	
	  </td></tr><tr>
      <td align="right" colspan="3">
	  <asp:Button
		id=Search_search_button
		Text="提交"
		runat="server"/>
	</td>
    </tr>
	</table>

</td></tr></table><table><tr><td valign="top" >


	<table   id="emps_holder" runat="Server" border="0" cellspacing="2" cellpadding="0">
	<tr><td colspan="5"
        align="center" bgcolor="#FFBB55"
><font style="font-size: 12pt; color: #FFFFFF; font-family: Arial, Tahoma, Verdana, Helvetica; font-weight: bold"><asp:label id="empsForm_Title" runat="server">职工</asp:label></font></td></tr>
<tr>
<td bgcolor="#ffffff">
<asp:Label id="emps_Column_emp_id" Text=""   runat="server"/></td>
	
<td bgcolor="#aaaaaa">
<asp:LinkButton id="emps_Column_emp_login" Text="户名" CommandArgument="e.[emp_login]" onClick="emps_SortChange"  runat="server"/></td>
	
<td bgcolor="#aaaaaa">
<asp:LinkButton id="emps_Column_name" Text="姓名" CommandArgument="e.[name]" onClick="emps_SortChange"  runat="server"/></td>
	
<td bgcolor="#aaaaaa">
<asp:LinkButton id="emps_Column_emp_level" Text="级别" CommandArgument="e.[emp_level]" onClick="emps_SortChange"  runat="server"/></td>
	
<td bgcolor="#aaaaaa">
<asp:LinkButton id="emps_Column_manmonth" Text="本月之星？" CommandArgument="e.[manmonth]" onClick="emps_SortChange"  runat="server"/></td>
	
</tr><tr id=emps_no_records runat="server"><td  colspan="5"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">没有记录！</font></td></tr>
	<tr><td><asp:Repeater id=emps_Repeater runat="server">
	<HeaderTemplate>
	</td></tr>
	</HeaderTemplate>
	<ItemTemplate>

	<tr>

<td >

<asp:HyperLink id=emps_emp_id NavigateUrl='<%# "EmpsRecord.aspx"+"?"+"emp_id="+Server.UrlEncode(DataBinder.Eval(Container.DataItem, "e_emp_id").ToString()) +"&" +"emp_login=" + Server.UrlEncode(Utility.GetParam("emp_login")) + "&manmonth=" + Server.UrlEncode(Utility.GetParam("manmonth")) + "&name=" + Server.UrlEncode(Utility.GetParam("name")) + "&"%>'  runat="server">编辑</asp:HyperLink>&nbsp;
</td>
<td >

 <asp:Label id=emps_emp_login  runat="server">  <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "e_emp_login").ToString()) %> </asp:Label>&nbsp;
</td>
<td >

 <asp:Label id=emps_name  runat="server">  <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "e_name").ToString()) %> </asp:Label>&nbsp;
</td>
<td >

 <asp:Label id=emps_emp_level  runat="server"> <%# Server.HtmlEncode(Utility.GetValFromLOV(DataBinder.Eval(Container.DataItem, "e_emp_level").ToString(),emps_emp_level_lov).ToString()) %> </asp:Label>&nbsp;
</td>
<td >

 <asp:Label id=emps_manmonth  runat="server"> <%# Server.HtmlEncode(Utility.GetValFromLOV(DataBinder.Eval(Container.DataItem, "e_manmonth").ToString(),emps_manmonth_lov).ToString()) %> </asp:Label>&nbsp;
</td></tr>
</ItemTemplate>

	<FooterTemplate>
	<tr><td>
	</FooterTemplate>
	</asp:Repeater></td></tr>

    <tr><td bgcolor="#ffffff">
<asp:Label Text=""   runat="server"/></td><td
        bgcolor="#aaaaaa"
        colspan=5>

<asp:LinkButton id="emps_insert"  runat="server">新职工</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font style="font-size: 10pt; color: #FFFFFF; font-family: Arial, Tahoma, Verdana, Helvetica; font-weight: bold">
<CC:Pager id=emps_Pager 
	
	ShowFirst=False
	showLast=False
	showprev=True
	shownext=True
	ShowFirstCaption="第一页"
	showLastCaption="最后一页"
	showtotal=False
	showtotalstring="of"
	shownextCaption="下一页"
	showprevCaption="上一页"
	PagerStyle=1
	NumberOfPages=10
	runat="server"/>
</font></td></tr>
	</table>


</td>
    </tr></table>


<center><font face="Arial"><small>—— 欢迎访问<a href="http://localhost/ex46-50/default.aspx">职工信息查询网站</a></small></font></center>
    </form>
</body>
</html>