1
Kalobotz
How do I do a delete button with the XoopsForm class?
  • 2004/10/22 19:53

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


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>";

Login

Who's Online

237 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 237


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits