<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" background="<{$xoops_imageurl}>Images/header/header_leftbar.gif" width="10">
</td>
<td width="353" id="headerlogo">
<a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>logo.gif" width="353" height="140" alt="" /></a>
</td>
<td rowspan="2" background="<{$xoops_imageurl}>Images/header/header_middlebar.gif" width="11">
</td>
<td colspan="3" background="<{$xoops_imageurl}>Images/header/header_bg.gif" height="140" id="headerbanner">
<{$xoops_banner}>
</td>
<td rowspan="2" background="<{$xoops_imageurl}>Images/header/header_rightbar.gif" width="19">
</td>
</tr>
<td background="<{$xoops_imageurl}>Images/header/header_bottom.gif">
<img border="0" src="<{$xoops_imageurl}>Images/header/ftp_ico_on.gif" width="110" alt="" />
<img border="0" src="<{$xoops_imageurl}>Images/header/chat_ico_on.gif" width="110" alt="" />
<img border="0" src="<{$xoops_imageurl}>Images/header/test_ico_on.gif" width="110" alt="" />
</td>
<td background="<{$xoops_imageurl}>Images/header/header_bottom.gif">
</td>
<td>
<img border="0" src="<{$xoops_imageurl}>Images/header/srch_l.gif" width="2" alt="" />
</td>
<form style="font-family:Tahoma; font-size:10px; color:#808080; height:13" action="<{$xoops_url}>/search.php" method="get">
<td align="right" nowrap="nowrap" background="<{$xoops_imageurl}>Images/header/srch_bg.gif" width="250">
<input type="text" name="query" size="36" style="font-family: Tahoma; font-size: 10px; color: #808080; border-style: solid; border-width: 1px;" />
<input type="hidden" name="action" value="results" />
<input type="image" value="<{$block.lang_search}>" src="<{$xoops_imageurl}>Images/header/serch_btn.gif" alt="" name="Search" />
</td>
</form>
</table>
<table border="0" width="80%" height="164" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" width="10">
<img border="0" src="<{$xoops_imageurl}>/Images/header/header_leftbar.gif" width="10" height="164"></td>
<td width="535" id="headerlogo">
<img src="<{$xoops_imageurl}>logo.gif" width="353" height="140" alt="" /></td>
<td rowspan="2" width="11">
<img border="0" src="<{$xoops_imageurl}>/Images/header/header_middlebar.gif" width="11" height="164"></td>
<td colspan="3" background="<{$xoops_imageurl}>/Images/header/header_bg.gif" height="140" id="headerbanner">
<{$xoops_banner}>
</td>
<td rowspan="2" width="19">
<img border="0" src="<{$xoops_imageurl}>/Images/header/header_rightbar.gif" width="19" height="164"></td>
</tr>
<tr>
<td background="<{$xoops_imageurl}>/Images/header/header_bottom.gif" height="24">
<img border="0" src="<{$xoops_imageurl}>/Images/header/ftp_ico_on.gif" width="110" height="24"><img border="0" src="<{$xoops_imageurl}>/Images/header/chat_ico_on.gif" width="110" height="24"><img border="0" src="<{$xoops_imageurl}>/Images/header/test_ico_on.gif" width="110" height="24"></td>
<td background="<{$xoops_imageurl}>/Images/header/header_bottom.gif" ></td>
<td width="2">
<img border="0" src="<{$xoops_imageurl}>/Images/header/srch_l.gif" width="2" height="24"></td>
<td background="<{$xoops_imageurl}>/Images/header/srch_bg.gif" align="right" >
<form style="padding:0; font-family:Tahoma; font-size:10px; color:#808080; width:238; height:13" action="<{$xoops_url}>/search.php" method="GET">
<input type="text" name="query" size="36" style="font-family: Tahoma; font-size: 10px; color: #808080; border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"><input type="hidden" name="action" value="results">
<input type="image" value="<{$block.lang_search}>" src="<{$xoops_imageurl}>/Images/header/serch_btn.gif" name="Search" width="53" height="13" style="padding-top: 5px;">
</form>
</td>
</tr>
</table>
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";
$sform = new XoopsThemeForm(_NW_SUBMITNEWS, "storyform", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/submit.php');
$sform->setExtra('enctype="multipart/form-data"');
$sform->addElement(new XoopsFormText(_NW_TITLE, 'title', 50, 80, $title), true);
//$sform->addElement(new XoopsFormDhtmlTextArea(_NW_THESCOOP, 'hometext', $hometext, 15, 60, 'hometext_hidden'), true);
$sform->addElement(new XoopsFormWysiwygTextArea( _NW_THESCOOP, 'hometext', $hometext, '100%', '400px',''), true);
//Extra info
//If admin -> if submit privilege
if ($approveprivilege) {
//$sform->addElement(new XoopsFormDhtmlTextArea(_AM_EXTEXT, 'bodytext', $bodytext, 15, 60, 'bodytext_hidden'), false);
$sform->addElement(new XoopsFormWysiwygTextArea( _AM_EXTEXT, 'bodytext', $bodytext, '100%', '400px',''), true);