 <?php $PowerBB->_CONF['template']['ReplyInfo']['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['ReplyInfo']['title']); ?>
<?php $PowerBB->_CONF['template']['ReplyInfoTime']['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['ReplyInfoTime']['title']); ?>
{template}address_bar_part1{/template}
<a href="index.php?page=forum&amp;show=1&amp;id={$ReplyInfo['section']}{$ReplyInfoTime['section']}
{$password} ">
{$section_info['title']} </a>
{$_CONF['info_row']['adress_bar_separate']}
<a href="index.php?page=topic&amp;show=1&amp;id={$subject_id}
{$password}">
{$ReplyInfo['title']}
{$ReplyInfoTime['title']}
</a>
{$_CONF['info_row']['adress_bar_separate']}
{$lang['edit_reply']}
{template}address_bar_part2{/template}
{template}preview{/template}

<form name="topic" method="post" action="{$edit_page}">

<table border="0" cellspacing="1" width="98%" class="border" align="center">
	<tr>
		<td class="tcat" colspan="7">
		{$lang['text_Reply']}
		</td>
	</tr>
	<tr align="center">
		<td class="row1 rows_space">
			<input TYPE="hidden" name="title" id="title_id" value="{$ReplyInfo['title']}{$ReplyInfoTime['title']}" />
			<input TYPE="hidden" name="reply_number" value="{$reply_number}" />
			<input TYPE="hidden" name="count" value="{$count_peg}" />
		</td>
	</tr>
	<tr>
		<td class="row1 rows_space" colspan="2">

<div id="none">
	<div align="center">
	<table border="0" cellspacing="1" width="98%" class="border" style="border-collapse: collapse">
	<tr>
		<td class="editortoolbar" valign="top">
		{template}editor_js{/template}

<textarea name="text" id="box_text" style="display:block;" class="editoriframe" tabindex="3">{$GetReplyInfo}
{$prev}</textarea>
   <script type="text/javascript">
<!--
    comm._toggle();
    var smiley_wysiwyg = true;
    -->
</script>

		</td>
		<div style="border-style: solid; border-width: 0px; width:70px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px ; ">
		<td class="editortoolbar" valign="top" width="50" align="center">
		<br />
		<br />
		<br />
		<br />
		<br />
		<br />
		<br />

		<table align="center" border="0" cellspacing="1" cellpadding="4" cellspacing="0" >
			<tr valign="bottom" align="center">
				<td class="editortoolbar" align="center">
           {template}smilebox{/template}</td>
			</tr>
		</table>
</div></td>
	</tr>
	<tr>
		<td class="editoricon" valign="top" colspan="2">
<fieldset>
<legend>{$lang['reason_edit']}</legend>
<input name="reason_edit" type="text" value="{$reason_edit}" size="50" />
</fieldset>

{template}iconbox{/template}</td>
	</tr>
</table></div>
</div>
		</td>
	</tr>
{if {$_CONF['info_row']['allowed_emailed']} == '1' AND {$_CONF['member_permission']}}
    <tr>
       <td class="row1" colspan="2">
          <input name="emailed" id="emailed_id" type="checkbox" {if {$IsSubscribed}}checked="checked"{/if}/> <label for="emailed_id">{$lang['Enabled_to_be_notified_by_the_existence_of_new_replies']}</a>
       </td>
    </tr>
    {/if}
</table>
<br />
<table border="0" cellspacing="1" width="98%" class="border" align="center">
<tr>
        <td colspan="2" align="center" class="tcat">
{$lang['attachments']}
</td>
      </tr>
<tr>
        <td colspan="2" align="center" class="row1">
<INPUT name="attach" type="button" value="{$lang['manage_attachments']}"
 onClick="window.open('index.php?page=attachments&amp;index=1&amp;subject_id={$subject_id}&amp;reply_id={$reply_id}','mywindow','scrollbars=yes,width=500,height=600')">
</td>
      </tr>
</table>
{if {$Admin}}
<br />
<table border="0" cellspacing="1" width="98%" class="border" align="center">
    <tr>
       <td class="tcat" colspan="2">
       {$lang['Management_options_subject']}
       </td>
    </tr>
    <tr>
       <td class="row2" colspan="2" align="right">
          {if {$SubjectInfo['stick']}}
          <input name="unstick" id="stick_id" type="checkbox" /> <label for="stick_id">
          {$lang['unstick_Subject']}
          </label>
          {else}
          <input name="stick" id="stick_id" type="checkbox" /> <label for="stick_id">
          {$lang['Sticky_Topic']}
          </label>
          {/if}
          <br />
          {if {$SubjectInfo['close']}}
          <input name="unclose" id="close_id" type="checkbox" /> <label for="close_id">
          {$lang['open_Subject']}
          </label>
          {else}
          <input name="close" id="close_id" type="checkbox" /> <label for="close_id">
          {$lang['locked_Topic']}
          </label>
          {/if}


       </td>
    </tr>
</table>

{/if}
<br />
<table border="0" cellspacing="1" width="98%" class="border" align="center">
	<tr align="center">
		<td class="row1 rows_space" >
					<input class="button" name="insert" type="submit" value="{$lang['Count']}" onClick="comm._submit();" />
					 <input class="button" type="submit" value="{$lang['Preview']}" name="preview" onclick="comm._submit();" />
			</td>
	</tr>
</table>

</form>
<br />
<br />