<?php if($_privmsg_extensions_count = count($d['privmsg_extensions'])) {for ($_privmsg_extensions_i = 0; $_privmsg_extensions_i < $_privmsg_extensions_count; $_privmsg_extensions_i++){ ?>
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
<tr> 
<td valign="top" align="center" width="100%"> 
<table height="40" cellspacing="2" cellpadding="2" border="0">
<tr valign="middle"> 
<td><?php $this->_echo($d['.'][0]['INBOX_IMG']); ?></td>
<td><span class="cattitle"><?php $this->_echo($d['.'][0]['INBOX_LINK']); ?>&nbsp;&nbsp;</span></td>
<td><?php $this->_echo($d['.'][0]['SENTBOX_IMG']); ?></td>
<td><span class="cattitle"><?php $this->_echo($d['.'][0]['SENTBOX_LINK']); ?>&nbsp;&nbsp;</span></td>
<td><?php $this->_echo($d['.'][0]['OUTBOX_IMG']); ?></td>
<td><span class="cattitle"><?php $this->_echo($d['.'][0]['OUTBOX_LINK']); ?>&nbsp;&nbsp;</span></td>
<td><?php $this->_echo($d['.'][0]['SAVEBOX_IMG']); ?></td>
<td><span class="cattitle"><?php $this->_echo($d['.'][0]['SAVEBOX_LINK']); ?>&nbsp;&nbsp;</span></td>
</tr>
</table>
</td>
</tr>
</table>

<br clear="all" />
<?php }}if($_switch_standalone_count = count($d['switch_standalone'])) {for ($_switch_standalone_i = 0; $_switch_standalone_i < $_switch_standalone_count; $_switch_standalone_i++){$this->_include('posting_bbcode.tpl'); ?>
<form action="<?php $this->_echo($d['.'][0]['S_POST_ACTION']); ?>" method="post" name="post" onsubmit="return checkForm(this)" <?php $this->_echo($d['.'][0]['S_FORM_ENCTYPE']); ?>>

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr> 
<td align="left" valign="bottom"><span class="gensmall">
<?php if($_switch_user_logged_in_count = count($d['switch_standalone'][$_switch_standalone_i]['switch_user_logged_in'])) {for ($_switch_user_logged_in_i = 0; $_switch_user_logged_in_i < $_switch_user_logged_in_count; $_switch_user_logged_in_i++){ ?>
<?php $this->_echo($d['.'][0]['LAST_VISIT_DATE']); ?><br />
<?php }} ?>
<?php $this->_echo($d['.'][0]['CURRENT_TIME']); ?><br />
<?php $this->_echo($d['.'][0]['S_TIMEZONE']); ?>
</span></td>
</tr>
</table>

<br class="nav" />

<?php $this->_echo($d['.'][0]['NAVIGATION_BOX']); ?>
<?php }}if($_switch_not_privmsg_count = count($d['switch_not_privmsg'])) {for ($_switch_not_privmsg_i = 0; $_switch_not_privmsg_i < $_switch_not_privmsg_count; $_switch_not_privmsg_i++){ ?>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr> 
<td align="left" valign="bottom"><span class="maintitle">
<a class="maintitle" href="<?php $this->_echo($d['.'][0]['U_TITLE']); ?>"><?php $this->_echo($d['.'][0]['TITLE']); ?></a>
</span></td>
</tr>
</table>
<?php }} ?>

<?php $this->_echo($d['.'][0]['POST_PREVIEW_BOX']); ?>
<?php $this->_echo($d['.'][0]['ERROR_BOX']); ?>

<?php if($_switch_standalone_count = count($d['switch_standalone'])) {for ($_switch_standalone_i = 0; $_switch_standalone_i < $_switch_standalone_count; $_switch_standalone_i++){ ?>
<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<tr> 
<th class="thHead" colspan="2" height="25"><b><?php $this->_echo($d['.'][0]['L_POST_A']); ?></b></th>
</tr>
<?php }}if($_switch_username_select_count = count($d['switch_username_select'])) {for ($_switch_username_select_i = 0; $_switch_username_select_i < $_switch_username_select_count; $_switch_username_select_i++){ ?>
<tr> 
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_USERNAME']); ?></b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="<?php $this->_echo($d['.'][0]['USERNAME']); ?>" /></span></td>
</tr>
<?php }}if($_switch_confirm_count = count($d['switch_confirm'])) {for ($_switch_confirm_i = 0; $_switch_confirm_i < $_switch_confirm_count; $_switch_confirm_i++){$this->_include('visual_confirm_box.tpl');}}if($_switch_privmsg_count = count($d['switch_privmsg'])) {for ($_switch_privmsg_i = 0; $_switch_privmsg_i < $_switch_privmsg_count; $_switch_privmsg_i++){ ?>
<tr> 
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_USERNAME']); ?></b></span></td>
<td class="row2"><span class="genmed"><input type="text"  class="post" name="username" maxlength="25" size="25" tabindex="1" value="<?php $this->_echo($d['.'][0]['USERNAME']); ?>" />&nbsp;<input type="submit" name="usersubmit" value="<?php $this->_echo($d['.'][0]['L_FIND_USERNAME']); ?>" class="liteoption" onClick="window.open('<?php $this->_echo($d['.'][0]['U_SEARCH_USER']); ?>', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>
</tr>
<?php }}if($_switch_subject_count = count($d['switch_subject'])) {for ($_switch_subject_i = 0; $_switch_subject_i < $_switch_subject_count; $_switch_subject_i++){ ?>
<tr> 
<td class="row1" width="22%"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_SUBJECT']); ?></b></span></td>
<td class="row2" width="78%"> <span class="gen"> 
<input type="text" name="subject" size="45" maxlength="<?php $this->_echo($d['.'][0]['SUBJECT_LENGTH']); ?>" style="width:450px" tabindex="2" class="post" value="<?php $this->_echo($d['.'][0]['SUBJECT']); ?>" />
</span> </td>
</tr>
<?php }}if($_switch_sub_title_count = count($d['switch_sub_title'])) {for ($_switch_sub_title_i = 0; $_switch_sub_title_i < $_switch_sub_title_count; $_switch_sub_title_i++){ ?>
<tr> 
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_SUB_TITLE']); ?></b></span></td>
<td class="row2"><span class="gen">
<input type="text" name="sub_title" size="45" maxlength="<?php $this->_echo($d['.'][0]['SUB_TITLE_LENGTH']); ?>" style="width:450px" tabindex="2" class="post" value="<?php $this->_echo($d['.'][0]['SUB_TITLE']); ?>" />
</span></td>
</tr>
<?php }}if($_switch_explain_count = count($d['switch_explain'])) {for ($_switch_explain_i = 0; $_switch_explain_i < $_switch_explain_count; $_switch_explain_i++){ ?>
<tr>
<td class="row3" colspan="2"><span class="gensmall"><?php $this->_echo($d['.'][0]['L_EXPLAIN']); ?></span></td>
</tr>
<?php }} ?>
<?php $this->_echo($d['.'][0]['ICON_BOX']); ?>
<?php $this->_echo($d['.'][0]['SUB_TYPE_FORM']); ?>
<tr> 
<td class="row1" valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr> 
<td><span class="gen"><b><?php $this->_echo($d['.'][0]['L_MESSAGE_BODY']); ?></b></span> </td>
</tr>
<tr> 
<td valign="middle" align="center"> <br />
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr align="center"> 
<td colspan="<?php $this->_echo($d['.'][0]['S_SMILIES_COLSPAN']); ?>"><span class="gensmall"><b><?php $this->_echo($d['.'][0]['L_EMOTICONS']); ?></b></span></td>
</tr>
<?php if($_smilies_row_count = count($d['smilies_row'])) {for ($_smilies_row_i = 0; $_smilies_row_i < $_smilies_row_count; $_smilies_row_i++){ ?>
<tr align="center" valign="middle"> 
<?php if($_smilies_col_count = count($d['smilies_row'][$_smilies_row_i]['smilies_col'])) {for ($_smilies_col_i = 0; $_smilies_col_i < $_smilies_col_count; $_smilies_col_i++){ ?>
<td><a href="javascript:emoticon('<?php $this->_echo($d['smilies_row'][$_smilies_row_i]['smilies_col'][$_smilies_col_i]['SMILEY_CODE']); ?>')"><img src="<?php $this->_echo($d['smilies_row'][$_smilies_row_i]['smilies_col'][$_smilies_col_i]['SMILEY_IMG']); ?>" border="0" alt="<?php $this->_echo($d['smilies_row'][$_smilies_row_i]['smilies_col'][$_smilies_col_i]['SMILEY_DESC']); ?>" title="<?php $this->_echo($d['smilies_row'][$_smilies_row_i]['smilies_col'][$_smilies_col_i]['SMILEY_DESC']); ?>" /></a></td>
<?php }} ?>
</tr>
<?php }}if($_switch_smilies_extra_count = count($d['switch_smilies_extra'])) {for ($_switch_smilies_extra_i = 0; $_switch_smilies_extra_i < $_switch_smilies_extra_count; $_switch_smilies_extra_i++){ ?>
<tr align="center"> 
<td colspan="<?php $this->_echo($d['.'][0]['S_SMILIES_COLSPAN']); ?>"><span class="topictitle"><a href="<?php $this->_echo($d['.'][0]['U_MORE_SMILIES']); ?>" onclick="window.open('<?php $this->_echo($d['.'][0]['U_MORE_SMILIES']); ?>', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="topictitle"><?php $this->_echo($d['.'][0]['L_MORE_SMILIES']); ?></a></span></td>
</tr>
<?php }} ?>
</table>
</td>
</tr>
</table>
</td>
<td class="row2" valign="top">
<table width="450" border="0" cellspacing="0" cellpadding="2">
<tr align="center" valign="middle"> 
<td><span class="genmed"> 
<input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
</span></td>
<td><span class="genmed"> 
<input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
</span></td>
<td><span class="genmed"> 
<input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
</span></td>
<td><span class="genmed"> 
<input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
</span></td>
<td><span class="genmed"> 
<input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
</span></td>
<td><span class="genmed"> 
<input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
</span></td>
<td><span class="genmed"> 
<input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
</span></td>
<td><span class="genmed"> 
<input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px"  onClick="bbstyle(14)" onMouseOver="helpline('p')" />
</span></td>
<td><span class="genmed"> 
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
</tr>
<tr> 
<td colspan="9"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td><span class="genmed"> &nbsp;<?php $this->_echo($d['.'][0]['L_FONT_COLOR']); ?>: 
<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
<option style="color:black; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="<?php $this->_echo($d['.'][0]['T_FONTCOLOR1']); ?>" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_DEFAULT']); ?></option>
<option style="color:darkred; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="darkred" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_DARK_RED']); ?></option>
<option style="color:red; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="red" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_RED']); ?></option>
<option style="color:orange; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="orange" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_ORANGE']); ?></option>
<option style="color:brown; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="brown" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_BROWN']); ?></option>
<option style="color:yellow; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="yellow" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_YELLOW']); ?></option>
<option style="color:green; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="green" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_GREEN']); ?></option>
<option style="color:olive; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="olive" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_OLIVE']); ?></option>
<option style="color:cyan; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="cyan" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_CYAN']); ?></option>
<option style="color:blue; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="blue" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_BLUE']); ?></option>
<option style="color:darkblue; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="darkblue" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_DARK_BLUE']); ?></option>
<option style="color:indigo; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="indigo" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_INDIGO']); ?></option>
<option style="color:violet; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="violet" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_VIOLET']); ?></option>
<option style="color:white; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="white" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_WHITE']); ?></option>
<option style="color:black; background-color: <?php $this->_echo($d['.'][0]['T_TD_COLOR1']); ?>" value="black" class="genmed"><?php $this->_echo($d['.'][0]['L_COLOR_BLACK']); ?></option>
</select> &nbsp;<?php $this->_echo($d['.'][0]['L_FONT_SIZE']); ?>:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
<option value="7" class="genmed"><?php $this->_echo($d['.'][0]['L_FONT_TINY']); ?></option>
<option value="9" class="genmed"><?php $this->_echo($d['.'][0]['L_FONT_SMALL']); ?></option>
<option value="12" selected class="genmed"><?php $this->_echo($d['.'][0]['L_FONT_NORMAL']); ?></option>
<option value="18" class="genmed"><?php $this->_echo($d['.'][0]['L_FONT_LARGE']); ?></option>
<option  value="24" class="genmed"><?php $this->_echo($d['.'][0]['L_FONT_HUGE']); ?></option>
</select>
</span></td>
<td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')"><?php $this->_echo($d['.'][0]['L_BBCODE_CLOSE_TAGS']); ?></a></span></td>
</tr>
</table>
</td>
</tr>
<tr> 
<td colspan="9"> <span class="gensmall"> 
<input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="<?php $this->_echo($d['.'][0]['L_STYLES_TIP']); ?>" />
</span></td>
</tr>
<tr> 
<td colspan="9"><span class="gen"> 
<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);"><?php $this->_echo($d['.'][0]['MESSAGE']); ?></textarea>
</span></td>
</tr>
</table>
</td>
</tr>
<tr> 
<td class="row1" valign="top"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_OPTIONS']); ?></b></span><br /><span class="gensmall"><?php $this->_echo($d['.'][0]['HTML_STATUS']); ?><br /><?php $this->_echo($d['.'][0]['BBCODE_STATUS']); ?><br /><?php $this->_echo($d['.'][0]['SMILIES_STATUS']); ?></span></td>
<td class="row2">
<table cellspacing="0" cellpadding="1" border="0">
<?php if($_switch_html_checkbox_count = count($d['switch_html_checkbox'])) {for ($_switch_html_checkbox_i = 0; $_switch_html_checkbox_i < $_switch_html_checkbox_count; $_switch_html_checkbox_i++){ ?>
<tr> 
<td> 
<input type="checkbox" name="disable_html" <?php $this->_echo($d['.'][0]['S_HTML_CHECKED']); ?> />
</td>
<td><span class="gen"><?php $this->_echo($d['.'][0]['L_DISABLE_HTML']); ?></span></td>
</tr>
<?php }}if($_switch_bbcode_checkbox_count = count($d['switch_bbcode_checkbox'])) {for ($_switch_bbcode_checkbox_i = 0; $_switch_bbcode_checkbox_i < $_switch_bbcode_checkbox_count; $_switch_bbcode_checkbox_i++){ ?>
<tr> 
<td> 
<input type="checkbox" name="disable_bbcode" <?php $this->_echo($d['.'][0]['S_BBCODE_CHECKED']); ?> />
</td>
<td><span class="gen"><?php $this->_echo($d['.'][0]['L_DISABLE_BBCODE']); ?></span></td>
</tr>
<?php }}if($_switch_smilies_checkbox_count = count($d['switch_smilies_checkbox'])) {for ($_switch_smilies_checkbox_i = 0; $_switch_smilies_checkbox_i < $_switch_smilies_checkbox_count; $_switch_smilies_checkbox_i++){ ?>
<tr> 
<td> 
<input type="checkbox" name="disable_smilies" <?php $this->_echo($d['.'][0]['S_SMILIES_CHECKED']); ?> />
</td>
<td><span class="gen"><?php $this->_echo($d['.'][0]['L_DISABLE_SMILIES']); ?></span></td>
</tr>
<?php }}if($_switch_signature_checkbox_count = count($d['switch_signature_checkbox'])) {for ($_switch_signature_checkbox_i = 0; $_switch_signature_checkbox_i < $_switch_signature_checkbox_count; $_switch_signature_checkbox_i++){ ?>
<tr> 
<td> 
<input type="checkbox" name="attach_sig" <?php $this->_echo($d['.'][0]['S_SIGNATURE_CHECKED']); ?> />
</td>
<td><span class="gen"><?php $this->_echo($d['.'][0]['L_ATTACH_SIGNATURE']); ?></span></td>
</tr>
<?php }}if($_switch_notify_checkbox_count = count($d['switch_notify_checkbox'])) {for ($_switch_notify_checkbox_i = 0; $_switch_notify_checkbox_i < $_switch_notify_checkbox_count; $_switch_notify_checkbox_i++){ ?>
<tr> 
<td> 
<input type="checkbox" name="notify" <?php $this->_echo($d['.'][0]['S_NOTIFY_CHECKED']); ?> />
</td>
<td><span class="gen"><?php $this->_echo($d['.'][0]['L_NOTIFY_ON_REPLY']); ?></span></td>
</tr>
<?php }}if($_switch_delete_checkbox_count = count($d['switch_delete_checkbox'])) {for ($_switch_delete_checkbox_i = 0; $_switch_delete_checkbox_i < $_switch_delete_checkbox_count; $_switch_delete_checkbox_i++){ ?>
<tr> 
<td> 
<input type="checkbox" name="delete" />
</td>
<td><span class="gen"><?php $this->_echo($d['.'][0]['L_DELETE_POST']); ?></span></td>
</tr>
<?php }} ?>
</table>
</td>
</tr>
<?php $this->_echo($d['.'][0]['TOPIC_TYPE_FORM']); ?>
<?php $this->_echo($d['.'][0]['POLLBOX']); ?> 
<?php $this->_echo($d['.'][0]['CALENDAR_FORM']); ?>
<?php $this->_echo($d['.'][0]['ATTACHBOX']); ?>
<?php if($_switch_standalone_count = count($d['switch_standalone'])) {for ($_switch_standalone_i = 0; $_switch_standalone_i < $_switch_standalone_count; $_switch_standalone_i++){ ?>
<tr> 
<td class="catBottom" colspan="2" align="center" height="28"> <?php $this->_echo($d['.'][0]['S_HIDDEN_FORM_FIELDS']); ?><input type="submit" tabindex="5" name="preview" class="mainoption" value="<?php $this->_echo($d['.'][0]['L_PREVIEW']); ?>" />&nbsp;<input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="<?php $this->_echo($d['.'][0]['L_SUBMIT']); ?>" /></td>
</tr>
</table>
<?php }}if($_switch_standalone_count = count($d['switch_standalone'])) {for ($_switch_standalone_i = 0; $_switch_standalone_i < $_switch_standalone_count; $_switch_standalone_i++){ ?>
<?php $this->_echo($d['.'][0]['NAVIGATION_BOX']); ?>

</form>

<br class="nav" />
<?php }} ?>

<?php $this->_echo($d['.'][0]['TOPIC_REVIEW_BOX']); ?>