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  "hidden" name="op" value="addDownload">";
echo 
"right"nowrap>"._MD_SHOTIMAGE."n";
echo 
"text" name="logourl" value="$logourl" size="50" maxlength="60">n"
echo 
"/modules/myReviews/upload.php?img_path=$img_path&target=logourl&logo=1&target2=cimgwidth&target3=cimgheight","upload",450,450);' />n";
echo 
"right">";
$directory XOOPS_URL."/modules/myReviews/images/shots/";
printf(_MD_MUSTBEVALID,$directory);
echo 
"n";
echo 
"right" valign="top" nowrap>"._MD_DESCRIPTIONC."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 "$descriptionn";
//
echo "n";
echo 
"n";
echo 
myTextForm("index.php?op=delNewDownload&lid=$lid",_MD_DELETE);
echo 
"

"
;

Login

Who's Online

438 user(s) are online (311 user(s) are browsing Support Forums)


Members: 0


Guests: 438


more...

Donat-O-Meter

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

Latest GitHub Commits