1
Here's my code so far and only the delete button isn't calculating. How do I mix the delete button in with the XoopsForm class?
echo "<input type="hidden" name="op" value="addDownload"></input>";
echo "<tr><td align="right"nowrap>"._MD_SHOTIMAGE."</td><td>n";
echo "<input type="text" name="logourl" value="$logourl" size="50" maxlength="60">n";
echo "<input type='button' value='Upload' onclick='javascript:openWithSelfMain("".XOOPS_URL."/modules/myReviews/upload.php?img_path=$img_path&target=logourl&logo=1&target2=cimgwidth&target3=cimgheight","upload",450,450);' />n";
echo "<tr><td align="right"></td><td>";
$directory = XOOPS_URL."/modules/myReviews/images/shots/";
printf(_MD_MUSTBEVALID,$directory);
echo "</td></tr>n";
echo "<tr><td align="right" valign="top" nowrap>"._MD_DESCRIPTIONC."</td><td>n";
$sform = new XoopsThemeForm( _MD_DESCRIPTIONC, "storyform", "index.php" );
$wysiwyg_text_area = new XoopsFormWysiwygTextArea(_MD_DESCRIPTIONC, 'description', $description , '100%', '400px','');
$wysiwyg_text_area->setUrl("/class/wysiwyg");
$sform->addElement( $wysiwyg_text_area );
$button_tray = new XoopsFormElementTray( '', '' );
$button_tray->addElement( new XoopsFormButton( '', 'submit', _MD_APPROVE, 'submit' ) );
$sform->addElement( $button_tray );
$sform->display();
//}
//echo "<textarea name=description cols="60" rows="5">$description</textarea>n";
//
echo "</td></tr>n";
echo "</table>n";
echo myTextForm("index.php?op=delNewDownload&lid=$lid",_MD_DELETE);
echo "<br><br>";