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

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

</head>
<body >
    <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> >> <a href="FormWebList.aspx">表单录入界面列表</a>
                >> 编辑录入界面
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" border="0" align="center">
        <tr>
            <td class="bqleft">
                表单字段：
            </td>
            <td class="bqright">
                <asp:DataList ID="DataList1" runat="server" RepeatColumns="6" RepeatDirection="Horizontal"
                    Width="100%">
                    <ItemTemplate>
                        <div onclick="CreateRange('txtHtml','{D_F_<%# Eval("Name") %>}')" class="fieldstyle" 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')" />
                <input id="Button3" type="button" value="验证码" class="btn" onclick="CreateRange('txtHtml','{D_F_VerCodeImg}<br/>{D_F_VerCode}')" />
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                录入HTML：
                <br />
                {D_C_Html}
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtHtml" runat="server" Width="98%" Height="300" TextMode="MultiLine"></asp:TextBox><br />
                <table width="98%" 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="50">
                <asp:Button ID="DianCMS_Submit" runat="server" Text=" 提交(Ctrl+s) " CssClass="btn radius30 pad_0_30"
                    OnClick="Button5_Click" />
                <asp:Button ID="Button6" runat="server" Text=" 提交并生成 " OnClick="Button5_Click" Style="margin-left: 10px"
                    CssClass="btn radius30 pad_0_30" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
