Id()] = $Schema->Name() . " Schema"; } $OptList = new HtmlOptionList("SC", $Options, $SchemaInUse->Id()); $OptList->SubmitOnChange(TRUE); $OptList->PrintHtml(); } /** * Print a search URL to find resources associated with a given controlled name. * @param ControlledName $CName Target controlled name */ function GetSearchUrl(ControlledName $CName) { $SearchParams = new SearchParameterSet(); $SearchParams->AddParameter( "=".$CName->Name(), $CName->FieldId()); return "index.php?P=SearchResults&" .$SearchParams->UrlParameterString(); } # ----- MAIN ----------------------------------------------------------------- $SafeSchemaId = defaulthtmlentities($Schema->Id()); ?>

# Edit Options for GetDisplayName(); ?>

(selection on the left selects the default valueAllowMultiple()) print "s"; ?> for field)

"(no change)") + $G_OptionNames; $Index = 0; $DefaultValue = $G_Field->DefaultValue(); foreach ($G_Options as $Id => $CName) { $Qualifier = $CName->Qualifier(); $QName = $Qualifier ? $Qualifier->Name() : ""; $Selected = is_array($DefaultValue) ? in_array($Id, $DefaultValue) : $Id == $DefaultValue; if ($Selected) { $DefaultFound = TRUE; } ?>
AllowMultiple()) { ?> /> /> |  |  | (InUse(); ?> resources) | InUse()) { ?> remap to PrintHtml(); ?> | delete
AllowMultiple()) { ?> /> | no default | "> add new option: UsesQualifiers()) { $Qualifiers = $G_Field->AssociatedQualifierList(); if (count($Qualifiers) == 1 && $G_Field->HasItemLevelQualifiers() != TRUE) { $QualifierIds = array_keys($Qualifiers); $Qualifier = array_pop($Qualifiers); $QualifierId = array_pop($QualifierIds); print($Qualifier); print(''); } else if (count($Qualifiers) >= 1) { $Qualifiers = array(-1 => "--") + $Qualifiers; (new HtmlOptionList("F_AddQualifier", $Qualifiers, $G_Field->DefaultQualifier()))->PrintHtml(); } } ?> |

# Edit Option List

No Option fields were found for editing.

GetItemCount(); foreach ($G_OptionFields as $Field) { $CNFactory = new ControlledNameFactory($Field->Id()); if ($ResourceCount) { $UsageCount = $CNFactory->GetUsageCount(); $UsagePercentage = round(($UsageCount * 100) / $ResourceCount); } else { $UsageCount = 0; $UsagePercentage = 0; } ?>
GetDisplayName()); ?> | (GetPossibleValues())); ?> values) | edit | Description()); ?> | Assigned to Resources (%)