<%file _header.htm%>
    <script src="inc/kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script src="scripts/public.js" type="text/javascript"></script>
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
  <p class="askpath">{askpath}</p> 
  <div class="asklist askcont clearfix">
    <div class="left clearfix">

    <div class="askc">
        <div class="tit"><em class="ps"></em><em class="bt">问题</em><em class="cm"></em></div>
        <div class="cont">
         <div class="br clearfix">
         <div class="l">
          <img src="uploads/?{askinfo.userpicid},50,50.jpg" width="50" height="50"/>
          <br />
          <%if askinfo.isnm%>
          匿名
          <%else%>
          <a href="usercenter/?{askinfo.userid}.html" target="_blank">{askinfo.username}</a>
          <%/if%>
          <br />
          [{askinfo.rankname}]
         </div>
         <div class="r">
            <h1 class="s{askinfo.state}">{askinfo.title}</h1>
            <p class="info">浏览数：{askinfo.hits} 提问时间：{askinfo.addtime}<em class="money">{askinfo.xsf}</em></p>
            <p class="tagtis">标签：
    <%loop (TagInfo) tag TagList%>
    <a href="tags-{tag.id}.html">{tag.tagname}</a> 
    <%/loop%>
            </p>
             <div id="ckepop" class="clearfix">
             <a href="#" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank">分享到：</a>
             <a class="jiathis_button_tools_1"></a>
             <a class="jiathis_button_tools_2"></a>
             <a class="jiathis_button_tools_3"></a>
             <a class="jiathis_button_tools_4"></a>
             </div>
            <div class="content">
            {askinfo.content}
            <%if askinfo.added!=""%>
            <p>问题补充：</p>
            <div>{askinfo.added}</div>
            <%/if%>
            </div>
            <%if askinfo.state<4%>
            <%if askinfo.userid==userid%>
            <p class="clearfix"><a class="asktg" href="javascript:askcom('ask_askcom.html?act=tgxs&askid={askinfo.id}')">提高悬赏分</a><a class="asksy" href="javascript:askcom('ask_askcom.html?act=wmy&askid={askinfo.id}')">无满意答案</a><a class="bctw" href="javascript:askcom('ask_askcom.html?act=added&askid={askinfo.id}')">我要补充提问</a></p>
            <%else%>
            <p class="fd"><a class="ans" href="#content">我来回答</a><em>离问题结束还有{endtime}</em></p>
            <%/if%>
            <%/if%>
         </div>
         </div>
        </div>
    </div>
    <%if bestans!=null%>
    <div class="askc best">
        <div class="tit"><em class="ps"></em><em class="bt">最佳回答</em><em class="sm">并不代表本站观点</em><em class="cm"></em></div>
        <div class="cont">
        <div class="br clearfix">
         <div class="l">
          <img src="uploads/?{bestans.userpicid},50,50.jpg" width="50" height="50"/>
          <br />
          <%if bestans.isnm%>
          匿名
          <%else%>
          <a href="usercenter/?{bestans.userid}.html" target="_blank">{bestans.username}</a>
          <%/if%>
          <br />
          [{bestans.rankname}]
         </div>
         <div class="r">
            <div class="content">
            {bestans.content}
            </div>
            <p class="fd">回答时间：{bestans.addtime}</p>
         </div>
         </div>
        </div>
    </div>
    <%/if%>
    <div class="askc ansli">
        <div class="tit"><em class="ps"></em><em class="bt">回答</em><em class="cm"></em></div>
        <div class="cont">
        <%if askContent.Count>0%>
        <%loop (AskcontentInfo) ans askContent%>
        <div class="br clearfix">
         <div class="l">
          <img src="uploads/?{ans.userpicid},50,50.jpg" width="50" height="50"/>
          <br />
          <%if ans.isnm%>
          匿名
          <%else%>
          <a href="usercenter/?{ans.userid}.html" target="_blank">{ans.username}</a>
          <%/if%>
          <br />
          [{ans.rankname}]
         </div>
         <div class="r">
            <div class="content">
            {ans.content}
            </div>
            <p class="fd">回答时间：{ans.addtime}</p>
            <%if askinfo.state<4 && askinfo.userid==userid%>
            <p class="clearfix"><a class="askcn" href="javascript:askcom('ask_askcom.html?act=cn&askid={askinfo.id}&ansid={ans.id}')">采纳为最佳</a></p>
            <%/if%>
         </div>
         </div>
        <%/loop%>
        <%else%>
        暂无其他回答…
        <%/if%>
        </div>
    </div>
    <%if showansbox%>
    <script type="text/javascript">
    EditorInit('postform', 'content', callCount);
        $(function () {
            $("#postform").submit(function () {
                if ($("#postsubmit").attr("disabled")== true) {
                    return false;
                }
                $("#postsubmit").attr("disabled", "disabled");

                var flag = true;
                if ($("#contentnum").html() == "0") {
                    $("#content_tip").html("请填写回答内容！");
                    $("#postsubmit").attr("disabled", "");
                    flag = false;
                }
                else {
                    $("#content_tip").html("");
                }
                return flag;
            });
        });
    </script>
    <div class="box">
        <p class="ts"><em>我来回答</em></p>
        <div class="ansbox">
         <form action="" method="post" name="postform" id="postform" target="postdata">
          <div class="cs">
            <p><a href="javascript:showUpload('content',0,1)">选择图片插入编辑器</a></p>
            <p><textarea name="content" rows="12" id="content" style="width:580px"></textarea></p>
            <p class="tips"><span id="content_tip"></span></p>
            <p class="zs">已经输入<span id="contentnum">0</span>字</p>
            <p>匿名回答：<input name="isnm" id="isnm" type="checkbox" value="1" /> 匿名回答将扣除{postnm}分</p>
        <%if userid==0%>
        <center>请先<a href="login.htm">登录</a>再提交回答</center>
        <%else%>
            <p class="submitbox"><input class="postsub" id="postsubmit" type="submit" value="提交回答" /> [Ctrl+Enter 快速发布]</p>
        <%/if%>
         </div>
         </form><iframe name="postdata" style="display:none;"></iframe>
         
        </div>
    </div>
    <%/if%>
    <div class="box">
        <p class="ts"><em>相关问题</em></p>
        <ul>
        <%if askRele.Count==0%>
        <li>还没有相关问题…</li>
        <%else%>
        <%loop (AskInfo) ask askRele%>
                <li><a href="ask_ask-{ask.id}.html">{ask.title}</a><em><%datetostr(ask.addtime,"MM-dd")%></em></li>
        <%/loop%>
        <%/if%>
        </ul>
    </div>
    </div>
    <div class="right">
      <div class="rc">
        <p>我可以做什么</p>
        <dl>
        <dt>提出问题</dt>
        <dd>世界总有你未知的东西需要你来提出问题，我们就是要给你一个方便的提问平台。</dd>
        <dt>分享知道的东西</dt>
        <dd>回答提问者的提问，可以简单或详尽的解答，提问者和系统会对你的贡献作出一个合理的积分回报。</dd>
        <dt>评价和体验</dt>
        <dd>评价他人的提问和回答，不仅仅可以维护一个好的问答环境，也有助于提高你自己的学习和辨别能力。</dd>
        </dl>
        <div class="askpost"><a href="ask_post.html">提交问题</a></div>
      </div>
    </div>
  </div>
<%file _footer.htm%>