<%@ Page Language="C#" Inherits="TopWinCMS.BLL.PageFactory.Pages.AskShow" EnableSessionState="false"
    EnableViewState="false" %>
<%@ Import Namespace="TopWinCMS.BLL.PageFactory" %>
<!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>[PageTitle]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="{StylePath}/Base.css" rel="stylesheet" type="text/css" media="all" /> 
    <style type="text/css">
 
        .TitleBG {
	font-weight: bold;
	background-image: url({StylePath}/Images/bg_Head_Nav.gif);
	line-height: 28px;
	color: #FFFFFF;
	text-align: center;
}
    </style>
    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/AJAX.js"></script>
    
    <script language="javascript" type="text/javascript" src="{SysPath}/JS/TopWinCMS.js"></script> 

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/MemberLoginBar.js"></script>

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/ShowAskHits.js"></script>

    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/Digo.js"></script>
    
    <script language="javascript" type="text/javascript" src="{SysPath}/JS/Ajax/Ask.js"></script>


    <script language="javascript" type="text/javascript">
 
      	var ModelID ="@ModelID@";
      	var AskID = "@AskID@";
       	var ContentID = "@AskID@";     	
	</script>

</head>
<body>
    <!--#include file="../Header.aspx"-->

    <script language="javascript" type="text/javascript">
    Show_Tab(5);
    </script>

    <div class="wherePath">
        <img src='{StylePath}/Images/arrow.gif'>
        您现在的位置： {Path} → ［正文］</div>
    <div style="height: 4px">
        &nbsp;</div>
    <div class="mainDiv" align="center">
        <div class="Left">
            <!--#include file="../LoginPanel.inc"-->
      <div class="divPanel_title">
                <div class="left">
                    &nbsp;</div>
                <div class="middle">
                    热 门 文 章</div>
                <div class="right">
                    &nbsp;</div>
            </div>
            <div class="divPanel_Content">
                <div class="divPanel">
                    <ul>
                        <TW:hotAsk rows="10" length="32">
            <ItemTemplet>
              <li><a href="@StaticURL@" title="@ContentTitle@">@ShortTitle@</a></li>
            </ItemTemplet>
            <EmptyTemplet>没有文章</EmptyTemplet>
          </TW:hotAsk>
                    </ul>
                </div>
            </div>
            <div class="divPanel_title">
                <div class="left">
                    &nbsp;</div>
                <div class="middle">
                    相 关 内 容</div>
                <div class="right">
                    &nbsp;</div>
            </div>
            <div class="divPanel_Content">
                <div class="divPanel">
                    <ul>
                        <TW:XGContent rows="10" length="32" key="@Key@" modelid="@ModelID@">
            <ItemTemplet>
              <li><a href="@StaticURL@" title="@ContentTitle@">@ShortTitle@</a></li>
            </ItemTemplet>
            <EmptyTemplet>没有问题</EmptyTemplet>
          </TW:XGContent>
                    </ul>
                </div>
            </div>
            
                   <div class="divPanel_title">
          <div class="left">&nbsp;</div>
          <div class="middle">Tags(标签)</div>
          <div class="right">&nbsp;</div>
      </div>
      <div class="divPanel_Content">
          <div class="divPanel">
              <ul>
                <TW:ContentTags>
         <ItemTemplet>
        <li><a href="{SysPath}/Tags/TagsList.aspx?ModelID=@ModelID@&ID=@ID@">@TagName@</a></li>
          </ItemTemplet>
        </TW:ContentTags>
              </ul>
          </div>
      </div>
            
        </div>
     <div class="Right">
            <div class="AskInfo">
             <TW:Context>
                 <div style="width:auto; margin-bottom:10px;clear:both;">
      <div style="float:left;width:8px; height:28px; background-image:url({StylePath}/Images/bg_Head_Nav.gif)">&nbsp;</div>    
      <div style="float:left;width:202px; " class="TitleBG">提问</div>
      <div style="float:left;width:505px; height:28px; background-image:url({StylePath}/Images/index_p_16.gif)">&nbsp;</div>
      <div style="border: 1px solid #CCCCCC;margin: 0px;padding: 2px; height:120px;clear:both;">
               <ItemTemplet>
                <div style="height: 30px; text-align:center; font-weight:bold; font-size:26px">@Title@
                </div>
                <div style="text-align: right;">
                    ［&nbsp;&nbsp;&nbsp;&nbsp;点击数：<font color="#0066FF"><span
                        id="hist">数据正在加载...</span></font> &nbsp;&nbsp;&nbsp;&nbsp;字体:【<a href="javascript:doZoom(16)">大</a> <a href="javascript:doZoom(14)">
                        中</a> <a href="javascript:doZoom(12)">小</a>】&nbsp;&nbsp;&nbsp; 更新时间：@UpdateTime@］</div>
               
                <div style="margin-bottom:10px">
                    @Content@</div>
             </ItemTemplet>
      </div>
    </div>  
    </TW:Context>
    
    <TW:Answers Accept="True">
                 <div style="width:auto; margin-bottom:10px;clear:both;">
      <div style="float:left;width:8px; height:28px; background-image:url({StylePath}/Images/bg_Head_Nav.gif)">&nbsp;</div>    
      <div style="float:left;width:202px; " class="TitleBG">被采纳答案</div>
      <div style="float:left;width:505px; height:28px; background-image:url({StylePath}/Images/index_p_16.gif)">&nbsp;</div>
      <div style="border: 1px solid #CCCCCC;margin: 0px;padding: 2px; height:auto;clear:both;">
               <ItemTemplet>
                <div style="text-align: left;">
                @Content@
                </div>
                <div style="text-align:right;">
                 回答者：@UserName@  @UpdateTime@
                </div> 
                <div style="height: 20px; background-image: url({SysPath}/Images/bg_dot.gif)">
                </div>
             </ItemTemplet>
      </div>
    </div>  
    </TW:Answers>
    
                <div class="Digo" id="vote_content">
                    <div class="ampReview" onclick="Post_Digo(@ModelID@,@AskID@,'Good');">
                        <span id="goodnum" style="font: 24px;color: #c00">0</span>
                        <br>
                        票<br>
                        顶一下 
                    </div>
                    <div class="ampReview" style="margin-left: 0px" onclick="Post_Digo(@ModelID@,@AskID@,'Bad');">
                        <span id="badnum" style="font: 24px;color: #090">0</span>
                        <br>
                        票<br>
                         踩一下 
                    </div>
                </div>
                <script language="javascript" type="text/javascript">GetDigo();</script>

                <TW:Answers Accept="False">
                 <div style="width:auto; margin-bottom:10px;clear:both;">
      <div style="float:left;width:8px; height:28px; background-image:url({StylePath}/Images/bg_Head_Nav.gif)">&nbsp;</div>    
      <div style="float:left;width:202px; " class="TitleBG">最新回复</div>
      <div style="float:left;width:505px; height:28px; background-image:url({StylePath}/Images/index_p_16.gif)">&nbsp;</div>
      <div style="border: 1px solid #CCCCCC;margin: 0px;padding: 2px; height:auto;clear:both;">
               <ItemTemplet>
                <div style="text-align: left;">
                @Content@
                </div>
                <div style="text-align:right;">
                 回答者：@UserName@　@UpdateTime@　<input type="button" class="btn" id="BT_CaiNai_@ID@" value="采纳" onclick="CaiNai(@ID@);" />
                </div> 
                <div style="height: 20px; background-image: url({SysPath}/Images/bg_dot.gif)">
                </div>
             </ItemTemplet>
      </div>
    </div>  
    </TW:Answers>
    
     <div style="height:auto; margin-top:8px">
                 <fieldset>
                <legend>回答</legend> 我来回答：<textarea id="TA_Answer"
                    cols="50" rows="5"></textarea>
                    
                   <br/> <input id="TB_AnswerOK" type="button" class="btn" onclick="PostAnswer();" value="提交" />
                </fieldset>
              
                  </div>
                  
                <div style="height: 20px; background-image: url({SysPath}/Images/bg_dot.gif)">
                </div>
                <div style="height:36px">
                    <div style="float: left">
                        上一篇:@UP@<br />
                        下一篇:@Down@</div>
                    <div style="float: right; text-align: right">
                        <a href="javascript:window.print()">
                            <img height="20" src="{SysPath}/Images/print.gif" width="20" style="vertical-align: middle"
                                alt="" />
                            打印本页</a> <a href="javascript:window.close()">
                                <img height="20" src="{SysPath}/Images/pageclose.gif" width="20" style="vertical-align: middle"
                                    alt="" />
                                关闭窗口</a></div>
                </div> 
            </div> 
            <br />
         
        </div>
    </div>
    <div style="height: 4px">
        &nbsp;</div>
    <!--#include file="../Footer.aspx"-->
    
</body>
</html>