GetFieldByName($FieldTypesOrFieldName)); } else { $Fields = $Schema->GetFields($FieldTypesOrFieldName); } # set up a counter for the loop $Counter = 0; foreach ($Fields as $CurrentField) { # if limit field is marked to be used in Advanced Search if ($CurrentField->Enabled() && $CurrentField->IncludeInAdvancedSearch() && ($G_User->HasPriv($CurrentField->ViewingPrivilege()) || $G_User->HasPriv($CurrentField->EditingPrivilege()) || ($CurrentField->ViewingPrivilege() == 0))) { if (($CurrentField->Type() & (MDFTYPE_OPTION | MDFTYPE_FLAG | MDFTYPE_USER)) || $CurrentField->Name() == "Cumulative Rating") { # print entry and increment counter if ($Counter) { print(", "); } print("".strtolower($CurrentField->Name()).""); $Counter++; } } if (is_numeric($ListLength) && $Counter >= $ListLength) { print(", and more"); break; } } } ?>
" style="display: none; min-width: 450px" > " style="display: none; min-width: 450px" > IsLoggedIn() && $G_User->HasPriv(PRIV_RESOURCEADMIN)) ? 4 : (isset($_GET['sel']) ? count(explode(",",$_GET['sel'])) : 4); } if (isset($G_SearchGroups)) { return max(count(SavedSearch::GetSearchFieldNames($G_SearchGroups)), $Default); } return $Default; } PrintSearchTextFormEntries(GetCorrectNumFormEntries()); ?>