// convoluted logic to build urls for these, but works quickly for ($j = 0; $j < sizeof($expl_discrim); $j++) { if ($i != $j) { if (!$discrim_url_b[$j]) { $discrim_url_b[$j] = '&discrim=' . $expl_discrim[$i]; } else { $discrim_url_b[$j] .= ',' . $expl_discrim[$i]; } } } } // build text for top of page on what viewier is seeing $discrim_desc = '<span style="color:red;font-size:smaller">' . _('Now limiting view to projects in the following categories') . ': </span>'; for ($i = 0; $i < sizeof($expl_discrim); $i++) { $discrim_desc .= '<br /> ' . trove_getfullpath($expl_discrim[$i]) . ' <a href="softwaremap.php?form_cat=' . $form_cat . $discrim_url_b[$i] . '">[' . _('Remove This Filter') . ']' . '</a>'; } $discrim_desc .= "<hr />\n"; } // ####################################### print '<p>' . (isset($discrim_desc) ? $discrim_desc : '') . '</p>'; // ######## two column table for key on right // first print all parent cats and current cat print '<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"><td><span style="font-family:arial,helvetica">'; $folders = explode(" :: ", $row_trove_cat['fullpath']); $folders_ids = explode(" :: ", $row_trove_cat['fullpath_ids']); $folders_len = count($folders); for ($i = 0; $i < $folders_len; $i++) { for ($sp = 0; $sp < $i * 2; $sp++) { print " ";
if ($i != $j) { if (!$discrim_url_b[$j]) { $discrim_url_b[$j] = '&discrim=' . $expl_discrim[$i]; } else { $discrim_url_b[$j] .= ',' . $expl_discrim[$i]; } } } } // build text for top of page on what viewier is seeing $discrim_desc = ' <FONT color="#FF0000"> Now limiting view to projects in the following categories: </FONT>'; for ($i = 0; $i < sizeof($expl_discrim); $i++) { $discrim_desc .= '<BR> ' . trove_getfullpath($expl_discrim[$i]) . ' <A href="/softwaremap/trove_list.php?form_cat=' . $form_cat . $discrim_url_b[$i] . '">[Remove This Filter]' . '</A>'; } $discrim_desc .= "<HR>\n"; } // ####################################### print '<P>' . $discrim_desc; // ######## two column table for key on right // first print all parent cats and current cat print '<TABLE width=100% border="0" cellspacing="0" cellpadding="0"> <TR valign="top"><TD>'; $folders = explode(" :: ", $row_trove_cat['fullpath']); $folders_ids = explode(" :: ", $row_trove_cat['fullpath_ids']); $folders_len = count($folders); for ($i = 0; $i < $folders_len; $i++) { for ($sp = 0; $sp < $i * 2; $sp++) { print " ";
if ($i != $j) { if (!$discrim_url_b[$j]) { $discrim_url_b[$j] = '&discrim=' . $expl_discrim[$i]; } else { $discrim_url_b[$j] .= ',' . $expl_discrim[$i]; } } } } // build text for top of page on what viewier is seeing $discrim_desc = '<FONT size="-1"> <span class="highlight"> ' . $Language->getText('softwaremap_trove_list', 'limit_view') . ' </span>'; for ($i = 0; $i < sizeof($expl_discrim); $i++) { $discrim_desc .= '<BR> ' . trove_getfullpath($expl_discrim[$i]) . ' <A href="/softwaremap/trove_list.php?form_cat=' . $form_cat . $discrim_url_b[$i] . '">[' . $Language->getText('softwaremap_trove_list', 'remove_view') . ']' . '</A>'; } $discrim_desc .= "<HR></FONT>\n"; } // ####################################### if (!isset($discrim_desc)) { $discrim_desc = ""; } print '<P>' . $discrim_desc; // ######## two column table for key on right // first print all parent cats and current cat print '<TABLE width=100% border="0" cellspacing="0" cellpadding="0"> <TR valign="top"><TD>'; $folders = explode(" :: ", $row_trove_cat['fullpath']); $folders_ids = explode(" :: ", $row_trove_cat['fullpath_ids']); $folders_len = count($folders);
// must also do this for EACH "get out of this limit" links // convoluted logic to build urls for these, but works quickly for ($j = 0; $j < sizeof($expl_discrim); $j++) { if ($i != $j) { if (!$discrim_url_b[$j]) { $discrim_url_b[$j] = '&discrim=' . $expl_discrim[$i]; } else { $discrim_url_b[$j] .= ',' . $expl_discrim[$i]; } } } } // build text for top of page on what viewier is seeing $discrim_desc = _('Now limiting view to projects in the following categories') . ':'; for ($i = 0; $i < sizeof($expl_discrim); $i++) { $discrim_desc .= '<br /> ' . trove_getfullpath($expl_discrim[$i]) . util_make_link('/softwaremap/trove_list.php?form_cat=' . $form_cat . $discrim_url_b[$i], '[' . _('Remove This Filter') . ']'); } $discrim_desc .= "<hr />\n"; } // ####################################### print '<p>' . (isset($discrim_desc) ? $discrim_desc : '') . '</p>'; // ######## two column table for key on right // first print all parent cats and current cat print '<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"><td>'; $folders = explode(" :: ", $row_trove_cat['fullpath']); $folders_ids = explode(" :: ", $row_trove_cat['fullpath_ids']); $folders_len = count($folders); for ($i = 0; $i < $folders_len; $i++) { for ($sp = 0; $sp < $i * 2; $sp++) { print " ";