<%= stylesheet_link_tag 'viewthread' %>
<ul class="popupmenu_popup headermenu_popup inlinelist" id="modopt_menu" style="width: 180px; display: none"><li class="wide"><a href="javascript:;" onclick="modthreads(3, 'delete')">删除主题</a></li><li class="wide"><a href="javascript:;" onclick="modthreads(3, 'down')">提升下沉</a></li><li class="wide"><a href="javascript:;" onclick="modthreads(1, 'stick')">主题置顶</a></li><li class="wide"><a href="javascript:;" onclick="modthreads(1, 'highlight')">高亮显示</a></li><li class="wide"><a href="javascript:;" onclick="modthreads(1, 'digest')">设置精华</a></li><li class="wide"><a href="javascript:;" onclick="modaction('stamp')">主题鉴定</a></li><li class="wide"><a href="javascript:;" onclick="modthreads(4)">关闭打开</a></li><li class="wide"><a href="javascript:;" onclick="modthreads(2, 'move')">移动主题</a></li><li class="wide"><a href="javascript:;" onclick="modthreads(2, 'type')">主题分类</a></li><li class="wide"><a href="javascript:;" onclick="modaction('copy')">复制主题</a></li><li class="wide"><a href="javascript:;" onclick="modaction('merge')">合并主题</a></li><li class="wide"><a href="javascript:;" onclick="modaction('split')">分割主题</a></li><li class="wide"><a href="javascript:;" onclick="modaction('repair')">修复主题</a></li><li class="wide"><a href="plugin.php?id=dps_postawards:postawards&amp;tid=29727" onclick="showWindow('paward', this.href);return false;">楼层奖惩</a></li></ul>
<div id="modlayer" style="display:none;position:position;width:165px;">
  <span>选中</span><strong id="modcount"></strong><span>篇: </span>
  <a href="javascript:;" onclick="modaction('warn')">警告</a>
  <a href="javascript:;" onclick="modaction('banpost')">屏蔽</a>
  <a href="javascript:;" onclick="modaction('delpost')">删除</a>
</div>

<div id="wrap" class="wrap s_clear threadfix">
  <div class="forumcontrol">
    <table cellspacing="0" cellpadding="0">
      <tbody><tr>
          <td class="modaction">
            <span id="modopt" onclick="$('modopt').id = 'modopttmp';this.id = 'modopt';showMenu({'ctrlid':this.id})" class="dropmenu">主题管理</span>
          </td>
          <td>
            <span class="pageback" id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"><a href="forumdisplay.php?fid=2&amp;page=1">返回列表</a></span>
            <span class="replybtn" id="post_reply" prompt="post_reply"><%= link_to t('topic.reply'), new_post_path(:topic_id => @topic.id) %></span>
            <span class="postbtn" id="newspecial" prompt="post_newthread"><%= link_to t('topic.new'), new_topic_path(:board_id => @topic.board.id) %></span>
          </td>
        </tr>
      </tbody></table>
  </div>

  <ul class="popupmenu_popup postmenu" id="newspecial_menu" style="display: none">
    <li><a href="post.php?action=newthread&amp;fid=2" onclick="showWindow('newthread', this.href);doane(event)">发新话题</a></li><li class="poll"><a href="post.php?action=newthread&amp;fid=2&amp;special=1">发布投票</a></li><li class="reward"><a href="post.php?action=newthread&amp;fid=2&amp;special=3">发布悬赏</a></li><li class="debate"><a href="post.php?action=newthread&amp;fid=2&amp;special=5">发布辩论</a></li><li class="activity"><a href="post.php?action=newthread&amp;fid=2&amp;special=4">发布活动</a></li><li class="trade"><a href="post.php?action=newthread&amp;fid=2&amp;special=2">发布商品</a></li></ul>

  <div id="postlist" class="mainbox viewthread">
    <%= render @topic.posts %>
  </div>

  <div id="postlistreply" class="mainbox viewthread"><div id="post_new" class="viewthread_table" style="display: none"></div></div>

  <form method="post" name="modactions" id="modactions">
    <input type="hidden" name="formhash" value="ba0236f6">
    <input type="hidden" name="optgroup">
    <input type="hidden" name="operation">
    <input type="hidden" name="listextra" value="page%3D1">
    </form>

    <script type="text/javascript">var tagarray = ['论坛','东方','时间','游戏','沙包','少女','DotA','日本','地图','漫画','新闻','动画','大小姐','名字','兔子','朋友','动漫','中国','故事','电脑','音乐','神马','小说','速度','人物','小姐','人偶','天子','图片','角色','宠物','大丈夫','幻想','主题','头像','手机','魔兽','DOTS','东方幻想','新人','THD','下载地址','妹妹','老师','河童','攻击力','心情','世界','BUG','个人','hello','上海','笨蛋','爱丽丝','历史','主人公','连载','平衡','百合','漫画家','美少女','攻略','技能','单行本','强力','在线','三次元','姐姐','同人','打酱油','空间','主题曲','视频','歌曲','地方','动画制作','天气','胜利','东方系列','表情','我不知道','机器人','软件','秋叶原','师傅','电影','女性','生日快乐','爱好者','教学','官方网站','TouHou','资源','对战','玩游戏','萝莉','网通','蓬莱','人生','中文'];var tagencarray = ['%C2%DB%CC%B3','%B6%AB%B7%BD','%CA%B1%BC%E4','%D3%CE%CF%B7','%C9%B3%B0%FC','%C9%D9%C5%AE','DotA','%C8%D5%B1%BE','%B5%D8%CD%BC','%C2%FE%BB%AD','%D0%C2%CE%C5','%B6%AF%BB%AD','%B4%F3%D0%A1%BD%E3','%C3%FB%D7%D6','%CD%C3%D7%D3','%C5%F3%D3%D1','%B6%AF%C2%FE','%D6%D0%B9%FA','%B9%CA%CA%C2','%B5%E7%C4%D4','%D2%F4%C0%D6','%C9%F1%C2%ED','%D0%A1%CB%B5','%CB%D9%B6%C8','%C8%CB%CE%EF','%D0%A1%BD%E3','%C8%CB%C5%BC','%CC%EC%D7%D3','%CD%BC%C6%AC','%BD%C7%C9%AB','%B3%E8%CE%EF','%B4%F3%D5%C9%B7%F2','%BB%C3%CF%EB','%D6%F7%CC%E2','%CD%B7%CF%F1','%CA%D6%BB%FA','%C4%A7%CA%DE','DOTS','%B6%AB%B7%BD%BB%C3%CF%EB','%D0%C2%C8%CB','THD','%CF%C2%D4%D8%B5%D8%D6%B7','%C3%C3%C3%C3','%C0%CF%CA%A6','%BA%D3%CD%AF','%B9%A5%BB%F7%C1%A6','%D0%C4%C7%E9','%CA%C0%BD%E7','BUG','%B8%F6%C8%CB','hello','%C9%CF%BA%A3','%B1%BF%B5%B0','%B0%AE%C0%F6%CB%BF','%C0%FA%CA%B7','%D6%F7%C8%CB%B9%AB','%C1%AC%D4%D8','%C6%BD%BA%E2','%B0%D9%BA%CF','%C2%FE%BB%AD%BC%D2','%C3%C0%C9%D9%C5%AE','%B9%A5%C2%D4','%BC%BC%C4%DC','%B5%A5%D0%D0%B1%BE','%C7%BF%C1%A6','%D4%DA%CF%DF','%C8%FD%B4%CE%D4%AA','%BD%E3%BD%E3','%CD%AC%C8%CB','%B4%F2%BD%B4%D3%CD','%BF%D5%BC%E4','%D6%F7%CC%E2%C7%FA','%CA%D3%C6%B5','%B8%E8%C7%FA','%B5%D8%B7%BD','%B6%AF%BB%AD%D6%C6%D7%F7','%CC%EC%C6%F8','%CA%A4%C0%FB','%B6%AB%B7%BD%CF%B5%C1%D0','%B1%ED%C7%E9','%CE%D2%B2%BB%D6%AA%B5%C0','%BB%FA%C6%F7%C8%CB','%C8%ED%BC%FE','%C7%EF%D2%B6%D4%AD','%CA%A6%B8%B5','%B5%E7%D3%B0','%C5%AE%D0%D4','%C9%FA%C8%D5%BF%EC%C0%D6','%B0%AE%BA%C3%D5%DF','%BD%CC%D1%A7','%B9%D9%B7%BD%CD%F8%D5%BE','TouHou','%D7%CA%D4%B4','%B6%D4%D5%BD','%CD%E6%D3%CE%CF%B7','%C2%DC%C0%F2','%CD%F8%CD%A8','%C5%EE%C0%B3','%C8%CB%C9%FA','%D6%D0%CE%C4'];parsetag(751906);</script>
    <div class="forumcontrol s_clear">
      <table cellspacing="0" cellpadding="0" class="narrow">
        <tbody><tr>
            <td class="modaction">
              <span id="modopttmp" onclick="$('modopt').id = 'modopttmp';this.id = 'modopt';showMenu({'ctrlid':this.id})" class="dropmenu">主题管理</span>
            </td>
            <td><%= @topic.floor %>#:
              <span class="pageback" id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu({'ctrlid':this.id})"><a href="forumdisplay.php?fid=2&amp;page=1">返回列表</a></span>
            </td>
          </tr>
        </tbody></table>
    </div>


    <script type="text/javascript">
      var postminchars = parseInt('10');
      var postmaxchars = parseInt('102400');
      var disablepostctrl = parseInt('0');
    </script>

    <div id="f_post" class="mainbox viewthread">
      <%= form_tag :controller => :posts do %>
        <table cellspacing="0" cellpadding="0">
          <tbody><tr>
              <td class="postauthor">
                <div class="avatar"><%= image_tag @current_user.avatar.url(:middle) %></td>
              <td class="postcontent">
                <!--<input type="hidden" name="formhash" value="ba0236f6">
                <input type="hidden" name="subject" value="">
                <input type="hidden" name="usesig" value="0">-->

                <span id="fastpostreturn">
                  <%= render 'topics/editor_lite' %></span>
                <p><%= submit_tag t("topic.reply"), :id => :replysubmit, :tabindex => 5 %>
                  <input id="fastpostrefresh" type="checkbox"> <label for="fastpostrefresh">回帖后跳转到最后一页</label></p><script type="text/javascript">if(getcookie('discuz_fastpostrefresh') == 1) {$('fastpostrefresh').checked=true;}</script>
                <p></p>
              </td>
            </tr>
          </tbody></table>
        <%= hidden_field_tag 'post[topic_id]', @topic.id%>
      <% end %>
    </div>
    <div id="authornewfeed_menu" style="display:none"></div><script type="text/javascript" src="http://www.touhou.cc/blog/api/discuz.php?pagetype=viewthread&amp;status=3&amp;uid=359&amp;infosidestatus=0&amp;feedpostnum=14&amp;updateuid=14806&amp;pid=751906&amp;plugin=1"></script><script language="javascript">
      $("modopt_menu").innerHTML+="<li class=\"wide\"><a href=\"plugin.php?id=dps_postawards:postawards&tid=29727\" onclick=\"showWindow('paward', this.href);return false;\">楼层奖惩</a></li>";
    </script>
    <ul class="popupmenu_popup" id="visitedforums_menu" style="display: none">
      <li><a href="forumdisplay.php?fid=70&amp;sid=FrmND8">悬赏求物</a></li><li><a href="forumdisplay.php?fid=104&amp;sid=FrmND8">精美图库</a></li><li><a href="forumdisplay.php?fid=22&amp;sid=FrmND8">内务讨论</a></li><li><a href="forumdisplay.php?fid=76&amp;sid=FrmND8">幻想乡大温泉</a></li><li><a href="forumdisplay.php?fid=91&amp;sid=FrmND8">制作专区</a></li><li><a href="forumdisplay.php?fid=48&amp;sid=FrmND8">文文最速新闻</a></li><li><a href="forumdisplay.php?fid=32&amp;sid=FrmND8">资源发布</a></li></ul>

    <div id="favoritewin" style="display: none">
      <h5>
        <a href="javascript:;" onclick="ajaxget('my.php?item=favorites&amp;tid=29727', 'favorite_msg');return false;" class="lightlink">[收藏此主题]</a>&nbsp;
        <a href="javascript:;" onclick="ajaxget('my.php?item=attention&amp;action=add&amp;tid=29727', 'favorite_msg');return false;" class="lightlink">[关注此主题的新回复]</a>
      </h5>
      <span id="favorite_msg"></span>
    </div>

    <div id="sharewin" style="display: none">
      <h5>
        <a href="javascript:;" onclick="setCopy('蕾蒂+毒人 怎么破\nhttp://www.touhou.cc/bbs/viewthread.php?tid=29727&amp;fromuid=359', '帖子地址已经复制到剪贴板&lt;br /&gt;您可以用快捷键 Ctrl + V 粘贴到 QQ、MSN 里。')" class="lightlink">[通过 QQ、MSN 分享给朋友]</a><br><br>
        <a href="javascript:;" class="lightlink" onclick="hideWindow('confirm');showWindow('sendpm', 'pm.php?action=new&amp;operation=share&amp;tid=29727');">[通过站内短消息分享给朋友]</a>
        </h5>
        </div>

        <div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
        <script>$('umenu').innerHTML = '<span id="myrepeats" onmouseover="showMenu(this.id)">[切换]</span>' + $('umenu').innerHTML;</script><ul id="myrepeats_menu" class="popupmenu_popup" style="display:none;"><li class="wide"><a href="plugin.php?id=myrepeats:switch&amp;username=%B2%A4%C2%DC%B0%FC">菠萝包</a></li><li class="wide" style="clear:both"><a href="plugin.php?id=myrepeats:memcp">设置马甲</a></li></ul></div>
