<%@ page language="C#" autoeventwireup="true" inherits="admin_label_SetLabel, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="D.BLL" %>
<%@ Import Namespace="D.Common" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/Dragdrop.js"></script>
    <script type="text/javascript" src="../../js/<%=B_Lang.getLang() %>/Copy.js"></script>
    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/<%=B_Lang.getLang() %>/label.js"></script>
    <meta http-equiv="X-UA-Compatible" content="edge" />
    <script type="text/javascript">
        function selectLabelclass(id) {
            window.location.href = "LabelList.aspx?ParentId=" + id + "";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" onkeydown="Save()">
        <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
            <tr>
                <td>
                    <table width="100%">
                        <tr>
                            <td>
                                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="labellist.aspx">标签列表</a> >> 创建标签</td>
                            <td align="right">
                                <asp:DropDownList
                                    ID="dropLabelClass" runat="server" onchange="selectLabelclass(this.value)">
                                    <asp:ListItem Value="0">快速进入标签列表</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
            <tr>
                <td class="bqleft">标签名称：
                </td>
                <td class="bqright">
                    <font color="red">{D_L_</font>
                    <asp:TextBox ID="txtName" runat="server" CssClass="in1" Columns="50"></asp:TextBox><font
                        color="red">}</font>
                    <asp:DropDownList ID="Class" runat="server">
                        <asp:ListItem Value="0">选择分类</asp:ListItem>
                    </asp:DropDownList>
                    <font color="#ff0066">*</font>
                    <asp:TextBox ID="txtTypeId" runat="server" Text="0" Style="display: none"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">模型标签：
                </td>
                <td class="bqright">
                    <asp:DataList ID="ModelList" runat="server" RepeatColumns="6" CellPadding="0" CellSpacing="0"
                        RepeatDirection="Horizontal">
                        <ItemStyle Width="111" />
                        <ItemTemplate>
                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <%#GetDivList(Eval("ModelId", "{0}"), Eval("ModelName", "{0}"))%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input id="Button1" type="button" value=" <%# Eval("ModelName") %> " class="btn"
                                            style="width: 111px; margin: 1px;" onclick="ShowDiv('<%# Eval("ModelId") %>    ')"
                                            onmouseout="HiddenDiv('<%# Eval("ModelId") %>')" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </td>
            </tr>
            <tr>
                <td class="bqleft">通用标签：
                </td>
                <td class="bqright">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="Button7" type="button" value="系统常用标签" class="btn" onclick="WinOpenLhgFocusDialog('txtHtml','系统常用标签','../label/SystemCommon.aspx',720,480,'')" style="margin-right:2px;" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <%=GetModelFuZhu("_1") %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="Button5" type="button" value="模型辅助标签" class="btn" onclick="ShowDiv('_1')"
                                                onmouseout="HiddenDiv('_1')" style="width: 100px;margin-right:2px;" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <%=GetUserSpace("_2") %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="Button11" type="button" value="用户空间" class="btn" onclick="ShowDiv('_2')"
                                                onmouseout="HiddenDiv('_2')" style="width: 80px;margin-right:2px;" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <%=GetExamStyle("_3") %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="Button13" type="button" value="试卷标签" class="btn" onclick="ShowDiv('_3')"
                                                onmouseout="HiddenDiv('_3')" style="width: 80px;margin-right:2px;" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <%=GetSinglePageStyle("singlepage")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="Button14" type="button" value="单页标签" class="btn" onclick="ShowDiv('singlepage')"
                                                onmouseout="HiddenDiv('singlepage')" style="width: 80px;margin-right:2px;" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <%=GetAskStyle("ask")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="Button16" type="button" value="问答系统" class="btn" onclick="ShowDiv('ask')"
                                                onmouseout="HiddenDiv('ask')" style="width: 80px;margin-right:2px;" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <%=GetFocusStyle("JiaoDian")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="Button17" type="button" value="焦点广告" class="btn" onclick="ShowDiv('JiaoDian')"
                                                onmouseout="HiddenDiv('JiaoDian')" style="width: 80px" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="bqleft">备用代码：
                </td>
                <td class="bqright">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td>
                                <input id="Button1" type="button" value="<table>" class="btn" onclick="Win_Open('../common/table.aspx?Control=txtHtml','','550','415')"
                                    style="margin: 1px 1px 1px" />
                            </td>
                            <td>
                                <input id="Button4" type="button" value="<div>" class="btn" onclick="Win_Open('../common/div.aspx?Control=txtHtml','','550','150')"
                                    style="margin: 1px 1px 1px" />
                            </td>
                            <td>
                                <input id="Button2" type="button" value="<tr></tr>" class="btn" onclick="CreateRange('txtHtml','<tr></tr>')"
                                    style="margin-right: 2px" />
                            </td>
                            <td>
                                <input id="Button3" type="button" value="<td></td>" class="btn" onclick="CreateRange('txtHtml','<td></td>')"
                                    style="margin: 1px 1px 1px" />
                            </td>
                            <td>
                                <input id="Button8" type="button" value="<div/>" class="btn" onclick="CreateRange('txtHtml','<div></div>')"
                                    style="margin: 1px 1px 1px" />
                            </td>
                            <td>
                                <input id="Button9" type="button" value="<ul/>" class="btn" onclick="CreateRange('txtHtml','<ul></ul>')"
                                    style="margin: 1px 1px 1px" />
                            </td>
                            <td>
                                <input id="Button10" type="button" value="<li/>" class="btn" onclick="CreateRange('txtHtml','<li></li>')" style="margin: 1px 1px 1px" />
                            </td>
                            <td>
                                <input id="Button15" type="button" value="&lt;%%&gt;" class="btn"
                                    onclick="WinOpenLhgFocusDialog('txtHtml','易点CMS独创函数设置','../common/duchuang.aspx',650,400,'')" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="bqleft">标签内容：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtHtml" runat="server" Height="300px" TextMode="MultiLine" Width="99%"
                        Style="word-break: break-all; word-wrap: break-word;">
                    </asp:TextBox><br />
                    <table width="99%" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td bgcolor="#e0dfe3">
                                <input id="Button12" type="button" value="修改标签内容" class="btn" onclick="UpdateLabelHtml('<%=Function.GetAdminFolder()%>    ','<%=Function.GetCssName()%>    ')" />
                            </td>
                            <td bgcolor="#e0dfe3" align="right">
                                <a href="javascript:" onclick="runEx('txtHtml')">
                                    <img src="../images/PreView.gif" border="0" title="预览录入界面" /></a> <a href="javascript:"
                                        onclick="copyToClipboard(document.form1.txtHtml.value)">
                                        <img src="../images/copy.gif" border="0" title="复制录入界面" style="margin-left: 20px" /></a>
                                <a href="javascript:" onclick="SizePlus('txtHtml')" title="增加编辑高度">
                                    <img src="../images/sizeplus.gif" border="0" style="margin-left: 20px;" /></a>
                                <a href="javascript:" onclick="SizeMinus('txtHtml')">
                                    <img src="../images/sizeminus.gif" border="0" title="减少编辑高度" style="margin-left: 20px; margin-right: 20px" /></a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="bqleft"></td>
                <td class="bqright" height="40">
                    <asp:Button ID="DianCMS_Submit" runat="server" Text="确认(Ctrl+s)" CssClass="btn radius30 pad_0_30" OnClick="Button5_Click" />
                    <input id="Button6" type="button" value=" 取消 " onclick="window.location.href='labellist.aspx'"
                        class="btn radius30 pad_0_30" style="margin-left: 20px" />
                </td>
            </tr>
            <tr>

                <td class="bqleft">注意事项：</td>
                <td class="bqright" height="40">1、标签Where参数中可写入以下格式：[字段名称](连接对象)&lt;值&gt;，如：Where="[IsHot](=)&lt;true&gt;"<br />
                    2、多条件调用：Where="[IsHot](=)&lt;true&gt;&or,[IsTop](=)&lt;true&gt;"<br />
                    3、多条件组合调用：Where="({[IsHot](=)&lt;true&gt;&or,[IsTop](=)&lt;true&gt;})&and,[IsComment](=)&lt;true&gt;"</td>
            </tr>
        </table>
    </form>
</body>
</html>
