<%@ page language="C#" autoeventwireup="true" inherits="admin_form_votestyle, 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 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/<%=B_Lang.getLang() %>/Copy.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <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="../style/StyleList.aspx">样式管理</a> >> 设置投票样式
            </td>
        </tr>
    </table>
    <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">
                <table cellpadding="1" cellspacing="0" border="0" width="99%">
                    <tr>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','{D_F_Name}')" class="fieldstyle" title="点击选择该字段">
                                投票名称
                            </div>
                        </td>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','{D_F_Onclick}')" class="fieldstyle" title="点击选择该字段">
                                投一票事件
                            </div>
                        </td>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','{D_F_OnResult}')" class="fieldstyle" title="点击选择该字段">
                                查看结果事件
                            </div>
                        </td>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','<div class=&quot;divVote&quot;>\r\n<ul>\r\n<label>{D_F_Name}</label>\r\n<dianloop>\r\n<li><span class=&quot;txtload&quot;>{D_F_Input} {D_F_Title}</span><span class=&quot;divload&quot;><label><font style=&quot;background-color:{D_F_Style};width:{D_F_Per}&quot;></font></label></span></li>\r\n</dianloop>\r\n</ul>\r\n<ul><li><input type=&quot;button&quot; value=&quot;投一票&quot; onclick=&quot;{D_F_Onclick}&quot;/> <input type=&quot;button&quot; value=&quot;查看结果&quot; onclick=&quot;{D_F_OnResult}&quot;/></li></ul>\r\n</div>')" class="fieldstyle" title="点击选择该字段">
                                快速设置（颜色值）
                            </div>
                        </td>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','<div class=&quot;divVote&quot;>\r\n<ul>\r\n<label>{D_F_Name}</label>\r\n<dianloop>\r\n<li><span class=&quot;txtload&quot;>{D_F_Input} {D_F_Title}</span><span class=&quot;divload&quot;><label><font class=&quot;{D_F_Style}&quot; style=&quot;width:{D_F_Per}&quot;></font></label></span></li>\r\n</dianloop>\r\n</ul>\r\n<ul><li><input type=&quot;button&quot; value=&quot;投一票&quot; onclick=&quot;{D_F_Onclick}&quot;/> <input type=&quot;button&quot; value=&quot;查看结果&quot; onclick=&quot;{D_F_OnResult}&quot;/></li></ul>\r\n</div>')" class="fieldstyle" title="点击选择该字段">
                                快速设置（样式名称）
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                选项字段：
            </td>
            <td class="bqright">
                <table cellpadding="1" cellspacing="0" border="0" width="99%">
                    <tr>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','{D_F_Title}')" class="fieldstyle" title="点击选择该字段">
                                选项标题
                            </div>
                        </td>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','{D_F_Input}')" class="fieldstyle" title="点击选择该字段">
                                选项按钮
                            </div>
                        </td>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','{D_F_Style}')" class="fieldstyle" title="点击选择该字段">
                                选项样式
                            </div>
                        </td>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','{D_F_Per}')" class="fieldstyle" title="点击选择该字段">
                                百分比
                            </div>
                        </td>
                        <td width="13%">
                            <div onclick="CreateRange('txtHtml','{D_F_Number}')" class="fieldstyle" title="点击选择该字段">
                                投票数
                            </div>
                        </td>
                    </tr>
                </table>
            </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="Button24" type="button" value="<div/>" class="btn" onclick="CreateRange('txtHtml','<div></div>')" />
                <input id="Button24" type="button" value="<ul/>" class="btn" onclick="CreateRange('txtHtml','<ul></ul>')" />
                <input id="Button24" type="button" value="<li/>" class="btn" onclick="CreateRange('txtHtml','<li></li>')" />
                <input id="Button24" type="button" value="<span/>" class="btn" onclick="CreateRange('txtHtml','<span></span>')" />
                <input id="Button24" type="button" value="<font/>" class="btn" onclick="CreateRange('txtHtml','<font></font>')" />
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                样式内容：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtHtml" runat="server" Height="220px" 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" 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>
    </form>
</body>
</html>
