function b_faqs_recent_questions_edit($options) { include_once XOOPS_ROOT_PATH . "/modules/smartfaq/include/functions.php"; $form = sf_createCategorySelect($options[0]); $form .= " <br>" . _MB_SF_ORDER . " <select name='options[]'>"; $form .= "<option value='datesub'"; if ($options[1] == "datesub") { $form .= " selected='selected'"; } $form .= ">" . _MB_SF_DATE . "</option>\n"; $form .= "<option value='counter'"; if ($options[1] == "counter") { $form .= " selected='selected'"; } $form .= ">" . _MB_SF_HITS . "</option>\n"; $form .= "<option value='weight'"; if ($options[1] == "weight") { $form .= " selected='selected'"; } $form .= ">" . _MB_SF_WEIGHT . "</option>\n"; $form .= "</select>\n"; $form .= " " . _MB_SF_DISP . " <input type='text' name='options[]' value='" . $options[2] . "' /> " . _MB_SF_QUESTIONS . ""; $form .= " <br>" . _MB_SF_CHARS . " <input type='text' name='options[]' value='" . $options[3] . "' /> " . _MB_SF_LENGTH . ""; $form .= "<br />" . _MB_SF_SHOW_DATE . " <input type='radio' id='options[]' name='options[]' value='1'"; if ($options[4] == 1) { $form .= " checked='checked'"; } $form .= " /> " . _YES . "<input type='radio' id='options[]' name='options[]' value='0'"; if ($options[4] == 0) { $form .= " checked='checked'"; } $form .= " /> " . _NO . ""; return $form; }
function b_faqs_most_viewed_edit($options) { global $xoopsDB, $xoopsModule, $xoopsUser; include_once XOOPS_ROOT_PATH . "/modules/smartfaq/include/functions.php"; $form = sf_createCategorySelect($options[0]); $form .= " <br />" . _MB_SF_DISP . " <input type='text' name='options[]' value='" . $options[1] . "' /> " . _MB_SF_FAQS . ""; $form .= " <br />" . _MB_SF_CHARS . " <input type='text' name='options[]' value='" . $options[2] . "' /> " . _MB_SF_LENGTH . ""; return $form; }