function file_editform($articleid,$fileid) { global $xoopsModule; include_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname()."/class/wfsfiles.php"; include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; $file = new WfsFiles($fileid); $sform = new XoopsThemeForm(_WFS_POSTNEWARTICLE, "storyform", xoops_getenv('PHP_SELF')); $sform->addElement(new XoopsFormHidden('articleid',$articleid)); $sform->addElement(new XoopsFormHidden('fileid', $fileid)); $sform->addElement(new XoopsFormHidden('op', 'filesave')); $sform->addElement(new XoopsFormText(_WFS_DOWNLOADNAME, 'downloadname', 40, 40, $file->getDownloadname("F"))); $sform->addElement(new XoopsFormText(_WFS_FILESHOWNAME, 'fileshowname', 40, 80, $file->getFileShowName("F"))); $sform->addElement(new XoopsFormTextArea(_WFS_FILEDESCRIPT, 'filedescript', $file->getFiledescript("F"), 10, 60)); $button_tray = new XoopsFormElementTray('',''); $button_tray->addElement(new XoopsFormButton('', 'post', _WFS_POST, 'submit')); $sform->addElement($button_tray); $sform->display(); }