function newbb_make_jumpbox($forum_id = 0) { $box = '<form name="forum_jumpbox" method="get" action="viewforum.php" onsubmit="javascript: if (document.forum_jumpbox.forum.value < 1) {return false;}">'; $box .= '<select class="select" name="forum" onchange="javascript: if (this.options[this.selectedIndex].value >0 ) { document.forms.forum_jumpbox.submit();}">'; $box .= '<option value=0>-- ' . _MD_SELFORUM . ' --</option>'; $box .= newbb_forumSelectBox($forum_id); $box .= "</select> <input type='submit' class='button' value='" . _GO . "' /></form>"; unset($forums, $categories); return $box; }
$forum_handler->updateAll("cat_id", $cid, new Criteria("forum_id", "(" . implode(", ", $forums) . ")", "IN")); } $forum_handler->delete($forum_obj); mod_clearCacheFile("forum", "newbb"); $forum_handler->synchronization($forum_dest); unset($forum_dest); mod_clearCacheFile("forum", "newbb"); redirect_header('./admin_forum_manager.php?op=manage', 2, _AM_NEWBB_MSG_FORUM_MERGED); } else { redirect_header('./admin_forum_manager.php?op=manage', 2, _AM_NEWBB_MSG_ERR_FORUM_MOVED); } exit; } else { $box = '<select name="dest_forum">'; $box .= '<option value=0 selected>' . _SELECT . '</option>'; $box .= newbb_forumSelectBox($forum_id, "all"); $box .= '</select>'; echo '<form action="' . xoops_getenv('PHP_SELF') . '" method="post" name="forummove" id="forummove">'; echo '<input type="hidden" name="op" value="mergeforum" />'; echo '<input type="hidden" name="forum" value=' . $forum_id . ' />'; echo '<table border="0" cellpadding="1" cellspacing="0" align="center" valign="top" width="95%"><tr>'; echo '<td class="bg2" align="center"><strong>' . _AM_NEWBB_MERGETHISFORUM . '</strong></td>'; echo '</tr>'; echo '<tr><td class="bg1" align="center">' . _AM_NEWBB_MERGETO_FORUM . '</td></tr>'; echo '<tr><td class="bg1" align="center">' . $box . '</td></tr>'; echo '<tr><td align="center"><input type="submit" name="save" value=' . _GO . ' class="button" /></td></tr>'; echo '</form></table>'; } break; case "save": if ($forum_id) {
$search_url_next = $search_url . "&start={$next}"; $search_next = '<a href="' . htmlspecialchars($search_url_next) . '">' . _SR_NEXT . '</a>'; $xoopsTpl->assign("search_next", $search_next); } if ($start > 0) { $prev = $start - $limit; $search_url_prev = $search_url . "&start={$prev}"; $search_prev = '<a href="' . htmlspecialchars($search_url_prev) . '">' . _SR_PREVIOUS . '</a>'; $xoopsTpl->assign("search_prev", $search_prev); } } $search_info = _SR_KEYWORDS . ": " . $myts->htmlSpecialChars($term); if ($uname_required) { if ($search_info) { $search_info .= "<br />"; } $search_info .= _MD_USERNAME . ": " . $myts->htmlSpecialChars($search_username); } $xoopsTpl->assign("search_info", $search_info); } $select_forum = '<select name="forum[]" size="5" multiple="multiple">'; $select_forum .= '<option value="all">' . _MD_SEARCHALLFORUMS . '</option>'; $select_forum .= newbb_forumSelectBox(); $select_forum .= '</select>'; $xoopsTpl->assign_by_ref("forum_selection_box", $select_forum); $select_since = newbb_sinceSelectBox($xoopsModuleConfig['since_default']); $xoopsTpl->assign_by_ref("since_selection_box", $select_since); if ($xoopsConfigSearch['keyword_min'] > 0) { $xoopsTpl->assign("search_rule", sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min'])); } include XOOPS_ROOT_PATH . '/footer.php';
function b_newbb_author_edit($options) { mod_loadFunctions("forum", "newbb"); $form = _MB_NEWBB_CRITERIA . "<select name='options[0]'>"; $form .= "<option value='post'"; if ($options[0] == "post") { $form .= " selected='selected' "; } $form .= ">" . _MB_NEWBB_CRITERIA_POST . "</option>"; $form .= "<option value='topic'"; if ($options[0] == "topic") { $form .= " selected='selected' "; } $form .= ">" . _MB_NEWBB_CRITERIA_TOPIC . "</option>"; $form .= "<option value='digest'"; if ($options[0] == "digest") { $form .= " selected='selected' "; } $form .= ">" . _MB_NEWBB_CRITERIA_DIGESTS . "</option>"; $form .= "<option value='sticky'"; if ($options[0] == "sticky") { $form .= " selected='selected' "; } $form .= ">" . _MB_NEWBB_CRITERIA_STICKYS . "</option>"; $form .= "</select>"; $form .= "<br />" . _MB_NEWBB_DISPLAY . "<input type='text' name='options[1]' value='" . $options[1] . "' />"; $form .= "<br />" . _MB_NEWBB_TIME . "<input type='text' name='options[2]' value='" . $options[2] . "' />"; $form .= "<br /> <small>" . _MB_NEWBB_TIME_DESC . "</small>"; $form .= "<br />" . _MB_NEWBB_DISPLAYMODE . "<input type='radio' name='options[3]' value='0'"; if ($options[3] == 0) { $form .= " checked='checked'"; } $form .= " /> " . _MB_NEWBB_DISPLAYMODE_COMPACT . "<input type='radio' name='options[3]' value='1'"; if ($options[3] == 1) { $form .= " checked='checked'"; } $form .= " /> " . _MB_NEWBB_DISPLAYMODE_LITE; $form .= "<br />" . _MB_NEWBB_INDEXNAV . "<input type=\"radio\" name=\"options[4]\" value=\"1\""; if ($options[4] == 1) { $form .= " checked=\"checked\""; } $form .= " />" . _YES . "<input type=\"radio\" name=\"options[4]\" value=\"0\""; if ($options[4] == 0) { $form .= " checked=\"checked\""; } $form .= " />" . _NO; $form .= "<br /><br />" . _MB_NEWBB_FORUMLIST; $options_forum = array_filter(array_slice($options, 5), "b_newbb_array_filter"); // get allowed forums $isAll = count($options_forum) == 0 || empty($options_forum[0]) ? true : false; $form .= "<br /> <select name=\"options[]\" multiple=\"multiple\">"; $form .= "<option value=\"0\" "; if ($isAll) { $form .= " selected=\"selected\""; } $form .= ">" . _ALL . "</option>"; $form .= newbb_forumSelectBox($options_forum); $form .= "</select><br />"; return $form; }