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

<%@ 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>标签管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="No-cach" />
    <link href="../Style.css" type="text/css" rel="stylesheet" />

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

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

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>        <table width="100%" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
                <tr>
                    <td width="50%">
                        &nbsp;<img src='../../Images/arrow.gif' alt="" />
                        您现在的位置：<asp:Label ID="LB_Path" runat="server"></asp:Label>
                       
                    </td>
                    <td width="50%" align="right">
                        搜索：
                        <asp:DropDownList ID="DDL_Sort" runat="server" EnableViewState="False">
                            <asp:ListItem Value="Name">标签名称</asp:ListItem>
                            <asp:ListItem Value="Remark">备注</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;
                        <asp:TextBox ID="TB_KeyWord" runat="server"></asp:TextBox>&nbsp;
                        <asp:Button ID="BT_Search" runat="server" Text="搜索" EnableViewState="False" CssClass="btn"
                            OnClick="BT_Search_Click"></asp:Button>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" CssClass="GridView"
                DataKeyNames="ID" onrowdatabound="GV_List_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <HeaderTemplate>
                            <input name="chkHeader" onclick="javascript:SelectAll(this);" type="checkbox" value="chkHeader" /></HeaderTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                  
                        <asp:TemplateField HeaderText="标签名字">
                            <ItemTemplate>
                                    <%# MyLink(Eval("Name"), Eval("ID"))%>
                            </ItemTemplate>
                            <HeaderStyle Width="120px" />
                    </asp:TemplateField>
                        
                    <asp:TemplateField HeaderText="调用标签">
                        <ItemTemplate>
                            &lt;TW:TopWinCMS ID=&quot;<%# Eval("Name")%>&quot;&gt;&lt;/TW:TopWinCMS&gt;
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="DataType" HeaderText="数据来源">
                        <HeaderStyle Width="120px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    
                      <asp:BoundField DataField="Type" HeaderText="标签类型">
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                     
                    
                        <asp:TemplateField HeaderText="启用">
                        <ItemTemplate>
                            <%#  Eval("Stop").ToString() == "0" ? "<IMG alt='' src='../Images/success-true.gif'>" : "<IMG alt='' src='../Images/failed-false.gif'>"%>
                        </ItemTemplate>
                        <HeaderStyle Width="40px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    
                    <asp:BoundField DataField="CheckInDate" DataFormatString="{0:yy-MM-dd HH:mm:ss}" HeaderText="录入日期"
                        HtmlEncode="False">
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
            <div class="WorkArea">
                <asp:Button ID="BT_DelSeletedID" runat="server" Text="删除选中" EnableViewState="False"
                    CssClass="btn" OnClick="BT_DelSeletedID_Click" OnClientClick="return CheckSelected(this,'GV_List');">
                </asp:Button>
                &nbsp;&nbsp; |&nbsp;
                <asp:Button ID="BT_Stop" runat="server" CssClass="btn" OnClick="BT_Stop_Click" Text="停用"
                    OnClientClick="return CheckSelected(this,'GV_List');" />
                &nbsp; |&nbsp;
                <asp:Button ID="BT_UnStop" runat="server" CssClass="btn" OnClick="BT_UnStop_Click"
                    Text="启用" OnClientClick="return CheckSelected(this,'GV_List');" />
            </div>
            <div class="pagefield">
                <cc1:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging"
                    SubmitButtonClass="btn" SubmitButtonText="转向">
                </cc1:PageNavigation>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
