<%@ Page language="c#" Inherits="NScontract.Manager.ManagerBook" CodeFile="NSManagerBook.aspx.cs" %>

<%@ Register Src="../NSControls/NSManagerTreeView.ascx" TagName="NSManagerTreeView"
    TagPrefix="uc2" %>
<%@ Register TagPrefix="uc1" TagName="NSManagerMiddle" Src="../NSControls/NSManagerMiddle.ascx"%>
<%@ Register TagPrefix="uc1" TagName="NSFooter" Src="../NSControls/NSFooter.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NSManagerHeader" Src="../NSControls/NSManagerHeader.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Login</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
        <link href="../style.css" rel="stylesheet" type="text/css" />
        <link href="../style.css" rel="stylesheet" type="text/css" />
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<uc1:nsmanagerheader id="NSManagerHeader1" runat="server"></uc1:nsmanagerheader>
			<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 40px; TOP: 64px; HEIGHT: 75px" cellSpacing="1"
				cellPadding="1" width="770" align="center" border="1">
				<TBODY>
					<TR>
						<TD style="WIDTH: 192px" vAlign="top" align="center"><FONT face="宋体">
                            <uc2:NSManagerTreeView ID="NSManagerTreeView1" runat="server" />
                        </FONT></TD>
						<TD style="HEIGHT: 23px" vAlign="top" align="center"><FONT face="宋体"><asp:datagrid id="NSmyGrid" runat="server" width="100%" OnCancelCommand="NSmyGrid_cancel" OnDeleteCommand="NSmyGrid_delete"
									OnEditCommand="NSmyGrid_edit" OnUpdateCommand="NSmyGrid_update" DataKeyField="NSBookID" AutoGenerateColumns="False" PageSize="5" AllowPaging="True" OnPageIndexChanged="NSmyGrid_Page">
									<Columns>
										<asp:BoundColumn DataField="NSBookID" HeaderText="报刊ID" SortExpression="NSBookID"></asp:BoundColumn>
										<asp:BoundColumn DataField="NSBookName" HeaderText="报刊名字" SortExpression="NSBookName"></asp:BoundColumn>
                                        <asp:TemplateColumn HeaderText="报刊图片">
                                            <ItemTemplate>
                                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# DataBinder.Eval(Container,"DataItem.NSBookImage") %>' Height="50px" Width="50px" />
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NSBookImage") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateColumn>
										<asp:EditCommandColumn UpdateText="更新" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
										<asp:ButtonColumn Text="删除" CommandName="Delete"></asp:ButtonColumn>
									</Columns>
									
									<PagerStyle NextPageText="" HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
								</asp:datagrid>&lt;</FONT></TD>
					</TR>
				</TBODY>
			</TABLE>
			<uc1:nsfooter id="NSFooter1" runat="server"></uc1:nsfooter></form>
	</body>
</HTML>
