<%@ page language="C#" autoeventwireup="true" inherits="admin_style_FormInfoSytle, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <link rel="Stylesheet" type="text/css" href="../css/RightMenu.css" />

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

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

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

    <asp:Literal ID="LitTableJs" runat="server"></asp:Literal>

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

</head>
<body onmousemove="dragmove();" onmouseup="dragclear()">
    <form id="form1" runat="server" onkeydown="Save()">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 设置样式
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
                <tr>
                    <td class="bqleft">
                        样式名称：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtName" runat="server" CssClass="in1" Columns="50"></asp:TextBox><asp:DropDownList
                            ID="StyleClass" runat="server">
                            <asp:ListItem Value="0">选择分类</asp:ListItem>
                        </asp:DropDownList>
                        <font color="#ff0066">*</font>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        表单字段：
                    </td>
                    <td class="bqright">
                        <asp:DataList ID="DataList1" runat="server" RepeatColumns="6" RepeatDirection="Horizontal"
                            Width="100%">
                            <ItemStyle Width="13%" />
                            <ItemTemplate>
                                <div id='{D_F_<%# Eval("Name") %>}' onmousedown='DragStart()' onclick='SetValue("txtHtml")'
                                    style='cursor: hand; border: solid 1px #9c9c9c; text-align: center; width: 100%;
                                    height: 20; padding-top: 3px' title="点击选择该字段到录入界面">
                                    <%# Eval("Alias")%>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        备用代码：
                    </td>
                    <td class="bqright">
                        <input id="Button1" type="button" value="<table>" class="btn" onclick="Win_Open('../common/table.aspx?Control=txtHtml','','550','415')" />
                        <input id="Button2" type="button" value="<tr></tr>" class="btn" onclick="CreateRange('txtHtml','<tr></tr>')" />
                        <input id="Button3" type="button" value="<td></td>" class="btn" onclick="CreateRange('txtHtml','<td></td>')" />
                        <input id="Button4" type="button" value="<div>" class="btn" onclick="Win_Open('../common/div.aspx?Control=txtHtml','','550','150')" />
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        样式内容：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtHtml" runat="server" Height="300px" TextMode="MultiLine" Width="99%"
                            onmouseup="dragend('txtHtml');OnMouseUp('txtHtml')" onmousemove="movePoint()"
                            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" 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='StyleList.aspx'"
                            class="btn radius30 pad_0_30" style="margin-left: 20px" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
