Example #1
0
					$dupform->addElement(new XoopsFormText(_AM_NEWCATEGORYNAME, 'title', 50, 80, $xt->title()), true);

// multi langauge
//					$dupform->addElement(new XoopsFormRadioYN('Also copy articles', 'dupcontent', 0));
					$dupform->addElement(new XoopsFormRadioYN(_AM_DUPLICATE_ARTICLES, 'dupcontent', 0));

					$dup_tray = new XoopsFormElementTray('','');
					$dup_tray->addElement(new XoopsFormHidden('modify', '1' ));
					$dup_tray->addElement(new XoopsFormHidden('op', 'dup' ));
					$butt_dup=new XoopsFormButton('', '', _AM_DUPLICATE, 'submit');
					$butt_dupct=new XoopsFormButton('', '', _AM_DUPLICATEWSUBS, 'submit');
					$butt_dup->setExtra('onclick="this.form.elements.op.value=\'dup\'"');
					$butt_dupct->setExtra('onclick="this.form.elements.op.value=\'dupsubs\'"');
					$dup_tray->addElement($butt_dup);
					$dup_tray->addElement($butt_dupct);
					$dupform->addElement($dup_tray);
					$dupform->display();
					// -- Skalpa [/end]
				}
				
               	if (WfsCategory::countByArticle() == 0) {
                	$xt = new WfsCategory();
				}
					editCategoryForm();
				break;
}

wfsfooter();
xoops_cp_footer();

?>