<!-- IF FLAGS.TOPICFOUND -->
  <!--if post will be an answer to an existing topic [+] -->
<div class='subhl'>{TOPIC_TITLE}</div><br />
  <!--if post will be an answer to an existing topic [-] -->
<!-- ENDIF FLAGS.TOPICFOUND -->

<!-- IF FLAGS.EDITTOPICTITLE -->
  <!--show title of editing topic [+] -->
<div class='subhl'>{TOPIC_TITLE}</div><br />
  <!--ishow title of editing topic [-] -->
<!-- ENDIF FLAGS.EDITTOPICTITLE -->

<!-- IF FLAGS.TOPICNOTLOCKED -->

<form method='post' action='{CONF.MAINSCRIPT}' enctype='multipart/form-data'>
    
  <table border='0' cellpadding='3' cellspacing='1' class='bgcol1 topicform'>
    <tr class='forumhead'><td colspan='2' class='c'>{HEADLINE_FORM}</td></tr>

    <!-- IF FLAGS.GUEST_NAME -->
    <tr class='foruminner'><td class='vat descr'><b>{DESCR_NICKNAME}</b> <span class='small'>{DESCR_OPTIONAL}</span></td>
      <td class='field'><input type='text' name='guest_name' value='{FORM_VAL_GUEST_NAME}' class='f100' /></td></tr>
    <!-- ENDIF FLAGS.GUEST_NAME -->

    <tr class='foruminner'><td class='b vat descr'>{DESCR_TITLE}</td>
      <td class='field'>
        <input type='hidden' name='tid' value='{TOPIC_ID}' />
        <input type='hidden' name='pid' value='{POST_ID}' />
        <input type='hidden' name='fid' value='{FORUM_ID}' />
        <input type='hidden' name='action' value='{FORM_VAL_ACTION}' />
        <input type='hidden' name='fts' value='{FORM_VAL_FTS}' />
        <input type='text' name='topic' value='{FORM_VAL_TOPIC}' class='f100' />
      </td></tr>
    <tr class='foruminner'><td class='b vat'>{DESCR_MESSAGE}</td>
      <td>
    
    <div>
      <div class='fl'>
        <button type='button' onclick="insertText('[b]','[/b]')" title='[b][/b]'><b>b</b></button>
        <button type='button' onclick="insertText('[i]','[/i]')" title='[i][/i]'><i>i</i></button>
        <button type='button' onclick="insertText('[u]','[/u]')" title='[u][/u]'><span class='u'>u</span></button>
        <button type='button' onclick="insertText('[quote]','[/quote]')" title='[quote][/quote]'>quote</button>
        <button type='button' onclick="insertText('[code]','[/code]')" title='[code][/code]'>code</button>
        <button type='button' onclick="insertText('[list][*]','[/list]')" title='[list][/list]'>list</button>
        <button type='button' onclick="insertText('[*]','')" title='[*] {BB_LISTENTRY_TITLE}'>[*]</button>
        <button type='button' onclick="insertText('[img]','[/img]')" title='[img]URL[/img]'>img</button>
        <button type='button' onclick="insertText('[url]','[/url]')" title='[url=URL]Description[/url] or [url]URL[/url]'>url</button>
        <button type='button' onclick="insertText('[video]','[/video]')" title='[video]URL to Youtube or Vimeo Video[/video]'>video</button>
      </div>
      <div class='fr internalsmilies'>
        <img src='{CONF.RELPATH}/images/icons/smiley_biggrin.gif' onclick="insertText(': )=):','')" title=': )=):' alt='' />
        <img src='{CONF.RELPATH}/images/icons/smiley_cool.gif' onclick="insertText(': 8):','')" title=': 8):' alt='' />
        <img src='{CONF.RELPATH}/images/icons/smiley_lol.gif' onclick="insertText(': )):','')" title=': )):' alt='' />
        <img src='{CONF.RELPATH}/images/icons/smiley_sad.gif' onclick="insertText(': (:','')" title=': (:' alt='' />
        <img src='{CONF.RELPATH}/images/icons/smiley_wah.gif' onclick="insertText(': ((:','')" title=': ((:' alt='' />
        <!-- IF FLAGS.EXTERNAL_SMILIES -->
          <!-- if GIF files in external smilies directory [+] -->
            [<a href="#" onclick="ShowHide('externalsmilies');return false;">{DESCR_MORE_SMILIES}</a>]
            <br /><div id="externalsmilies">
            <div class='smilieshead'><a href="#" onclick="ShowHide('externalsmilies');return false;"><img src='{CONF.TEMPLATE_PATH}/images/icons/cancel.png' title='close' alt='[close]' class='fr' /></a>{HEADLINE_SMILIES}</div>
            <!-- through the smilies [+] -->
              <!-- BEGIN SMILIES -->         
                <img src='{top.CONF.RELPATH}/images/smilies/{SMILEY}' onclick="insertText('{SMILEY_CODE}','')" title='{SMILEY_CODE}' alt='{SMILEY_CODE}' />
              <!-- END SMILIES -->
              <!-- through the smilies [-] -->
            </div>
          <!-- if GIF files in external smilies directory [-] -->
        <!-- ENDIF FLAGS.EXTERNAL_SMILIES -->
      </div>
    </div><p class='clear'></p>

      <textarea name='message' cols='75' rows='15' id='message' class='ta100_180'>{FORM_VAL_MESSAGE}</textarea></td></tr>
      
    <!-- IF FLAGS.DEFINE_TOPIC_TYPE -->
      <!-- ability to define topic type (sticky or normal) -->
    <tr class='foruminner'><td class='b vat'>{DESCR_TOPICTYPE}</td>
      <td><input type='radio' name='sticky' value='0' id='normal' {FORM_CHECKED_STICKYOFF} /> <label for='normal'>{DESCR_STICKYOFF}</label><br />
        <input type='radio' name='sticky' value='1' id='sticky' {FORM_CHECKED_STICKYON} /> <label for='sticky'>{DESCR_STICKYON}</label></td></tr>
    <!-- ENDIF FLAGS.DEFINE_TOPIC_TYPE -->
    
    
    <!-- IF FLAGS.ATTACHMENT_PART -->
    <tr class='forumhead'><td colspan='2' class='c'>{HEADLINE_ATTACHMENT}</td></tr>
    
      <!-- IF DESCR_ATTACHMENT_INFO -->
        <tr class='foruminner'><td colspan='2' class='c small'>{DESCR_ATTACHMENT_INFO}</td></tr>
      <!-- ENDIF DESCR_ATTACHMENT_INFO-->
    
      <tr class='foruminner'><td class='b vat'>{DESCR_ATT_FILE}</td>
        <td><input type='file' name='attachment' value='' /></td></tr>
      <tr class='foruminner'><td class='vat'><b>{DESCR_ATT_DESCR}</b><br /><span class='small'>{DESCR_OPTIONAL}</span></td>
        <td><input type='text' name='att_descr' value='{FORM_VAL_ATT_DESCR}' class='f100' /></td></tr>

      
      <!-- through the attachments [+] -->
      <!-- BEGIN ATTACHMENTS -->         
        <tr class='foruminner'><td colspan='2'><a href='{ATT_LINK}'>{ATT_DESCR}</a> <span class='small'>[<a href='{CONF.MAINSCRIPT}?action=delattachment&amp;id={ATT_ID}&amp;tid={top.TOPIC_ID}&amp;pid={top.POST_ID}' onclick="return confirm('{top.CONFIRM_DELATTACHMENT}');">{top.DESCR_DELETE}</a></span>]</td></tr>
      <!-- END ATTACHMENTS -->
      <!-- through the attachments [-] -->
    
    <!-- ENDIF FLAGS.ATTACHMENT_PART -->
    
    
    <!-- IF FLAGS.VOTING_PART -->
    <tr class='forumhead'><td colspan='2' class='c'>{HEADLINE_VOTING}</td></tr>
    <tr class='foruminner'><td colspan='2' class='c small'>{DESCR_CREATE_POLL_INFO}</td></tr>
    <tr class='foruminner'><td class='b vat'>{DESCR_VOTEQ}</td>
      <td><input type='text' name='poll_title' value='{FORM_VAL_VOTEQ}' class='f100' /></td></tr>
    <tr class='foruminner'><td class='vat'><b>{DESCR_VOTEA}</b><br /><span class='small'>{DESCR_VOTEA_INFO}{DESCR_VOTEA_SUBINFO}</span></td>
      <td><textarea name='poll_options' class='ta100_75' cols='75' rows='5'>{FORM_VAL_VOTEA}</textarea></td></tr>
    <tr class='foruminner'><td class='b vat'>{DESCR_VOTEMULTIA}</td>
      <td><input type='checkbox' name='poll_multiple' value='1' id='enmulti' {FORM_CHECKED_ENMULTI} /> <label for='enmulti' class='cp'>{DESCR_ENMULTI}</label></td></tr>
    <tr class='foruminner'><td class='b vat'>{DESCR_DURATION}</td>
      <td><input type='text' name='poll_duration' value='{FORM_VAL_DURATION}' class='poll_duration' /> {DESCR_DURATION_INFO}</td></tr>
    <!-- ENDIF FLAGS.VOTING_PART -->
    
    <tr class='forumfoot'><td colspan='2' class='c'><input type='submit' value='{DESCR_SUBMIT}' /></td></tr>
  
</table></form>



<!-- IF FLAGS.TOPICFOUND -->
<!-- posts overview of exisiting posts within current topic [+] -->
<table border='0' cellpadding='3' cellspacing='1' class='bgcol1 previoustopics'>
    <tr class='forumhead'><td class='c'>{HEADLINE_TOPICSOVERVIEW}</td></tr>
    <tr><td class='topics'>
    
    <div>

      <table border='0' cellpadding='3' cellspacing='1' class='topicholder bgcol1'>
        <tr class='forumhead'><td class='c descr'>{DESCR_AUTHOR}</td>
          <td class='c field'>{DESCR_MESSAGE}</td></tr>
  
        <!-- through the posts [+] -->
        <!-- BEGIN POSTS -->         
          
          <tr class='foruminner'><td class='vat b {POSTER_CLASS}'>{POSTER}</td>
            <td class='vat'>
              <div class='postinginfos'>{top.DESCR_COMPOSED} {POST_DATE}&nbsp;&nbsp;&nbsp;&nbsp;{top.DESCR_POST_TITLE} {POST_TITLE}</div>
              <div class='post'>{POST_MESSAGE}</div></td></tr>
              
        <!-- END POSTS --> 
        <!-- through the posts [-] -->
  
      </table>
  </div></td></tr>
</table>
<!-- ENDIF FLAGS.TOPICFOUND -->


<!-- ENDIF FLAGS.TOPICNOTLOCKED -->


<!-- IF FLAGS.TOPICLOCKED -->
<table border='0' cellpadding='3' cellspacing='1' class='topicform bgcol1'>
  <tr class='forumhead'><td class='c'>Information</td></tr>
  <tr class='foruminner'><td class='c'>{TOPIC_LOCKED}</td></tr>
</table>
<!-- ENDIF FLAGS.TOPICLOCKED -->