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

<%@ 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>

    <style type="text/css">
        .RowTitle
        {
            width: 100px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
                <tr>
                    <td width="50%">
                        <img src='../../Images/arrow.gif' alt="" />
                        您现在的位置：<asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Wizard ID="Wizard1" runat="server" Width="100%" ActiveStepIndex="2" DisplayCancelButton="True"
                OnNextButtonClick="Wizard1_NextButtonClick" 
                OnFinishButtonClick="Wizard1_FinishButtonClick">
                <FinishCompleteButtonStyle CssClass="btn" />
                <FinishPreviousButtonStyle CssClass="btn" />
                <WizardSteps>
                    <asp:WizardStep runat="server" Title="1、基本设置">
                        <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0" bordercolorlight="white">
                            <tr>
                                <td class="RowTitle">
                                    标签名称：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_Name" runat="server" Width="250px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="display: none">
                                <td class="RowTitle">
                                    调用方式：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="RBL_Type" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Value="0" Selected="True">普通</asp:ListItem>
                                        <asp:ListItem Value="1">Ajax</asp:ListItem>
                                        <asp:ListItem Value="2">数据调用JS</asp:ListItem>
                                        <asp:ListItem Value="3">静态JS</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr id="tr_JsPath" runat="server">
                                <td class="RowTitle">
                                    JS保存路径：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_JsPath" runat="server" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    链接类型：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="RBL_URLType" runat="server">
                                        <asp:ListItem Value="ArticleShowURL">文章模型内容页</asp:ListItem>
                                        <asp:ListItem Value="ClassURL">栏目列表页</asp:ListItem>
                                        <asp:ListItem Value="SoftShowURL">软件模型内容页</asp:ListItem>
                                        <asp:ListItem Value="SpecialURL">专题列表页</asp:ListItem>
                                        <asp:ListItem Selected="True">无</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    备注：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_Remark" runat="server" Height="100px" TextMode="MultiLine" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </asp:WizardStep>
                    <asp:WizardStep runat="server" Title="2、数据查询">
                        <table style="width: 100%;">
                            <tr>
                                <td class="RowTitle">
                                    数据库类型：
                                </td>
                                <td>
                                    <asp:DropDownList ID="DDL_DataType" runat="server">
                                        <asp:ListItem Value="0">SqlServer版主数据库</asp:ListItem>
                                        <asp:ListItem Value="1">Access版主数据库</asp:ListItem>
                                        <asp:ListItem Value="2">外部SqlServer</asp:ListItem>
                                        <asp:ListItem Value="3">外部Access</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    连接字符：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_DataSource" runat="server" Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    Sql代码：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_SqlScript" runat="server" Height="100px" TextMode="MultiLine"
                                        Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </asp:WizardStep>
                    <asp:WizardStep runat="server" Title="3、模板设置">
                        <table style="width: 100%;">
                            <tr>
                                <td class="RowTitle">
                                    短标题字段：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_ShortTitle" runat="server" Width="250px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    短标题长度：
                                </td>
                                <td>
                                    <cc1:NumericTextBox ID="NTB_Length" runat="server" AllowDecimal="False" AllowNegative="False"
                                        DecimalPlaces="-1"></cc1:NumericTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    循环项模板：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_ItemTemplet" runat="server" Height="100px" TextMode="MultiLine"
                                        Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    说明：
                                </td>
                                <td>
                                    <a href="mailto:短标题占位符用@ShortTitle@">短标题占位符用@ShortTitle@</a><br />
                                    示例：&lt;li&gt;&lt;a href=&quot;@StaticURL@&quot; title=&quot;@Title@&quot;&gt;@ShortTitle@&lt;/a&gt;&lt;/li&gt;</td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    空数据模板：
                                </td>
                                <td>
                                    <asp:TextBox ID="TB_EmptyTemplet" runat="server" Height="100px" TextMode="MultiLine"
                                        Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="RowTitle">
                                    说明：
                                </td>
                                <td>
                                    没有数据的时候的说明文字。</td>
                            </tr>
                        </table>
                    </asp:WizardStep>
                    <asp:WizardStep runat="server" Title="4、完成">
                        请点击“完成”保存标签，然后在模板里加上一下标签。
                         
                        <br />
                        <asp:TextBox ID="TB_TiShi" runat="server" Rows="5" TextMode="MultiLine" 
                            Width="90%"></asp:TextBox>
                         
                    </asp:WizardStep>
                </WizardSteps>
                <NavigationButtonStyle CssClass="btn" />
                <SideBarStyle Width="90px" VerticalAlign="Top" />
                <CancelButtonStyle CssClass="btn" />
            </asp:Wizard>
            <asp:TextBox ID="TB_Tag" runat="server" Height="200px" TextMode="MultiLine" Width="98%"
                Visible="False"></asp:TextBox>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
