<%@ page language="C#" autoeventwireup="true" inherits="e_do_jfjp, 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;积分兑换&nbsp;&raquo;&nbsp;奖品设置&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">
                                    <asp:Literal ID="Literal_pathname" runat="server">添加奖品</asp:Literal></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("title").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="title" runat="server" MaxLength="100" CssClass="inp1" Width="200"></asp:TextBox>
                                    </td>
                                    <td width="50">
                                        &nbsp;
                                    </td>
                                    <td class="tt">
                                        <b>收寄是否填写：</b>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="DropDownList1" runat="server" Style="width: 200px; color: #666">
                                            <asp:ListItem Value="0">不填(虚拟物品不填写)</asp:ListItem>
                                            <asp:ListItem Value="1">必填(实物填写)</asp:ListItem>
                                        </asp:DropDownList>
                                    </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>
                            <asp:TextBox ID="cost" runat="server" MaxLength="8" CssClass="inp1" Width="100"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            <b>上架状态：</b>
                        </td>
                        <td>
                            <asp:DropDownList ID="enable" runat="server" Style="width: 200px; color: #666">
                                <asp:ListItem Value="1">上架(前台可以兑换)</asp:ListItem>
                                <asp:ListItem Value="0">下架(前台页面不显示此奖品)</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='jfjp.aspx'" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
