<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.home.ask.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 id="ptitle" runat="server"> 问题</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/<% =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/<%=JuSNS.Config.UiConfig.SkinStyle %>/images/site/ask.gif" align="absmiddle" /> <span class="bold shenlan font14 ocolor" runat="server" id="askTitle">问题</span></div>
                                    <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></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><a href="../ram/vodie.aspx">电影</a></li>
                                    <li class="current"><a href="../ask/?r=all&f=1">问答</a></li>
                               <%}
                                 else
                                 { %>                                       
                                    <li class="current" id="li_none" runat="server"><a href="../ask">朋友的问题</a></li>
                                     <li  id="li_my" runat="server"><a href="../ask/?r=my">我的问题</a></li>
                                     <li  id="li_all" runat="server"><a href="../ask/?r=all">所有问题</a></li>
                                     <li  id="li_isclose" runat="server"><a href="../ask/?r=isclose">已经解决的问题</a></li>
                                     <li  id="li_unclose" runat="server"><a href="../ask/?r=unclose">待解决的问题</a></li>
                                     <li  id="li_ji" runat="server"><a href="../ask/?r=ji">紧急问题</a></li>
                                    <%} %> 
                                     </ul>
                                </div>        
                         </div>
                       <div runat="server" id="DivMsg" class="msg-succ" visible="false"></div>
                       <div runat="server" id="DivMsg1" class="msg-error" visible="false"></div>
                        <div class="body_sec_left">
                             <div class="content">
                                <form id="form1" action="" onsubmit="return false">
                                    <span class="nl">共<asp:Literal runat="server" ID="LtrNum"></asp:Literal>个问题 <input id="keyw" value="<%=Request.QueryString["key"] %>" type="text" class="f-text"  /> <input type="button" value="搜索问题" class="f-button" id="bbt" onclick="searchask();" /></span><span class="nr whshow"> <a onclick="return postblog();" href="add.aspx" class="shortcut-link">我要提问</a> &nbsp; </span>
                                </form>
                             </div>
                           <script type="text/javascript">
                            function searchask()
                           {
                                var kv=document.getElementById("keyw").value;
                                if(kv.length<2)
                                {
                                    alert("请填写关键字。关键字长度不小于2个字符")
                                }
                                else
                                {
                                    window.location.href="index.aspx?r=all&key="+escape(kv)+"";
                                }
                           } 
                           function showUNHTML(n)
                           {
                                if(n==0)
                                {
                                    document.getElementById("uncloseHTML").style.display="block";
                                    document.getElementById("hiJiFenHTML").style.display="none";
                                    document.getElementById("ss1").className="reshow"
                                    document.getElementById("ss2").className=""
                                }
                                else
                                {
                                    document.getElementById("uncloseHTML").style.display="none";
                                    document.getElementById("hiJiFenHTML").style.display="block";
                                    document.getElementById("ss1").className=""
                                    document.getElementById("ss2").className="reshow"
                                }
                           }
                           </script>
                        <!--正文开始-->
                        <div class="line1 s96"></div>
                        <div class="content nl">
                                 <div class="askchild" runat="server" id="askctop"><ul runat="server" id="ChildClassList"></ul></div>
                                 
                                <div id="xinzhiDiv" runat="server" visible="false">
                                <div class="hdtitle-index" style="width:510px;"><span id="ss1" class="reshow"><a href="javascript:void(0);" onclick="showUNHTML(0)">待解决问题</a></span> &nbsp; <span  id="ss2"><a  onclick="showUNHTML(1)" href="javascript:void(0);">高分悬赏问题</a></span></div>
                                <div class="asklist">
                                <ul runat="server" id="uncloseHTML"></ul>
                                <ul runat="server" id="hiJiFenHTML" style="display:none;"></ul>
                                <div class="spline"></div>
                                </div>
                                </div>
                                
                                
                                
                                <div class="spline"></div>
                                <div class="hdtitle-index bold" style="width:510px;">问题列表</div>
                               <asp:Repeater ID="ContentList" runat="server">
                                <HeaderTemplate>
                                       <div class="asklist">
                                        <ul>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# DataBinder.Eval(Container.DataItem, "d") %>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                      </ul>
                                     </div> 
                                </FooterTemplate>
                             </asp:Repeater>
                             
                            <!--分页开始-->
                            <div class="pagination" runat="server" id="DivPage"></div> 
                           <div class="spline"></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="content" id="askClass" runat="server" >
                            </div>
			               
                            <div class="adscss">
                                <script type="text/javascript" src="../../js/ads/body.js"></script>
                            </div>
                        </div>
                        <!--右边导航结束-->
                         <div class="c"></div>
               </div>
               <!--底部-->
                 <div class="divbottom">
                  <%=this.GetHtmlFoot()%>
                  </div>
           </div>
   </div>
</div>
</body>
</html>
<script type="text/javascript">
   function postblog()
   {
        var uid='<%=GetUserID() %>';
        if(uid=="0")
        {
        alert("需要登录后才能发表日志！");return false;
        }
        else
        {
            return true;
        }
   }
   
    function unlogin()
   {
        alert("需要登录后才能查看！");
   } 
   function delask()
   {
      if(window.confirm("确定要删除吗?"))
       {
            return true; 
       } 
      else
      {
         return false;
      } 
   }
</script>

