<%@Page Language="C#" Inherits="IWMS.Admin.RelateKeyMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<%BtDelete.Attributes["onclick"] = "return confirm_batch_delete()";%>
</asp:Content>

<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<table width="98%" cellpadding="0" cellspacing="0">
			<tr><td>
				<span class="tt">管理标签</span>
			</td><td align="right">
				<form action="" method="get">
				<input type="text" size="15" name="keyword"/>
				<select name="where" >
					<option value="name">名称</option>
				</select>
				<input type="submit" value="搜索"/>
				</form>
			</td>
		</tr></table>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
	<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
	<form id="myForm" runat="server">
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AutoGenerateColumns="false"
				DataKeyField="id"
				OnEditCommand="MyDataGrid_Edit"
				OnCancelCommand="MyDataGrid_Cancel"
				OnUpdateCommand="MyDataGrid_Update"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				Style="word-break:break-all;"
				PageSize="15"
				CellPadding="6"
				CellSpacing="0" >
			
			<Columns>
				<asp:EditCommandColumn
					ButtonType="LinkButton"
					EditText="修改"
					UpdateText="更改"
					CancelText="取消"
					>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="70"/>
				</asp:EditCommandColumn>
				<asp:TemplateColumn
					HeaderText="<input type=&quot;checkbox&quot; onclick=&quot;checkFormAll(this)&quot;/>"
					>
					<ItemTemplate>
						<asp:CheckBox id="chk" runat="server"/>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="20"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="标签名"
					>
					<ItemTemplate>
					<%#Eval("name")%>
					</ItemTemplate>
					<EditItemTemplate>
					<asp:TextBox TextMode="Singleline" Columns="45" Text=<%#(string)Eval("name")%> runat="server"/>
					</EditItemTemplate>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="关联数"
					DataField="num"
					ReadOnly="true">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="100"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText=""
					>
					<ItemTemplate>
					<a href="search.aspx?Where=Nkey&amp;Keyword=<%#Eval("id")%>" target="_blank">关联新闻</a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:TemplateColumn>
			</Columns>
		</ASP:DataGrid>
		
		<table><tr><td>
		<asp:Literal id="PageList" runat="server"/>
		</td></tr>
		<tr><td>
			<asp:Button id="BtDelete" OnClick="BtDelete_OnClick" Text="删除" runat="server"/>
		</td></tr>
		</table>
		
		</form>
		
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

</asp:Content>