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; } } } ?>
(Need Help?)
Advanced Search

Field: | Search Terms:
IsLoggedIn() && $G_User->HasPriv(PRIV_RESOURCEADMIN)) ? 4 : 2; } if (isset($G_SearchGroups)) { return max(count(SavedSearch::GetSearchFieldNames($G_SearchGroups)), $Default); } return $Default; } PrintSearchTextFormEntries(GetCorrectNumFormEntries()); ?>

Save Search As: Records per page:
IsLoggedIn() ) { ?>
Show Limits (Optional) (narrow down search by )

: Minimum Rating:

IsLoggedIn() ) { ?>
Manage Your Searches
Load Saved Search:
>
:
Minimum Cumulative Rating:
:
Add another field