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

<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.ascx" %>
<!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">
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" Style="display: none">
    &nbsp;&raquo;&nbsp;<a href="vote_class.aspx">投票频道</a>&nbsp;&raquo;&nbsp;编辑投票
    </asp:Label>
    <UC:head ID="head1" runat="server" />
    <%--main start--%>
    <div class="c1">
        <div class="b1">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="b1_l">
                    </td>
                    <td>
                        <div class="con1">
                            <ul>
                                <li class="on"><a title="刷新本页" href="javascript:void(0)" onclick="window.location=location.href">编辑投票</a></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                    </td>
                    <td align="right">
                        <div class="con2"></div>
                    </td>
                    <td class="b1_r">
                    </td>
                </tr>
            </table>
        </div>
        <div class="v1">
            <div class="do1">

                <script type="text/javascript" src="../s/skin/image.js"></script>

                <script type="text/javascript">
                function check()
                {            
                    if(document.getElementById("VoteTheme").value.replace(/ /g,"").replace(/　/g,"")==""){alert("投票主题不能为空！");return false;}
                }
                </script>

                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                    <tr>
                        <td class="tt">
                            <b>投票主题：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="VoteTheme" runat="server" MaxLength="100" CssClass="inp1" Width="400"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>会员投票：</b>
                        </td>
                        <td>
                            <asp:DropDownList ID="UserVote" runat="server" Style="width: 200px; color: #666">
                                <asp:ListItem Value="0">游客可以投票</asp:ListItem>
                                <asp:ListItem Value="1">只能本站会员投票</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>投票说明：</b>
                            <div class="self_funlink1">
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_OnClick" CommandArgument="1">(删除表格)</asp:LinkButton>
                                <br />
                                <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton1_OnClick" CommandArgument="2">(整理换行)</asp:LinkButton>
                            </div>
                            <style type="text/css">
                                .self_funlink1
                                {
                                    padding-top: 3px;
                                }
                                .self_funlink1 a
                                {
                                    font-weight: normal;
                                    padding-right: 10px;
                                    color: #999;
                                }
                                .self_funlink1 a:hover
                                {
                                    color: #666;
                                    text-decoration: none;
                                }
                            </style>
                        </td>
                        <td>
                            <%@ register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
                            <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/s/tool/fck/" Height="500" Width="720" ToolbarSet="Edit2_a_fontsize">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>页面标题：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="PageTitle" runat="server" MaxLength="300" CssClass="inp1" Width="716"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>关键字：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="Keywords" runat="server" TextMode="MultiLine" CssClass="inp1" Width="716" Height="150" Style="overflow-y: scroll"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>页面描述：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="Description" runat="server" TextMode="MultiLine" CssClass="inp1" Width="716" Height="150" Style="overflow-y: scroll"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>头部代码：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="PageHeadCode" runat="server" TextMode="MultiLine" CssClass="inp1" Width="716" Height="300" Style="overflow-y: scroll"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>尾部代码：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="PageFootCode" runat="server" TextMode="MultiLine" CssClass="inp1" Width="716" Height="300" Style="overflow-y: scroll"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>开始时间：</b>
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="StartDateTime" runat="server" MaxLength="29" CssClass="inp1" Width="200"></asp:TextBox>
                                    </td>
                                    <td width="20">
                                        &nbsp;
                                    </td>
                                    <td class="tt">
                                        <b>结束时间：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="EndDateTime" runat="server" MaxLength="29" CssClass="inp1" Width="200"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                    
                    <tr>
                        <td class="tt">
                            &nbsp;
                        </td>
                        <td style="height:60px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            封面图片：
                        </td>
                        <td>
                            <asp:TextBox ID="thumbnail" runat="server" MaxLength="1000" CssClass="inp1" Width="716"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            活动简介：
                        </td>
                        <td>
                            <asp:TextBox ID="intro" runat="server" TextMode="MultiLine" CssClass="inp1" Width="716" Height="300" Style="overflow-y: scroll"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            展示形式：
                        </td>
                        <td>
                            <asp:DropDownList ID="OpenType" runat="server" Style="width: 200px; color: #666">
                                <asp:ListItem Value="1">/vote/vote1.aspx</asp:ListItem>
                                <asp:ListItem Value="2">/vote/vote2.aspx</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    
                    
                    <tr>
                        <td class="tt">
                            &nbsp;
                        </td>
                        <td>
                            <asp:CheckBox ID="CheckBox1" runat="server" Text="保存远程图片" Style="color: #999" />
                            &nbsp;&nbsp;
                            <asp:CheckBox ID="CheckBox2" runat="server" Text="添加水印" Style="color: #999" />
                            &nbsp;&nbsp;
                            <asp:CheckBox ID="CheckBox3" runat="server" Text="过滤内容中的链接" Style="color: #999" />
                            &nbsp;&nbsp;
                            <asp:CheckBox ID="CheckBox4" runat="server" Text="限制图片宽度" Style="color: #999" Checked="true" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            &nbsp;
                        </td>
                        <td>
                            <asp:Button ID="ButtonSubmit" runat="server" CssClass="but1" Text="修改" OnClick="ButtonSubmit_Click" OnClientClick="return check()" />&nbsp; <input type="button" value="返回" class="but1" onclick="window.location='vote_class.aspx'" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
