<%@ Page language="c#" Codebehind="Default.cs" AutoEventWireup="false" Inherits="Employee_Directory.Default" %>
<%@ Register TagPrefix="CC" TagName="Header" Src="Header.ascx" %>
<html>
  <head>
	<title>职工资料</title>
	<meta name="CODE_LANGUAGE" Content="C#">
	<meta http-equiv="pragma" content="no-cache">
  </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="EmpMonth_holder" runat="Server" border="0" cellspacing="2" cellpadding="0">
	<tr><td colspan="1"
        align="center" bgcolor="#FFBB55"
><font style="font-size: 12pt; color: #FFFFFF; font-family: Arial, Tahoma, Verdana, Helvetica; font-weight: bold"><asp:label id="EmpMonthForm_Title" runat="server">本 月 之 星</asp:label></font></td></tr>
<tr id=EmpMonth_no_records runat="server"><td  colspan="2"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">暂无记录！</font></td></tr>
	<tr><td><asp:Repeater id=EmpMonth_Repeater onitemdatabound="EmpMonth_Repeater_ItemDataBound" runat="server">
	<HeaderTemplate>
	</td></tr>
	</HeaderTemplate>
	<ItemTemplate>

<tr><td bgcolor="#000000"><asp:Label Text="" id="picture_Column_Title"  runat="server"/></td></tr>
<tr>
<td >

 <asp:Label id=EmpMonth_picture  runat="server">  <%# DataBinder.Eval(Container.DataItem, "e_picture") %> </asp:Label>&nbsp;
</td></tr>
<tr><td bgcolor="#000000"><asp:Label Text="" id="name_Column_Title"  runat="server"/></td></tr>
<tr>
<td >

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

	<SeparatorTemplate>
		<tr><td colspan=2>&nbsp;</td></tr>
	</SeparatorTemplate>

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

	</table>


</td><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:DropDownList 
	id=Search_dep_id

	DataTextField="name"
	DataValueField="dep_id"
	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=15
	runat="server"/>
	
	  </td></tr><tr><td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">Email：</font></td>
      <td >
	<asp:TextBox
	id=Search_email
 Columns=15 MaxLength=50
	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="Grid_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="GridForm_Title" runat="server">职 工 资 料</asp:label></font></td></tr>
<tr>
<td bgcolor="#aaaaaa">
<asp:LinkButton id="Grid_Column_name" Text="姓名" CommandArgument="e.[name]" onClick="Grid_SortChange"  runat="server"/></td>
	
<td bgcolor="#aaaaaa">
<asp:LinkButton id="Grid_Column_title" Text="职务" CommandArgument="e.[title]" onClick="Grid_SortChange"  runat="server"/></td>
	
<td bgcolor="#aaaaaa">
<asp:LinkButton id="Grid_Column_dep_id" Text="部门" CommandArgument="d.[name]" onClick="Grid_SortChange"  runat="server"/></td>
	
<td bgcolor="#aaaaaa">
<asp:LinkButton id="Grid_Column_work_phone" Text="单位电话" CommandArgument="e.[work_phone]" onClick="Grid_SortChange"  runat="server"/></td>
	
<td bgcolor="#aaaaaa">
<asp:LinkButton id="Grid_Column_email" Text="Email" CommandArgument="e.[email]" onClick="Grid_SortChange"  runat="server"/></td>
	
</tr><tr id=Grid_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=Grid_Repeater onitemdatabound="Grid_Repeater_ItemDataBound" runat="server">
	<HeaderTemplate>
	</td></tr>
	</HeaderTemplate>
	<ItemTemplate>

	<tr>

<td >

<asp:HyperLink id=Grid_name NavigateUrl='<%# "EmpDetail.aspx"+"?"+"emp_id="+Server.UrlEncode(DataBinder.Eval(Container.DataItem, "e_emp_id").ToString()) +"&" +"dep_id=" + Server.UrlEncode(Utility.GetParam("dep_id")) + "&email=" + Server.UrlEncode(Utility.GetParam("email")) + "&name=" + Server.UrlEncode(Utility.GetParam("name")) + "&"%>'  runat="server"> <%#Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "e_name").ToString()) %> </asp:HyperLink>&nbsp;
</td>
<td >

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

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

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

 <asp:Label id=Grid_email  runat="server">  <%# DataBinder.Eval(Container.DataItem, "e_email") %> </asp:Label>&nbsp;
</td></tr>
</ItemTemplate>

	<FooterTemplate>
	<tr><td>
	</FooterTemplate>
	</asp:Repeater></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>