<%@ page language="C#" autoeventwireup="true" inherits="e_vote_do, 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;<a href="vote.aspx?classid=<%=WM.RQ("classid")%>">投票项</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" style="width: 90px"><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("ItemName").value.replace(/ /g,"").replace(/　/g,"")==""){alert("项目名称不能为空！");return false;}
                }
                function del_thumbnail()
                {
                    document.getElementById("HiddenField_thumbnail").value="";document.getElementById("thumbnail_td_td1").style.display="none";document.getElementById("thumbnail_td_td2").style.display="none";
                }
                </script>

                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                    <tr>
                        <td class="tt">
                            <b>项目名称：</b>
                            <asp:HiddenField ID="HiddenField_thumbnail" runat="server" />
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="ItemName" runat="server" MaxLength="100" CssClass="inp1" Width="396"></asp:TextBox>
                                    </td>
                                    <td width="20">
                                        &nbsp;
                                    </td>
                                    <td class="tt">
                                        编号：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ItemNumber" runat="server" MaxLength="20" CssClass="inp1" Width="150"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            代表图片：
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" style="cursor: default">
                                <tr>
                                    <td>
                                        <div class="abs" style="*display: none">
                                            <table width="400" border="0" cellspacing="0" cellpadding="0" height="24">
                                                <tr>
                                                    <td id="upimg1_txt" width="322" style="border: solid 1px #ccc">
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td width="72" style="border: solid 1px #ccc" class="ce" style="color: #333">
                                                        浏览...
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <asp:FileUpload ID="upimg1" runat="server" size="55" CssClass="inp1 self_inp1" ToolTip="jpg,jpeg,png,bmp,gif" />
                                    </td>
                                    <td style="padding-left: 15px" id="thumbnail_td_td1" class="thumbnail_td">
                                        <asp:Literal ID="Literal_thumbnail" runat="server"></asp:Literal>
                                    </td>
                                    <td style="padding-left: 10px" id="thumbnail_td_td2" class="thumbnail_td">
                                        <asp:HyperLink ID="HyperLink_thumbnail" runat="server" Visible="false" href="javascript:void(0)" onclick="del_thumbnail()">[删除图片]</asp:HyperLink>
                                        <style type="text/css">
                                            .thumbnail_td a
                                            {
                                                color: #666;
                                            }
                                            .thumbnail_td a:hover
                                            {
                                                color: #ff6600;
                                            }
                                        </style>
                                    </td>
                                </tr>
                            </table>
                            <style type="text/css">
                                .self_inp1
                                {
                                    width: 393px; *width:400px;height:20px;*height:24px;filter:-moz-opacity:0;opacity:0;}</style>

                            <script type="text/javascript">
                                     if (navigator.userAgent.indexOf('Firefox') >= 0){document.getElementById("upimg1").style.width="400px";  document.getElementById("upimg1").style.height="24px";}
                            </script>

                        </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>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="ItemCount" runat="server" MaxLength="8" CssClass="inp1" Width="150" Text="0"></asp:TextBox>
                                    </td>
                                    <td width="20">
                                        &nbsp;
                                    </td>
                                    <td class="tt">
                                        <b>点击率：</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ItemClick" runat="server" MaxLength="8" CssClass="inp1" Width="150" Text="0"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </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.aspx?classid=<%=WM.RQ("classid")%>'" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
