$submissionform_main->set_var('LANG_PREVIEW', $LANG_GF01['PREVIEW']); $submissionform_main->set_var('required', $required); $submissionform_main->set_var('subject', $subject); $submissionform_main->set_var('smilies', $smilies); $submissionform_main->set_var('LANG_attachments', $LANG_GF10['attachments']); $submissionform_main->set_var('LANG_maxattachments', sprintf($LANG_GF10['maxattachments'], $CONF_FORUM['maxattachments'])); // Check and see if the filemgmt plugin is installed and enabled if (function_exists('filemgmt_buildAccessSql')) { // Generate the select dropdown HTML for the filemgmt categories $submissionform_main->set_var('filemgmt_category_options', gf_makeFilemgmtCatSelect($uid)); $submissionform_main->set_var('LANG_usefilemgmt', $LANG_GF10['usefilemgmt']); $submissionform_main->set_var('LANG_description', $LANG_GF10['description']); $submissionform_main->set_var('LANG_category', $LANG_GF10['category']); } elseif (function_exists('fm_recursiveCatAddFileList')) { // Generate the select dropdown HTML for the nexfile categories user has upload_direct access right $htmlOptions = fm_recursiveCatAddFileList(''); if ($htmlOptions == '') { $submissionform_main->set_var('show_filemgmt_option', 'none'); } else { $html = '<select name="filemgmtcat" style="text-indent: 0px;"><option value="0">' . $LANG_FM02['SELECT_CATEGORY'] . '</option>'; $html .= $htmlOptions . '</select>'; $submissionform_main->set_var('filemgmt_category_options', $html); $submissionform_main->set_var('LANG_usefilemgmt', $LANG_GF10['usefilemgmt']); $submissionform_main->set_var('LANG_description', $LANG_GF10['description']); $submissionform_main->set_var('LANG_category', $LANG_GF10['category']); } } else { $submissionform_main->set_var('show_filemgmt_option', 'none'); } if ($uid == 1) { $submissionform_main->set_var('hide_notify', 'none');
$blockg->closeForm(); /************************************************/ //discussion board /************************************************/ $pcid = DB_getItem($_TABLES['prj_projects'], 'cid', "pid = {$pid}"); if ($_POST['select_cid'] == '') { $cid = DB_getItem($_TABLES['prj_projects'], 'cid', "pid = {$pid}"); } else { $cid = $_POST['select_cid']; } if ($A['is_using_docmgmt_flag'] == 'Y') { $pcname = DB_getItem($_TABLES['nxfile_categories'], "name", "cid={$pcid}"); $cname = DB_getItem($_TABLES['nxfile_categories'], "name", "cid={$cid}"); $selectCategoryHTML = '<span style="padding-left:10px;">Select Category:'; $selectCategoryHTML .= '<select name="select_cid"><option value="' . $pcid . '">' . $pcname . '</option>'; $selectCategoryHTML .= fm_recursiveCatAddFileList($cname, $pcid) . '</select>'; $selectCategoryHTML .= '<input type="submit" value="Go"></input></span>'; if (DB_count($_TABLES['nxfile_categories'], 'cid', $cid) > 0) { $blockPage->bornesNumber = "5"; $block4 = new block(); $block4->form = "docP"; $block4->openForm($_CONF['site_url'] . "/nexproject/viewproject.php?" . "#" . $block4->form . "Anchor"); $block4->headingToggle($strings["document"]); if ($membertoken != 0) { $block4->openPaletteIcon(); $block4->paletteIcon(0, "view", $strings["view"]); $block4->paletteIcon(1, "info", $strings["add"]); $block4->paletteIcon(2, "delete", $strings["delete"]); $block4->closePaletteIcon($selectCategoryHTML); } $block4->borne = $blockPage->returnBorne("4");