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

<!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>
<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>
<!--头部-->
<%=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"><img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/ico/vote.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor" id="bName" runat="server">投票</span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                    <li class="current" 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>
                                 </ul>
                            </div>      

                     </div>
                 <div class="body_sec_all">
                 
                    <div class="content">
                        <div class="recordnumber nl">共<asp:Literal runat="server" ID="LtrNum"></asp:Literal>个投票</div> 
                        <div class="nr nav-menu-other"><a href="../vote/add.aspx" class="shortcut-link">发起新投票</a></div>
                        <div class="spline"></div>
                        <asp:Repeater ID="Rpt_newvote" runat="server">
                                <ItemTemplate>
                                    <li>
                                        <div class="body-2m-left image nl center">
                                            <a href="../../user/?r=<%# DataBinder.Eval(Container.DataItem, "UserID")%>">
                                                <img src="<%# GetHeadImage((int)DataBinder.Eval(Container.DataItem, "UserID"),1)%>" style="width:48px;" /></a>
                                            <div>
                                                
                                                <a href="../vote/?r=<%# DataBinder.Eval(Container.DataItem, "UserID")%>"><%# DataBinder.Eval(Container.DataItem, "UserName")%>的所有投票</a>
                                            </div>
                                            
                                        </div>
                                        <div class="body-2m-right image nl">
                                            <div class="nl">
                                                <div class="font14 bold">
                                                        <a href="vote.aspx?r=<%# DataBinder.Eval(Container.DataItem, "ID")%>&uID=<%# DataBinder.Eval(Container.DataItem, "UserID")%>">
                                                            <%# DataBinder.Eval(Container.DataItem, "Title")%> 
                                                        </a>
                                                        <span class="time normal"><%# JuSNS.Common.Public.getTimeEXPINSpan(Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "AddTime")))%></span>
                                               </div>
                                                <div class="content">
                                                    <%# getOption(DataBinder.Eval(Container.DataItem, "ID"), DataBinder.Eval(Container.DataItem, "Mode"))%>
                                                </div>
                                            </div> 
                                            <div class="nr">
                                            <div class="vote-act">
							                    <a style="color:#999999;" href="vote.aspx?r=<%# DataBinder.Eval(Container.DataItem, "ID")%>&uID=<%# DataBinder.Eval(Container.DataItem, "UserID")%>" class="vote-num">
							                    <strong style="color:#E36B0F;">
							                        <%# DataBinder.Eval(Container.DataItem, "JCnt")%>							
							                    </strong>票
							                    </a>
							                    <a class="vote-link" style="color:#ffffff;" href="vote.aspx?r=<%# DataBinder.Eval(Container.DataItem, "ID")%>&uID=<%# DataBinder.Eval(Container.DataItem, "UserID")%>">去投票</a>
						                    </div>
                                            </div>
                                        </div>
                                        <div class="line1 pstr"></div>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                           <div class="pagination" id="divPage" runat="server"></div> 
                    </div>
                    
                 
                 </div>
                 </div>
               <!--底部-->
                 <div class="divbottom">
                  <%=this.GetHtmlFoot()%>
                  </div>
                 
                 </div>
                 </div>
                 </div>
</body>
</html>
