<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="vote.aspx.cs" Inherits="JuSNS.Web.home.vote.vote" %>

<!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>
<title runat="server" id="ptitle">投票</title>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<script language="javascript" type="text/javascript" src="../../js/vote.js" charset="gb2312"></script>
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/vote.css" id="Link1" type="text/css" rel="stylesheet" />
</head>
<body>
 <form id="form1" runat="server">
<!--头部-->
<%=this.GetHtmlShort()%>
<div id="divhead">
    <%=this.GetHtmlHead()%>
</div>

<div id="divbody">
    <div id="body_first">
        <div class="body_menu"> 
        <%=this.GetHtmlLeft()%>
        </div>
    </div>
    <div id="body_sec">
            <div id="body_mid"> 
                <div class="body_frame"> 
                 <!--主题内容中-->    
                
                <div class="body_frame_otherinfo">
	                        <div class="title">
                                <div class="l">
                                    <div class="nl image">
                                        <a href="../../user/?r=<%# userid %>"><img src="<%# GetHeadImage(userid, 1) %>" style="width:48px;" /></a>
                                    </div>
                                    <div class="nl padding10">
                                        <p class="font14 bold">
                                            <%# username %>的投票</p>
                                        <p><a href="../../user/?r=<%# userid %>">他的空间</a><span class="pike">|</span><a href="../vote/?r=<%# userid %>">他的投票</a></p>
                                    </div>
                                </div>
                                <div class="r">
                                <a href="javascript:window.history.back();" title="返回上一页">返回上一页</a>
                                </div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu nl" style="width:83.5%;">
                                <ul>
                                    <li id="v1" runat="server"><a href="../vote">最新投票</a></li>
                                    <li id="v2" runat="server"><a href="../vote/?r=friend">好友的投票</a></li>
                                    <li id="v3" runat="server"><a href="../vote/?r=my">我的投票</a></li>
                                    <li id="v4" runat="server"><a href="../vote/?r=myc">我参与的投票</a></li>
                                    <li id="v5" runat="server"><a href="../vote/?r=hot">热门投票</a></li>
                                    <li id="Li1" class="current" runat="server"><a href="<%=Request.Url %>">投票</a></li>
                                 </ul>
                            </div>      
                           <div class="nav-menu-other nr">
                                <ul>
                                    <li><a href="../vote/add.aspx" class="shortcut-link">发起新投票</a></li>
                                </ul>
                           </div>   
                     </div>
                 <div class="body_sec_all">
                 
                    <div class="content">
                            发起于：<asp:Literal ID="AddTime" runat="server"></asp:Literal>， <span class="blue font16 bold"><em><%# jcnt %></em></span> 人参与了投票。 <%# del %>
                    </div>
                   
                    <div class="content bold font14 center pstr">
                        <asp:Literal ID="Title" runat="server"></asp:Literal>
                    </div>
                    <%#intro %>
                    <div id="result">
                            <div class="plancon">
                            <%# option %>
                            </div>
                    </div>
                    <div class="content center">
                        <textarea id="Comm_<%# r %>" cols="50" class="f-text" rows="3" onfocus="if(this.value=='发表你的意见...'){this.value='';}"
                            onblur="if(this.value==''){this.value='发表你的意见...';}"><%#mycomm %></textarea>
                           <div class="spline"></div> 
                        <input id="Button1" type="button" class="f-button" value="开始投票" runat="server"  />
                
                    </div>
                    
                    
                    <div id="myvoteinfo" runat="server" visible="false">
                            <h2 class="votejudge">我的选择、评价</h2>
                            <div class="myjudge">
                                <div class="judgehead image">
                                    <a href="../../user/?r=<%# this.UserID %>"><img src="<%# this.GetHeadImage(this.UserID, 1) %>" style="width:48px;" /></a></div>
                                <div class="judgeinfo judgecenter">
                                    <%# answer %>
                                    <p id="answer" class="padding10">
                                        <span id="answerinput">
                                            <%# comm %>
                                            [<a href="javascript:void(0);" onclick="getvcomm(<%# r %>,'g');">修改</a>]</span>
                                    </p>
                                    <div class="righthf padding" id="showhf">
                                        <span id="htfrom_<%# pid %>"><a href="javascript:void(0);" style="float: right;" onclick="vreply(<%# r %>,<%# pid %>,'<%# this.UserID %>')">回复</a></span>
                                        <div class="spline"></div> 
                                    </div>
                                    <div class="padding10" style="margin-top: 10px; display: none;" id="hffrom_<%# pid %>"></div>
                                </div>
                                <div class="spline"></div>
                            </div>
                        </div>
                  <div class="line1"></div>       
                  <div class="body_frame_otherinfo">
                     <div class="body_sec_left">
                        <div class="left" id="lefter" runat="server" visible="false">
                            <div class="content bold font14">好友投票及评论</div>
                            <ul>
                                <asp:Repeater runat="server" ID="Rpt_friendvote">
                                    <ItemTemplate>
                                        <li>
                                            <div class="body-m-left nl image center">
                                                <a href="../../user/?r=<%# DataBinder.Eval(Container.DataItem, "UserID")%>">
                                                    <img src="<%# GetHeadImage((int)DataBinder.Eval(Container.DataItem, "UserID"),1)%>" style="width:48px;" />
                                                    <p><%# DataBinder.Eval(Container.DataItem, "UserName")%></p></a>
                                            </div>
                                            <div class="body-m-right nl">
                                                <div class="answercon">
                                                    <div id="htfrom_<%# DataBinder.Eval(Container.DataItem, "ID")%>">
                                                        <a href="javascript:void(0);" style="float: right;" onclick="vreply(<%# r %>,<%# DataBinder.Eval(Container.DataItem, "ID")%>,'<%# DataBinder.Eval(Container.DataItem, "UserID")%>')">回复<%# tempreplycnt%></a>
                                                     </div>
                                                </div>
                                                <%# getAnswer(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "VoteID")), Convert.ToInt32(DataBinder.Eval(Container.DataItem, "UserID")))%>
                                                <%# getComm(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "VoteID")), Convert.ToInt32(DataBinder.Eval(Container.DataItem, "UserID")))%>
                                                <div class="cpstr padding10" style="display: none;" id="hffrom_<%# DataBinder.Eval(Container.DataItem, "ID")%>"></div>
                                            </div>
                                            <div class="c spline"></div>
                                        </li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                            <div class="pstr bold font14">其他人...</div>
                            <ul>
                                <asp:Repeater runat="server" ID="Rpt_otherdvote">
                                    <ItemTemplate>
                                        <li>
                                          <div class="body-m-left nl image center">
                                                <a href="../../user/?r=<%# DataBinder.Eval(Container.DataItem, "UserID")%>">
                                                    <img src="<%# GetHeadImage((int)DataBinder.Eval(Container.DataItem, "UserID"),1)%>" style="width:48px;" />
                                                    <p>
                                                        <%# DataBinder.Eval(Container.DataItem, "UserName")%>
                                                    </p></a>
                                            </div>
                                            <div class="body-m-right nl">
<%--                                                <div class="answercon">
                                                    <div id="htfrom_<%# DataBinder.Eval(Container.DataItem, "ID")%>"><a href="javascript:void(0);" style="float: right;" onclick="vreply(<%# r %>,<%# DataBinder.Eval(Container.DataItem, "ID")%>,'<%#getReplyCnt(DataBinder.Eval(Container.DataItem, "VoteID"),DataBinder.Eval(Container.DataItem, "UserID"),DataBinder.Eval(Container.DataItem, "ID")) %>')">回复<%# tempreplycnt%></a></div>
                                                </div>
--%>                                                <%# getAnswer(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "VoteID")), Convert.ToInt32(DataBinder.Eval(Container.DataItem, "UserID")))%>
                                                <%# getComm(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "VoteID")), Convert.ToInt32(DataBinder.Eval(Container.DataItem, "UserID")))%>
                                                <div class="cpstr padding10" style="display: none;"  id="hffrom_<%# DataBinder.Eval(Container.DataItem, "ID")%>">
                                                </div>
                                            </div>
                                            <div class="c spline"></div>
                                        </li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                     </div>
                     
                        <!--中间分隔-->
                        <div class="line_mid">
                          <div class="line_01"></div>
                          <div class="line_02" id="midline"></div>
                          <div class="line_03"></div>
                        </div>
                        <!--中间分隔结束-->
                        
                        
                        <!--右边导航-->
                        <div class="body_sec_right">
                                <div class="content" id="righter" runat="server" visible="false">
                                    <div class="bold pstr">
                                        <%# username %>的其他投票</div>
                                    <ul>
                                        <asp:Repeater ID="Rpt_uservote" runat="server">
                                            <ItemTemplate>
                                                <li>
                                                <a href="vote.aspx?r=<%# DataBinder.Eval(Container.DataItem, "ID")%>"><%# DataBinder.Eval(Container.DataItem, "Title")%></a>
                                                <div class="time"><%# JuSNS.Common.Public.getTimeEXPINSpan(Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "AddTime")))%></div>
                                                </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                    <div class="bold pstr"> 好友最近参加的投票</div>
                                    <ul>
                                        <asp:Repeater ID="Rpt_fjoinvote" runat="server">
                                            <ItemTemplate>
                                                <li>[<%# DataBinder.Eval(Container.DataItem, "UserName")%>]<a href="vote.aspx?r=<%# DataBinder.Eval(Container.DataItem, "ID")%>"><%# DataBinder.Eval(Container.DataItem, "Title")%></a>
                                                    </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                </div>                            
                        </div>
                        <!--右边导航结束-->
                         <div class="c"></div>                 
                 
                 
                 </div>
                 
                 </div>
                 </div>
               <!--底部-->
                 <div class="divbottom">
                  <%=this.GetHtmlFoot()%>
                  </div>
                 
                 </div>
                 </div>
                 </div></form>
</body>
</html>