<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.home.Movie.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" />
</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/movie.gif" align="absmiddle" />
                                <span class="bold shenlan font14 ocolor"><% if (Request.QueryString["f"] == "1"){%>随便看看：电影，视频<%}else{ %>电影，视频<%} %></span></div>
                            <div class="r">
                                <form id="form_Search" runat="server"> 
                                 <input type="text" id="moviename" class="f-text" runat="server" />
                                 <input type="button" class="f-button" value="搜索电影，视频" onclick="javascript:self.location='index.aspx?r=all&key='+escape(document.form_Search.moviename.value);" />
                                </form>
                            </div>
                            <div class="c">
                            </div>
                        </div>
                        <div class="nav-menu">
                            <ul>
                                <%if (Request.QueryString["f"] == "1")
                                  {%>
                                     <li><a href="../ram/net.aspx">随便看看</a></li>
                                     <li><a href="../ram">同城</a></li>
                                     <li><a href="../network?s=ram&f=0">同地区</a></li>
                                     <li><a href="../ram/day.aspx">日记</a></li>
                                     <li><a href="../ram/blog.aspx">日志</a></li>
                                     <li><a href="../ram/photo.aspx">相册</a></li>
                                     <li><a href="../ram/share.aspx">分享</a></li>
                                     <li><a href="../ram/group.aspx">群组</a></li>
                                     <li  class="current"><a href="../ram/vodie.aspx">电影</a></li>
                                    <li><a href="../ask/?r=all&f=1">问答</a></li>
                               <%}
                                 else
                                 { %>                                       
                                <li class="current" id="fli" runat="server"><a onclick="return postblog()" href="../movie">好友的电影</a></li>
                                <li id="myli" runat="server"><a onclick="return postblog()" href="../movie/?r=my">我的电影</a></li>
                                <li id="allli" runat="server"><a href="../movie/?r=all">所有电影</a></li>
                                <li><a href="../movie/top.aspx">排行榜</a></li>
                                <%} %>
                            </ul>
                        </div>
                    </div>
                    
                        <div class="body_sec_left">
                            <div class="movie-menu nl">

                                <div class="nl">
                                 <span id="KeyDiv" runat="server"></span>共<span id="MovieCount" runat="server"></span>个电影 
                                 <div id="showSort" runat="server"   style="padding-right:10px;">选择分类：<span id="mSort" runat="server">loading...</span></div>
                                </div>
                                <div class="nr"  style="padding-right:10px;display:none;">
                                    <a href="MovieAdd.aspx" class="shortcut-link">添加电影,视频</a>
                                </div>                            
                            </div>
                            <div class="movie-list">
                                <div class="pagination" runat="server" id="DivPage"></div>
                                <ul runat="server" id="DivResult">
                                    <asp:Repeater ID="Rpt_MovieList" runat="server">
                                        <ItemTemplate>
                                            <li>
                                            <div class="spline"></div>
                                                <div class="cpstr">
                                                    <div class="w110 nl img"><a href="<%=rooDir %>/home/movie/movie.aspx?id=<%# DataBinder.Eval(Container.DataItem, "MovieID")%>"><img style="width:96px;height:115px;" src="../../<%# DataBinder.Eval(Container.DataItem, "PosterFile")%>" alt="<%# DataBinder.Eval(Container.DataItem, "Title")%>" /></a>
                                                   </div>
                                                   <div class="nr w400">
                                                    <span class="bold font14"><a href="<%=rooDir %>/home/movie/movie.aspx?id=<%# DataBinder.Eval(Container.DataItem, "MovieID")%>"><%# DataBinder.Eval(Container.DataItem, "Title")%></a> <label class="time normal"><%# DataBinder.Eval(Container.DataItem, "CreatTime")%></label></span>
                                                    <span><%# JuSNS.Common.Input.GetSubString(JuSNS.Common.Input.LostHTML(""+DataBinder.Eval(Container.DataItem, "gut")+""), 250)%></span> 
                                                   <span class="line-none"></span> 
                                                    <span class="lineheight20" valign="bottom"><%# GetInfo(DataBinder.Eval(Container.DataItem, "MovieID"), DataBinder.Eval(Container.DataItem, "UserID"), DataBinder.Eval(Container.DataItem, "hits"), DataBinder.Eval(Container.DataItem, "comment"))%></span> 
                                                   </div> 
                                               </div>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                                <div class="pagination" runat="server" id="DivPage1"></div>
                            </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="adscss">
                            <script type="text/javascript" src="../../js/ads/body_top.js"></script>
                        </div>
                        <div class="ctitle c">您看过这些电影吗...</div>
                        <div class="movie-list-top" id="TopLooked" runat="server"></div>
                        <div class="line1"></div>
                        <div class="ctitle c">点击最多的电影...</div>
                        <div class="movie-list-top" id="Tophits" runat="server"></div>
                        <div class="line1"></div>
                        <div class="ctitle c">热门电影...</div>
                        <div class="movie-list-top" id="Topcomment" runat="server"></div>
                        
                        <div class="adscss">
                            <script type="text/javascript" src="../../js/ads/body.js"></script>
                        </div>                    
                       </div>
                       
                    </div>
                <!--底部-->
                <div class="divbottom">
                    <%=this.GetHtmlFoot()%>
                </div>
</div>
</div>
</div>

                   
</body>
</html>
<script type="text/javascript">
function getMovieURL(obj)
{
          location.href="<%=rooDir %>/home/movie/?s="+obj.value+"&r=<%=Request.QueryString["r"] %>";
}
   function postblog()
   {
        var uid='<%=GetUserID() %>';
        if(uid=="0")
        {
        alert("需要登录后才能发表日志！");return false;
        }
        else
        {
            return true;
        }
   }

</script>