* Trove
*
* Copyright 1999-2001 (c) VA Linux Systems
- * Copyright 2010 (c) Franck Villaume
+ * Copyright 2010-2011, Franck Villaume - Capgemini
* http://fusionforge.org/
*
- * This file is part of FusionForge.
- *
- * FusionForge is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
*
* FusionForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with FusionForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
// ################################## Trove Globals
/**
* trove_catselectfull() - Returns full select output for a particular root
*
- * @param int The node
- * @param string The category to pre-select
- * @param string THe select-box name
+ * @param int The node
+ * @param string The category to pre-select
+ * @param string THe select-box name
*/
-function trove_catselectfull($node,$selected,$name) {
- print "<br /><select name=\"$name\">";
+function trove_catselectfull($node, $selected, $name, $title='') {
+ print '<br /><select class="trove-nodes" name="'.$name.'" title="'.util_html_secure($title).'">';
print ' <option value="0">'._('None Selected')."</option>\n";
- $res_cat = db_query_params ('
- SELECT trove_cat_id,fullpath
- FROM trove_cat
- WHERE root_parent=$1
- ORDER BY fullpath',
+ $res_cat = db_query_params('
+ SELECT trove_cat_id,fullpath
+ FROM trove_cat
+ WHERE root_parent=$1
+ ORDER BY fullpath',
array($node));
while ($row_cat = db_fetch_array($res_cat)) {
if ($a_complete) {
for ($i=0;$i<$folders_len;$i++) {
if ($a_cats) {
- $return .= '<a href="'.util_make_url ('/softwaremap/trove_list.php?form_cat='.$folders_ids[$i].$discrim_url).'">';
+ $return .= '<a href="'.util_make_url ('/softwaremap/trove_list.php?cat=c&form_cat='.$folders_ids[$i].$discrim_url).'">';
}
$return .= ($folders[$i]);
if ($a_cats) {
}
} else {
if ($a_cats) {
- $return .= '<a href="'.util_make_url ('/softwaremap/trove_list.php?form_cat='.$folders_ids[$folders_len-1].$discrim_url).'">';
+ $return .= '<a href="'.util_make_url ('/softwaremap/trove_list.php?cat=c&form_cat='.$folders_ids[$folders_len-1].$discrim_url).'">';
}
$return .= ($folders[$folders_len-1]);
if ($a_cats) {
if ($filterisalreadyapplied) {
$return .= ' <strong>'._('(Now Filtering)').'</strong> ';
} else {
- $return .= ' <a href="'.util_make_url ('/softwaremap/trove_list.php?form_cat='.$form_cat);
+ $return .= ' <a href="'.util_make_url ('/softwaremap/trove_list.php?cat=c&form_cat='.$form_cat);
if ($discrim_url) {
$return .= $discrim_url.','.$folders_ids[$folders_len-1];
} else {
// mode: php
// c-file-style: "bsd"
// End:
-
-?>