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

<%@ Register Assembly="Pager" Namespace="Wuqi.Webdiyer" TagPrefix="DataPager" %>
<%@ 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" %>
<!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" />
    <asp:Literal ID="LiteralMeta" runat="server"></asp:Literal>
    <UC:meta ID="meta1" runat="server" />
    <link type="text/css" rel="stylesheet" href="/party/party_view.css" />
    <script type="text/javascript">
        function showregtr() { document.getElementById("regtr01").style.display = "";document.getElementById("regtr02").style.display = "";}
    </script>
</head>
<body>
    <form runat="server" id="form1" autocomplete="off">
    <div class="wrap"><a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <div class="box">
            <div class="c1 mt5">
                <div class="b">
                    <div class="fl"></div>
                    <div class="con"><a href="/party/">查看活动</a></div>
                    <div class="fr" style="width:200px;"><a href="/party/">查看更多活动</a></div>
                    <div class="clear"></div>
                </div>
                <div class="v">
                    <div class="party_view">
                        <div class="con2">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td class="td2">
                                        <div class="con1"><strong>
                                            <asp:Literal ID="Literal_title" runat="server"></asp:Literal></strong><asp:Literal ID="Literal_endtimereg" runat="server"></asp:Literal>
                                        </div>
                                        <table border="0" cellspacing="1" cellpadding="0">
                                            <tr>
                                                <td class="td_son1">
                                                    活动集合时间：
                                                </td>
                                                <td class="td_son2">
                                                    <asp:Literal ID="Literal_starttime" runat="server"></asp:Literal>
                                                </td>
                                                <td class="td_son1">
                                                    活动类别：
                                                </td>
                                                <td class="td_son3">
                                                    <asp:Literal ID="Literal_type" runat="server"></asp:Literal>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_son1">
                                                    活动结束时间：
                                                </td>
                                                <td class="td_son2">
                                                    <asp:Literal ID="Literal_endtime" runat="server"></asp:Literal>
                                                </td>
                                                <td class="td_son1">
                                                    <asp:Literal ID="Literal1" runat="server">已报名数</asp:Literal>：
                                                </td>
                                                <td class="td_son3">
                                                    <asp:Literal ID="Literal2" runat="server"></asp:Literal>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_son1">
                                                    消费水平：
                                                </td>
                                                <td class="td_son2">
                                                    <asp:Literal ID="Literal_consumption" runat="server"></asp:Literal>&nbsp;元/人
                                                </td>
                                                <td class="td_son1">
                                                    其它：
                                                </td>
                                                <td class="td_son3">
                                                    <asp:Literal ID="Literal_consumptionother" runat="server"></asp:Literal>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_son1">
                                                    参加年龄：
                                                </td>
                                                <td class="td_son2">
                                                    <asp:Literal ID="Literal_requireage" runat="server"></asp:Literal>
                                                </td>
                                                <td class="td_son1">
                                                    参加者性别：
                                                </td>
                                                <td class="td_son3">
                                                    <asp:Literal ID="Literal_requiregender" runat="server"></asp:Literal>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="td_son1">
                                                    所在地区：
                                                </td>
                                                <td class="td_son2">
                                                    <asp:Literal ID="Literal_area" runat="server"></asp:Literal>
                                                </td>
                                                <td class="td_son1">
                                                    具体地点：
                                                </td>
                                                <td class="td_son3">
                                                    <asp:Literal ID="Literal_place" runat="server"></asp:Literal>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td class="td1">
                                        <div>
                                            <asp:Literal ID="Literal_thumbnail" runat="server"></asp:Literal></div>
                                        <span class="block" style="padding: 12px 0 0 33px;"><a href="#party_reg"><img src="/party/party_reg_btn.gif" alt="立即报名" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /></a></span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="con3">
                            <div class="son1">
                                <div>活动描述</div>
                            </div>
                            <div class="son2">
                                <asp:Literal ID="Literal_note" runat="server"></asp:Literal></div>
                        </div>
                        <div class="con3">
                            <div class="son1">
                                <div>活动要求</div>
                            </div>
                            <div class="son2">
                                <asp:Literal ID="Literal_requirement" runat="server"></asp:Literal></div>
                        </div>
                        <div class="con3">
                            <div class="son1">
                                <div>注意事项</div>
                            </div>
                            <div class="son2">
                                <asp:Literal ID="Literal_matters" runat="server"></asp:Literal></div>
                        </div>
                        <asp:Panel ID="Panel1" runat="server">
                            <div class="con3">
                                <div class="son1">
                                    <div>活动回顾</div>
                                </div>
                                <div class="son2">
                                    <asp:Literal ID="Literal_retrospect" runat="server"></asp:Literal></div>
                            </div>
                        </asp:Panel>
                    </div>
                    <a name="party_reg" id="party_reg"></a>
                    <div class="clear"></div>
                    <div class="party_reg_box">
                        <div class="party_reg_c">
                            <div class="party_reg_b">活动报名</div>
                            <div class="party_reg_v">

                                <script type="text/javascript">
                                function party_reg_do()
                                {
                                    var _nickname=document.getElementById("nickname").value;
                                    var _phone=document.getElementById("phone").value;
                                    var _several=document.getElementById("several").value;
                                    var _age=document.getElementById("age").value;
                                    var _gender=document.getElementById("gender").value;
                                    var _profession=document.getElementById("profession").value;
                                    var _justification=document.getElementById("justification").value;
                                    
                                    if(_nickname==""){alert("昵称不能为空！");return false;}
                                    if(_phone==""){alert("手机不能为空！");return false;}
                                    if(_age==""){alert("年龄不能为空！");return false;}
                                    
                                    function SubFun(result)
                                    {
                                        if(result.indexOf("#")!=-1)
                                        {
                                            alert("当前不能报名，活动当前状态为"+result.replace("#","")+"！");
                                        }
                                        else
                                        {                                        
                                            if(result=="has")
                                            {
                                                alert("您已经报名了！");
                                            }
                                            else if(result=="nologin")
                                            {
                                                alert("请您先登录再报名！");
                                            }
                                            else if(result=="enable")
                                            {
                                                alert("活动还没有审核，不能报名！");
                                            }
                                            else if(result=="endtimereg")
                                            {
                                                alert("报名活动已截止了！");
                                            }
                                            else if(result=="sucess")
                                            {
                                                alert("恭喜您报名成功！");
                                                window.location=location.href.replace("#party_reg","");
                                            }
                                            else
                                            {
                                                alert("操作失败！");
                                            }
                                        }
                                    }
                                    var pars="nickname="+base64en(_nickname)+"&phone="+base64en(_phone)+"&several="+base64en(_several)+"&age="+base64en(_age)+"&gender="+base64en(_gender)+"&profession="+base64en(_profession)+"&justification="+base64en(_justification)+"&fid="+base64en("<%=WM.RQ("id")%>");
                                    ajax("post","view.aspx?act=ajax&type=reg",pars,function OnHandler(){if(xmlHttp.readyState == 4){SubFun(xmlHttp.responseText);}});
                                }
                                </script>

                                <table border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            昵称：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="nickname" runat="server" CssClass="inp4" MaxLength="20" onfocus="if(document.getElementById('msgon1'))document.getElementById('msgon1').style.display='';showregtr();"></asp:TextBox>
                                        </td>
                                        <td>
                                            手机：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="phone" runat="server" CssClass="inp4" MaxLength="20" onfocus="showregtr();"></asp:TextBox>
                                        </td>
                                        <td>
                                            人数：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="several" runat="server" CssClass="inp4 fl" MaxLength="5" Width="50" onfocus="showregtr();"></asp:TextBox><span class="msgon" style="background-image: none; padding-left: 5px;">人</span>
                                        </td>
                                    </tr>
                                    <tr id="regtr01" style="display:none;">
                                        <td>
                                            年龄：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="age" runat="server" CssClass="inp4" MaxLength="4"></asp:TextBox>
                                        </td>
                                        <td>
                                            性别：
                                        </td>
                                        <td>
                                            <input type="hidden" value="男" id="gender" />
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td valign="top">
                                                        <div style="padding-top: 1.5px;"><img alt="" id="genderimg1" src="/mall/skin/ico_radio_check.gif" onclick="document.getElementById('gender').value='男';document.getElementById('genderimg1').src='/mall/skin/ico_radio_check.gif';document.getElementById('genderimg2').src='/mall/skin/ico_radio.gif';" /></div>
                                                    </td>
                                                    <td style="padding-left: 0;">
                                                        男
                                                    </td>
                                                    <td width="10">
                                                        &nbsp;
                                                    </td>
                                                    <td valign="top">
                                                        <div style="padding-top: 1.5px;"><img alt="" id="genderimg2" src="/mall/skin/ico_radio.gif" onclick="document.getElementById('gender').value='女';document.getElementById('genderimg1').src='/mall/skin/ico_radio.gif';document.getElementById('genderimg2').src='/mall/skin/ico_radio_check.gif';" /></div>
                                                    </td>
                                                    <td style="padding-left: 0;">
                                                        女
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td>
                                            职业：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="profession" runat="server" CssClass="inp4" MaxLength="30"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            参加理由：
                                        </td>
                                        <td colspan="5">
                                            <asp:TextBox ID="justification" runat="server" CssClass="inp4" TextMode="MultiLine" Width="506" Height="100" Style="overflow-y: scroll; line-height: 20px" onfocus="showregtr();"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr id="regtr02" style="display:none;">
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td colspan="5">
                                            <div class="party_reg_tip1"><span style="color:#777;">注意：</span>因聚会所产生的任何直接间接或偶然性损失，本站不承担任何责任。</div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td colspan="5">
                                            <input type="button" class="but4 fl" value="我要报名" onclick="party_reg_do()" /><asp:Literal ID="LiteralNoLoginTip1" runat="server" Visible="false"><span class="msgon" style="margin-left: 10px;display:none;" id="msgon1">您必须<a href="/user/login.htm" target="_blank" style="color:#f60; margin: 0 2px;">登录</a>后才能报名参加活动！</span></asp:Literal>
                                        </td>
                                    </tr>
                                </table>
                                <div class="clear"></div>
                            </div>
                        </div>
                    </div>
                    <div class="party_reg_box" id="party_reg_box">
                        <div class="party_reg_c">
                            <div class="party_reg_b">报名名单<asp:Literal ID="Literal3" runat="server"></asp:Literal></div>
                            <div class="party_reg_v" style="padding-bottom: 3px;">
                                <div style="padding:0 15px 8px 0;"><div class="party_reg_tip2" id="party_reg_tip2">此次活动限制参加人数：<strong id="limitseveral_span"><asp:Literal ID="Literal_limitseveral" runat="server"></asp:Literal></strong>人&nbsp;&nbsp;&nbsp;&nbsp;已报名的名单数：<strong><%=WM.DoCount("party_reg","where fid="+WM.RQ("id")) %></strong>个&nbsp;&nbsp;&nbsp;&nbsp;已确认名单：<strong><%=WM.DoCount("party_reg","where enable="+WM.True+" and fid="+WM.RQ("id")) %></strong>个</div></div>

                                <script type="text/javascript">if(document.getElementById("limitseveral_span").innerHTML=="0")document.getElementById("party_reg_tip2").className="none"</script>

                                <strong style="color: #06c;">已确定名单：</strong>
                                <div class="ShowtRegers"><%=GetRegers("1")%><div class="clear"></div>
                                </div>
                                <strong style="color: #06c;">所有报名会员：</strong>
                                <div class="ShowtRegers"><%=GetRegers("0")%><div class="clear"></div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <script type="text/javascript">if(document.getElementById("party_reg_box").innerHTML.toLowerCase().indexOf("</ul>")==-1)document.getElementById("party_reg_box").className="none";</script>

                    <a name="pl" id="pl"></a>
                    <div class="party_reg_box" id="party_pl_box">
                        <div class="party_reg_c">
                            <div class="party_reg_b">网友点评</div>
                            <div class="party_reg_v" style="padding: 0;">
                                <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                                    <div class="tip_nodata" id="tip_nodata" style="background-position: 12px 12px; margin-top: 5px;">No data!&nbsp;&nbsp;还没有留言！</a></div>
                                </asp:Panel>
                                <asp:Panel ID="Panel_List" runat="server" CssClass="party_pl_list">
                                    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_OnItemDataBound">
                                        <ItemTemplate>
                                            <div class="item">
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                    <tr valign="top">
                                                        <td style="width: 86px;">
                                                            <div class="ce flow" style="width: 86px;"><a href="/space/?uid=<%#Eval("uid") %>" target="_blank"><img alt="" style="padding: 1px; border: solid 1px #ddd;" class="block wto" src="<%#ZK.m_face(Eval("uid").ToString(),"50") %>" /></a>
                                                                <div style="padding-top: 4px;"><a href="/space/?uid=<%#Eval("uid") %>" target="_blank"><%#ZK.m_u(Eval("uid").ToString()) %></a></div>
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <div style="color: #999;">发表于 <span style="font-family:Arial;"><%#WMtime.FormatDateTime(Eval("time").ToString(),"yyyy-MM-dd HH:mm")%>&nbsp;&nbsp;<%#WMip.SetIP("(",Eval("ip").ToString(),")")%></span>
                                                                <asp:Literal ID="itemenable" runat="server" Visible="false" Text='<%#Eval("enable")%>'></asp:Literal><asp:Literal ID="iid" runat="server" Visible="false" Text='<%#Eval("ID")%>'></asp:Literal><asp:Label ID="Label_floor" runat="server"></asp:Label>
                                                            </div>
                                                            <div style="font-size: 14px; line-height: 2;"><%#Eval("content") %></div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </asp:Panel>
                                <asp:Panel ID="Panel_Turn" runat="server" Visible="false">
                                    <div id="DataPager">
                                        <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                                            <tr>
                                                <td>
                                                    <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged" Style="padding-top: 0;" UrlPagingTarget="_self" PageSize="8" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页" NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn" CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp" SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false" NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn" AlwaysShow="true">
                                                    </DataPager:AspNetPager>
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="clear" style="height: 10px"></div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>

                    <script type="text/javascript">if(document.getElementById("party_pl_box").innerHTML.toLowerCase().indexOf("发表于")==-1)document.getElementById("party_pl_box").className="none";</script>

                    <div class="party_reg_box">
                        <div class="party_reg_c">
                            <div class="party_reg_b">发表点评</div>
                            <div class="party_reg_v">
                                <div style="padding: 4px 0;"><link rel="stylesheet" href="/s/tool/editor/themes/default/default.css" />
                                    <link rel="stylesheet" href="/s/tool/editor/plugins/code/prettify.css" />

                                    <script charset="utf-8" src="/s/tool/editor/kindeditor.js"></script>

                                    <script charset="utf-8" src="/s/tool/editor/lang/zh_CN.js"></script>

                                    <script charset="utf-8" src="/s/tool/editor/plugins/code/prettify.js"></script>

                                    <script>
		                        KindEditor.ready(function(K) {
			                        var editor1 = K.create('#Content1', {
				                        cssPath : '/s/tool/editor/plugins/code/prettify.css',
				                        uploadJson : '/s/tool/editor/asp.net/upload_json.ashx',
				                      
				                        fileManagerJson : '/s/tool/editor/asp.net/file_manager_json.ashx',
				                        items : [<%=EditorSource%>'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist','insertunorderedlist', '|', 'emoticons', 'image', 'link'],
				                        allowFileManager : true,
				                        resizeType : 1,
				                        afterCreate : function() {
					                        var self = this;					                   
					                        K.ctrl(self.edit.doc, 13, function() {
						                        self.sync();
						                        document.getElementById("Button1").click();
					                        });
				                        }
			                        });
			                        prettyPrint();
		                        });
                                    </script>

                                    <asp:TextBox ID="Content1" runat="server" Style="width: 653px; height: 200px; visibility: hidden;"></asp:TextBox>
                                    <div style="padding-top: 10px;">
                                        <asp:Button ID="Button1" runat="server" Text="我要点评" CssClass="but4" OnClick="Button1_Click" /></div>
                                    <asp:Literal ID="LiteralNoLoginTip2" runat="server" Visible="false"><div style="margin-top: 12px;">您必须<a href="/user/login.htm" target="_blank" style="color: Red; margin: 0 2px; font-weight: bold;">登录</a>后才能发表点评！</div></asp:Literal>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div style="color: #333; padding: 0 0 0 26px; height: 60px; margin-top: 8px; overflow: hidden;">
                        <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare" style="overflow: hidden; height: 40px; padding-top: 5px;"><a class="bds_qzone"></a><a class="bds_tsina"></a><a class="bds_tqq"></a><a class="bds_renren"></a><a class="bds_kaixin001"></a><a class="bds_tqf"></a><a class="bds_hi"></a><a class="bds_tieba"></a><a class="bds_t163"></a><a class="bds_sohu"></a><a class="bds_s51"></a><a class="bds_fx"></a><a class="shareCount"></a><span class="bds_more">更多</span></div>

                        <script type="text/javascript" id="bdshare_js" data="type=tools&amp;mini=1"></script>

                        <script type="text/javascript" id="bdshell_js"></script>

                        <script type="text/javascript">document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();</script>

                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
    </form>
</body>
</html>
