<div class="container">
   <div class="row clearfix">
      <div class="col-lg-12">
         <div class="card">
            <div class="chat">
               <div class="chat-header clearfix">
                     <div class="row">
                        <script type="text/javascript">const addition = '';</script>
                        {%LADDER%}
                        <div class="forumBodyWrap">
                           <div class="forumTitle">Тема раздела: {%TITLE%}
                              <div style="float:right">
                              </div>
                              <div style="float:right">
                                 {%ACTION%}
                              </div>
                              <br style="clear:both"/>
                           </div>
                              <table class="forum" style="width:100%; border: 0; border-spacing: 1px; border-collapse: separate; text-align:center;">
                                 <tr>
                                    <td class="chat-history" style="width:35%; vertical-align: top;"> <td style="width:40%; text-align: right;">
                                       [rating]
                                       {%RATING%}

                                       <div class="main-info">
                                          [rating_plus]
                                          <div class="main-info-item frating-plus">{%rating_plus%}<i class="fa fa-thumbs-o-up"></i></div>
                                          [/rating_plus]
                                          <div class="main-info-item">
                                             [rating_num]<i class="flaticon-favorites"></i>Рейтинг: {%rating_num%}[/rating_num]
                                          </div>
                                          [rating_minus]
                                          <div class="main-info-item frating-minus">{%rating_minus%}<i class="fa fa-thumbs-o-up"></i></div>
                                          [/rating_minus]
                                          <div class="frating">{%rrating%}</div>
                                       </div>
                                       [/rating]
                                    </td>
                                    {%TOPIC%}
                                    </td>
                                 </tr>
                              </table>

                           [search_by_forums]
                           <table class="forum" style="width:100%; border: 0; border-spacing: 1px; border-collapse: separate;">
                              <tr class="thNOanim">
                                 <td class="thNOanim" colspan ="2">
                                    <div style ="float:left">
                                       <form name ="search_form" method ="post" action ="board/search" style="width:320px;">
                                          <div class="padding">
                                             <input type ="hidden" name ="fid" value ="{%forum%}">
                                             <input name="query" type="text" class="f_input" style="background: #e0e0e0" id="query" value="Поиск по форумам…" onblur="if(this.value==\'\') this.value=\'Поиск по форумам…\';" onfocus="if(this.value==\'Поиск по форумам…\') this.value=\'\';" title="наберите Ваш запрос и нажмите enter"/>
                                             <div class="padding">
                                                <input type ="submit" class="fbutton" value ="Искать по форумам">
                                             </div>
                                          </div>
                                       </form>
                                    </div>
                                    <div style ="float:right">
                                       <div class="padding">
                                          <a href ="board/topic-{%id%}/old">  &larr; Предыдушая </a>  | <a href ="board/topic-{%id%}"> <strong>  {%title%} </strong> </a>  | <a href ="board/topic-{%id%}/new"> Следующая &rarr; </a>
                                       </div>
                                    </div>
                                 </td>
                              </tr>
                           </table>
                           [/search_by_forums]
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            [close]
            [user]
            <div class="forumBodyWrap" id="qr" style="{%SHOW_EDIT%}">
               <div class="forumTitle" id="comment_add">
                  Добавить свой комментарий:
                  <div style="float:right">
                     <a href="javascript:void(0)" onclick="switchBlock('comm');"><img src="media/other/{%COOKIE_IMG%}.png" id="img_comm" style="width:16px; height: 16px; border:0;"  style="border:0;" alt=""/></a>
                  </div>
                  <br style="clear:both"/>
               </div>
               <article class="hentry">
                  <div id="block_comm" style="display: {%COOKIE_DIS%}; padding:0;">
                     <form name="topic" method="post" action="board/postMessage" onsubmit="return sendPost();" enctype="multipart/form-data">
                        <div id="reply_comment"></div>
                        <div class="form-line-tt" style="padding: 10px 0 10px 0;">
                           {%TEXTAREA%}
                        </div>
                        <div class="form-submit-block-tt">
                           <input type="hidden" name="parent"  id="reply_to" class="b"/>
                           <input type="hidden" name="tid" value="{%ID%}" class="b"/>
                           <input type="hidden" name="type" value="quick" class="b"/>
                           <div style="float:right">
                              <div class="chat-message clearfix">
                                 <input value="Добавить" name="submit" type="submit" class="comm form-button-tt"/>
                              </div>
                           </div>
                        </div>
                     </form>
                  </div>
               </article>
            </div>
            [/user]
            [/close]
            [guest]
            <article class="hentry"> <span style="color: red; ">[lang_tpl:forum_register_or_login_to_answer]</span></article>
            [/guest]
            <script type="text/javascript">
               function reply_quick(id){gid('reply_to').value = id; gid('reply_comment').innerHTML = (id > 0 ? '[lang_tpl:response_com]'+id + ' <a href="javascript:void(0)" onclick="reply_quick(0);">[lang_tpl:not_answer]</a>' : ''); window.scroll(0, parseInt(gid('comment_add').offsetTop));}
            </script>
         </div>
      </div>
   </div>
