<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetTag.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.Window.GetTag" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Tags</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

    <script language="javascript" src="../TopWin.js" type="text/javascript"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <style type="text/css">
        .BB
        {
            border: 1px solid #FFFFFF;
            background-color: #FFFFFF;
        }
        
        boby
        {      	
        	 
        	 margin-bottom:0px;
        	 margin-left:5px;
        	 margin-right:5px;
        	 margin-top:0px;
        }
    </style>

    <script language="javascript" type="text/javascript">
 
	
	function ClickRetrun( v )
	{
	    window.returnValue = v;
	    window.close();
	}
 
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <div style="width:450px">
            <fieldset >
                <legend>Tags选用 </legend>
                
                搜索：<asp:TextBox ID="TB_KeyWord" runat="server"></asp:TextBox>
                <asp:Button ID="BT_Search" runat="server" CssClass="btn" 
                    onclick="BT_Search_Click" Text="搜索" />
                
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="ID" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="TagName" HeaderText="Tag" />
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                            <input id="Button1" type="button" class="btn" value="选择" onclick='ClickRetrun("<%# Eval("TagName")%>");' />
                                
                            </ItemTemplate>
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
            </fieldset><cc1:PageNavigation ID="PageNavigation1" runat="server" 
               ShowCustomInfoSection="Never" onpagechanging="PageNavigation1_PageChanging" 
                ShowPageIndexBox="Never" Width="428px">
            </cc1:PageNavigation>
            <p style="text-align: center">
                <input type="button" class="btn" value="取消" onclick="window.close();" />
            </p>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
