<%@ Page language="c#" Codebehind="DepsGrid.cs" AutoEventWireup="false" Inherits="Employee_Directory.DepsGrid" %>
<%@ 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="deps_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="depsForm_Title" runat="server">部门</asp:label></font></td></tr>
<tr>
<td bgcolor="#aaaaaa">
<asp:LinkButton id="deps_Column_name" Text="部门名称" CommandArgument="d.[name]" onClick="deps_SortChange"  runat="server"/></td>
	
</tr><tr id=deps_no_records runat="server"><td  colspan="1"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">没有记录！</font></td></tr>
	<tr><td><asp:Repeater id=deps_Repeater runat="server">
	<HeaderTemplate>
	</td></tr>
	</HeaderTemplate>
	<ItemTemplate>

	<tr>

<td >

<asp:HyperLink id=deps_name NavigateUrl='<%# "DepsRecord.aspx"+"?"+"dep_id="+Server.UrlEncode(DataBinder.Eval(Container.DataItem, "d_dep_id").ToString()) +"&" +""%>'  runat="server"> <%#Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "d_name").ToString()) %> </asp:HyperLink>&nbsp;
</td></tr>
</ItemTemplate>

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

    <tr><td
        bgcolor="#aaaaaa"
        colspan=1>

<asp:LinkButton id="deps_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=deps_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>