<%@ Page CodeBehind="admin_label.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_label" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<LINK href="img/main.css" type="text/css" rel="stylesheet">
			<style type="text/css">.style1 { FONT-WEIGHT: bold; COLOR: #ffffff }
	.style4 { COLOR: #ff0000 }
	</style>
</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
				<TABLE id="brb" height="27" cellSpacing="1" cellPadding="5" width="100%" align="center"
					border="0">
					<TR>
						<TD class="td_title" colSpan="3">
							<asp:Label id="type" runat="server"></asp:Label>标签管理&nbsp;&nbsp;&nbsp;&nbsp;
							<asp:HyperLink id="addnew" runat="server" ForeColor="Red" Font-Bold="True">点击添加新标签</asp:HyperLink></TD>
					</TR>
				</TABLE>
				<DIV align="center">
					<asp:datagrid id="DataGrid" runat="server" CssClass="GridBody" AutoGenerateColumns="False" Width="100%"
						PageSize="20" AllowSorting="True" GridLines="None">
						<AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
						<ItemStyle CssClass="GridItem"></ItemStyle>
						<HeaderStyle CssClass="GridHead"></HeaderStyle>
						<Columns>
							<asp:BoundColumn Visible="False" DataField="id"></asp:BoundColumn>
							<asp:BoundColumn Visible="False" DataField="label"></asp:BoundColumn>
							<asp:HyperLinkColumn DataNavigateUrlField="id" DataNavigateUrlFormatString="admin_label_add.aspx?id={0}" DataTextField="label" HeaderText="标签">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:HyperLinkColumn>
							<asp:BoundColumn DataField="note" HeaderText="注释">
								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							</asp:BoundColumn>
							<asp:TemplateColumn HeaderText="类型">
								<HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
								<ItemTemplate>
									<%# show(DataBinder.Eval(Container, "DataItem.type").ToString()) %>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:HyperLinkColumn Text="编辑" DataNavigateUrlField="id" DataNavigateUrlFormatString="admin_label_add.aspx?id={0}" HeaderText="编辑">
								<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:HyperLinkColumn>
							<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="" HeaderText="复制" CancelText="Edit" EditText="复制">
								<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:EditCommandColumn>
							<asp:ButtonColumn Text="导出" HeaderText="导出" CommandName="Select">
								<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:ButtonColumn>
							<asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
								<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
								<ItemStyle HorizontalAlign="Center"></ItemStyle>
							</asp:ButtonColumn>
						</Columns>
						<PagerStyle PageButtonCount="20" Mode="NumericPages"></PagerStyle>
					</asp:datagrid>
					<TABLE id="brb" height="27" cellSpacing="1" cellPadding="5" width="100%" align="center"
						border="0">
						<TR>
							<TD class="td_title" colSpan="3">导入标签（将已导出的标签导入进来，为TXT文件）</TD>
						</TR>
						<TR class="tableTd">
							<TD align="right" width="17%"><SPAN class="forumrow"><SPAN class="a3-green">直接粘贴TXT文件中的内容：</SPAN>
								</SPAN></TD>
							<TD width="83%">&nbsp; <TEXTAREA id="import" name="textarea" rows="3" cols="50" runat="server"></TEXTAREA>
								<SPAN class="px14">
									<asp:Button class="formbutton" id="Submit2" runat="server" Width="100px" Text=" 导 入 " onclick="Submit2_Click"></asp:Button>
								</SPAN></TD>
						</TR>
					</TABLE>
				</DIV></form>
	</body>
</HTML>
