function showBrowseForm($options)
{
global $CFG_GLPI;
if (!$CFG_GLPI["use_public_faq"] && !Session::haveRightsOr(self::$rightname, array(READ, self::READFAQ))) {
return false;
}
// Default values of parameters
$params["knowbaseitemcategories_id"] = "";
if (is_array($options) && count($options)) {
foreach ($options as $key => $val) {
$params[$key] = $val;
}
}
$faq = !Session::haveRight(self::$rightname, READ);
// Category select not for anonymous FAQ
if (Session::getLoginUserID() && !$faq) {
echo "<div>";
echo "<form method='get' action='" . $this->getSearchURL() . "'>";
echo "<table class='tab_cadre_fixe'>";
echo "<tr class='tab_bg_2'><td class='right' width='50%'>" . __('Category') . " ";
KnowbaseItemCategory::dropdown(array('value' => $params["knowbaseitemcategories_id"]));
echo "</td><td class='left'>";
echo "<input type='submit' value=\"" . _sx('button', 'Post') . "\" class='submit'></td>";
echo "</tr></table>";
if (isset($options['item_itemtype']) && isset($options['item_items_id'])) {
echo "<input type='hidden' name='item_itemtype' value='" . $options['item_itemtype'] . "'>";
echo "<input type='hidden' name='item_items_id' value='" . $options['item_items_id'] . "'>";
}
Html::closeForm();
echo "</div>";
}
}