<%@ Page language="c#" validateRequest="false" Inherits="WebApplication2.Admin.JsTemplate" CodeFile="JsTemplate.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>JsTemplate</title>
		<LINK href="adminstyle.css" type="text/css" rel="stylesheet">
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="98%" border="0" class="table_1">
					<TR class="td2">
						<TD align="center" style="color: white; height: 25px; background-color: #66cc00">模版管理</TD>
					</TR>
				</TABLE>
			</FONT>
							<asp:DataGrid id="DataGrid1" runat="server" Width="98%" DataKeyField="id" AutoGenerateColumns="False">
								<ItemStyle HorizontalAlign="Center" BorderStyle="None" BackColor="#FAFFF7" BorderWidth="1px"
									Height="25px"></ItemStyle>
								<AlternatingItemStyle BackColor="#FAFFF7"></AlternatingItemStyle>
								<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BorderWidth="0px" BackColor="#66CC00"
									Height="30px"></HeaderStyle>
								<FooterStyle HorizontalAlign="Center" BackColor="#999999"></FooterStyle>
								<Columns>
									<asp:BoundColumn DataField="id" HeaderText="ID"></asp:BoundColumn>
									<asp:BoundColumn DataField="bh" HeaderText="编号"></asp:BoundColumn>
									<asp:BoundColumn DataField="Title" HeaderText="模版名称"></asp:BoundColumn>
									<asp:BoundColumn DataField="Remarks" HeaderText="备注说明"></asp:BoundColumn>
									<asp:BoundColumn DataField="AddTime" HeaderText="添加时间"></asp:BoundColumn>
									
									<asp:TemplateColumn HeaderText="编辑">
										<ItemTemplate>
											<a href="ModifJsTemplate.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id")  %>"><img src="img/edit.gif"  border="0"></a>
										</ItemTemplate>
										
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="删除">
										<ItemTemplate>
											<asp:ImageButton ID="Imagebutton2" CommandName="delete" ImageUrl="img/del.gif" Runat="server"></asp:ImageButton>
										</ItemTemplate>
									</asp:TemplateColumn>
								</Columns>
							</asp:DataGrid>
            <table width="98%">
                <tr>
                    <td style="width: 100px; height: 22px" class="table_1">
							<asp:ImageButton id="ImageButton3" runat="server" ImageUrl="img/add.gif"></asp:ImageButton></td>
                </tr>
            </table>
            <br />
            <asp:label id="Label3" runat="server"><font color="#ff0000">没有您要的记录！！</font></asp:label><br />
            <asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist" onclick="gopage">首页</asp:linkbutton>&nbsp;|&nbsp;<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre" onclick="gopage">上一页</asp:linkbutton>&nbsp;|&nbsp;<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next" onclick="gopage">下一页</asp:linkbutton>&nbsp;| 
							&nbsp;<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end" onclick="gopage">尾页</asp:linkbutton>&nbsp;<asp:label id="Label1" runat="server">0</asp:label>/
							<asp:label id="Label2" runat="server">0</asp:label>&nbsp; 记录数共
							<asp:Label id="Label4" runat="server" ForeColor="Red">0</asp:Label>
							条
							<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>
		</form>
	</body>
</HTML>
