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

<%@ 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 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;
        }
    </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>
            <fieldset style="width:auto">
                <legend>模板选用 </legend>
                <asp:DropDownList ID="DropDownList1" runat="server" Width="98%" AutoPostBack="True"
                    OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="FullName"
                    OnRowCommand="GV_List_RowCommand" Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="名称">
                            <ItemTemplate>
                                <img src="../Images/FileICO/<%# Eval("ICO") %>" alt="" onerror="this.src='../Images/FileICO/err.gif'" />
                                <asp:Button ID="Button1" CommandName="GOTO" runat="server" CommandArgument='<%# Eval("FullName") %>'
                                    Text='<%# Eval("Name")%>' CssClass="BB" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                <%# Eval("Get")%>
                            </ItemTemplate>
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
            </fieldset>
            <p style="text-align: center">
                <input type="button" class="btn" value="取消" onclick="window.close();" />
            </p>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
