<%@ page language="C#" autoeventwireup="true" inherits="user_party_do, ZKCMS" maintainscrollpositiononpostback="true" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="side_menu" TagPrefix="UC" Src="~/user/side_menu.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">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>会员中心_ <%=ZK.config("sitetitle") %></title><meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <script type="text/javascript">
        function set_endtimereg()
        {
            var now = new Date();
            document.getElementById("endtimereg").value=now.getFullYear()+"-"+(now.getMonth()+1)+"-"+now.getDate();
        }
    </script>
</head>
<body>
    <div class="wrap"><a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <form id="form1" runat="server" autocomplete="off">
        <div class="box">
            <div class="hot">
                <div class="fl" style="width: 180px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl"></div>
                            <div class="con" style="width: 80px">功能菜单</div>
                            <div class="fr"></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v">
                            <UC:side_menu ID="side_menu1" runat="server" />
                               <script type="text/javascript">if(location.href.toLowerCase().indexOf("act=mod")==-1)showonly_user_side_menu("2,3,4,5,6");</script>
                        </div>
                    </div>
                </div>
                <div class="fr flow" style="width: 765px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl"></div>
                            <div class="con">
                                <asp:Literal ID="PathTitleActType" runat="server">发布</asp:Literal>活动</div>
                            <div class="fr"></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v">
                            <div class="do1">

                                <script type="text/javascript">
                                    var ContinueMake=1;                
                                    function check()
                                    {
                                        if(ContinueMake!=1){setTimeout(check,1000);return false;}                      
                                        if(document.getElementById("title").value==""){alert("请填写活动主题！");return false;}
                                        if(document.getElementById("title").value.length<2){alert("活动主题太短！");return false;}
                                        if(!ifHasChn(document.getElementById("title").value)){alert("活动主题不符合规范！");return false;}
                                        if(document.getElementById("starttime").value==""){alert("请填写活动集合时间！");return false;}
                                        if(document.getElementById("endtime").value==""){alert("请填写活动结束时间！");return false;}
                                        if(document.getElementById("place").value==""){alert("请填写具体地点！");return false;}           
                                        if(<%=ZK.config("switchvalidatecode1") %>==1)if(document.getElementById("vc").value=="")
                                        {
                                            alert("验证码不能为空！");return false;
                                        }
                                        else
                                        {
                                            if(document.getElementById("msg_vc").innerHTML!=""&&document.getElementById("msg_vc").innerHTML.indexOf("请输入")==-1)
                                            {
                                                alert("验证码不正确！");return false;
                                            }
                                        } 
                                   }
                                </script>

                                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                                    <tr>
                                        <td class="tt">
                                            <b>活动类型：</b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="type" runat="server" Width="200" CssClass="sel1">
                                                <asp:ListItem>美食聚会</asp:ListItem>
                                                <asp:ListItem>交友派</asp:ListItem>
                                                <asp:ListItem>打折购物</asp:ListItem>
                                                <asp:ListItem>户外旅行</asp:ListItem>
                                                <asp:ListItem>团购活动</asp:ListItem>
                                                <asp:ListItem>志愿公益</asp:ListItem>
                                                <asp:ListItem>交友派对</asp:ListItem>                                                
                                                <asp:ListItem>相亲活动</asp:ListItem>
                                                <asp:ListItem>其它活动</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>活动主题：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="title" runat="server" MaxLength="60" CssClass="inp4" Width="392"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>活动集合时间：</b>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="starttime" runat="server" MaxLength="30" CssClass="inp4" Width="154"></asp:TextBox>
                                                    </td>
                                                    <td class="tt">
                                                        <b>活动结束时间：</b>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="endtime" runat="server" MaxLength="30" CssClass="inp4" Width="154"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>消费水平：</b>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="consumption" runat="server" MaxLength="30" CssClass="inp4"></asp:TextBox>
                                                    </td>
                                                    <td>
                                                        <span style="padding-left: 5px; color: #666;">元/人</span>
                                                    </td>
                                                    <td class="tt">
                                                        <b>其它消费介绍：</b>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="consumptionother" runat="server" MaxLength="100" CssClass="inp4" Width="250"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>年龄限制：</b>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="requireage" runat="server" MaxLength="10" CssClass="inp4"></asp:TextBox>
                                                    </td>
                                                    <td class="tt">
                                                        <b>性别限制：</b>
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="requiregender" runat="server" Width="60" CssClass="sel1">
                                                            <asp:ListItem>不限</asp:ListItem>
                                                            <asp:ListItem>男</asp:ListItem>
                                                            <asp:ListItem>女</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>所在地区：</b>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="area" runat="server" MaxLength="16" CssClass="inp4"></asp:TextBox>
                                                    </td>
                                                    <td class="tt">
                                                        <b>具体地点：</b>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="place" runat="server" MaxLength="100" CssClass="inp4" Width="330"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>活动封面图片：</b>
                                        </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="inp4 self_inp4" ToolTip="jpg,jpeg,gif,bmp,png" />
                                                    </td>
                                                    <td style="padding-left: 8px">
                                                        <div id="thumbnailviewbox">
                                                            <asp:Literal ID="thumbnailview" runat="server"></asp:Literal></div>
                                                        <asp:HiddenField ID="thumbnail" runat="server" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <style type="text/css">
                                                .self_inp4
                                                {
                                                    width: 393px; *width:400px;height:20px;*height:24px;filter:-moz-opacity:0;opacity:0;font-size:12px;}
                                                #CustomArea td
                                                {
                                                    padding-top: 5px;
                                                }
                                                #CustomArea .self_custom_inp
                                                {
                                                    font-size: 12px;
                                                    padding-left: 6px;
                                                }
                                            </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 id="B1">活动描述：</b>
                                        </td>
                                        <td>                                            
                                            <FCKeditorV2:FCKeditor ID="note" runat="server" BasePath="~/s/tool/fck/" Height="400" Width="620" ToolbarSet="Edit1">
                                            </FCKeditorV2:FCKeditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b id="B2">活动要求：</b>
                                        </td>
                                        <td>                                            
                                            <FCKeditorV2:FCKeditor ID="requirement" runat="server" BasePath="~/s/tool/fck/" Height="400" Width="620" ToolbarSet="Edit1">
                                            </FCKeditorV2:FCKeditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b id="B3">注意事项：</b>
                                        </td>
                                        <td>                                            
                                            <FCKeditorV2:FCKeditor ID="matters" runat="server" BasePath="~/s/tool/fck/" Height="400" Width="620" ToolbarSet="Edit1">
                                            </FCKeditorV2:FCKeditor>
                                        </td>
                                    </tr>
                                    <tr id="retrospectTR">
                                        <td class="tt">
                                            <b>活动回顾：</b>
                                        </td>
                                        <td>                                            
                                            <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/s/tool/fck/" Height="400" Width="620" ToolbarSet="Edit1">
                                            </FCKeditorV2:FCKeditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>限制参加人数：</b>
                                            <script type="text/javascript">
                                                if(location.href.toLowerCase().indexOf("act=mod")==-1)document.getElementById("retrospectTR").className="none";
                                            </script>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="limitseveral" runat="server" MaxLength="5" CssClass="inp4"></asp:TextBox>
                                                    </td>
                                                    <td class="tt">
                                                        <b onclick="set_endtimereg()">报名截止时间：</b>
                                                    </td>
                                                    <td>
                                                        <div style="width: 300px">
                                                            <asp:TextBox ID="endtimereg" runat="server" MaxLength="30" CssClass="inp4" Style="float: left;"></asp:TextBox><div class="clear"></div>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr id="VCBOX">
                                        <td class="tt">
                                            <b>验证码：</b><%=WMcompare.IsEqual(ZK.config("switchvalidatecode1"), "0", "<script type=\"text/javascript\">document.getElementById(\"VCBOX\").style.display=\"none\";</script>", "")%>
                                        </td>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="vc" runat="server" MaxLength="4" CssClass="inp4" Width="60" onkeyup="if(this.value.length>0)check_vc();"></asp:TextBox>
                                                    </td>
                                                    <td style="padding-left: 5px; width: 300px">
                                                        <img src="/s/tool/fun/ValidateCode.aspx?type=en&len=4&height=24&str=&cookie=vc_user_party_do" title="点击刷新验证码" onclick="this.src='/s/tool/fun/ValidateCode.aspx?type=en&len=4&height=24&str=&cookie=vc_user_party_do&rd'+Math.random()" style="cursor: pointer" align="absmiddle" /><span id="msg_vc" style="margin-left: 10px"><span class="msgon">请输入验证码！</span></span>
                                                    </td>
                                                </tr>
                                            </table>

                                            <script type="text/javascript">
                                                function check_vc()
                                                {
                                                    if(document.getElementById("vc").value!="")
                                                    {
                                                        ContinueMake=0;
                                                        ajax("get","/s/tool/fun/ValidateCode.aspx?act=check&cookie=vc_user_party_do&value="+base64en(document.getElementById("vc").value)+"&msg="+encodeURI("验证码输入不正确！")+"&rd="+Math.random(),"",
                                                            function OnHandler()
                                                            {
                                                                if(xmlHttp.readyState == 4)
                                                                {
                                                                    if(xmlHttp.responseText.indexOf("验证码输入不正确！")!=-1)
                                                                        document.getElementById("msg_vc").innerHTML=xmlHttp.responseText;
                                                                    else 
                                                                        document.getElementById("msg_vc").innerHTML="";
                                                                    ContinueMake=1;
                                                                }
                                                            }
                                                        );
                                                    }
                                                }                                          
                                            </script>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Button ID="ButtonSubmit" runat="server" CssClass="but4" Text="确定发布" OnClick="ButtonSubmit_Click" OnClientClick="return check()" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>

        <script type="text/javascript" src="/skin/public/calendar/js/mootools.js"></script>

        <script type="text/javascript" src="/skin/public/calendar/js/calendar.rc4.js"></script>

        <%--<script type="text/javascript">window.addEvent('domready',function(){myCal1 = new Calendar({endtime: 'Y-m-d' }, { direction: 1, tweak: {x: 6, y: 0} });});</script>--%>

        <script type="text/javascript">window.onload=function(){myCal1 = new Calendar({endtimereg: 'Y-m-d' }, { direction: 1, tweak: {x: 6, y: 0} });}</script>

        <link rel="stylesheet" type="text/css" href="/skin/public/calendar/css/calendar.css" />
        <style type="text/css">
            button.calendar
            {
                margin-left: 4px;
                margin-top: 1px;
            }
        </style>
        </form><UC:foot ID="foot1" runat="server" /></div></body></html><script src="city.aspx"></script>

