UserCanAuthorField($GLOBALS["G_User"], $Field)) { continue; } # skip file and image fields because there's no resource with which to # associate the user with if ($Field->Type() === MetadataSchema::MDFTYPE_IMAGE || $Field->Type() === MetadataSchema::MDFTYPE_FILE) { continue; } $SafeDisplayName = defaulthtmlentities($Field->GetDisplayName()); ?> : Delete(); } /** * Print additional form HTML. * @param array $Data Additional form HTML. */ function PrintAdditionalFormHtml(array $Data) { # extract the results $Labels = $Data["Labels"]; $InputElements = $Data["InputElements"]; $Notes = $Data["Notes"]; # append them where required for ($i = 0; $i < count($Labels); $i++) { ?> SignalEvent( "EVENT_APPEND_HTML_TO_FORM", array("PageName" => "RequestAccount", "FormName"=>"NewAccountForm", "Labels" => array(), "InputElements" => array(), "Notes" => array())); } # ----- MAIN ----------------------------------------------------------------- $ErrorMessageList = $FTool->GetErrorMessages(); $AdditionalHtml = GetAdditionalFormHtml(); $CustomFields = CWUser::GetCustomUserFields(); $HasCustomFields = count($CustomFields) > 0; $ShowAdditionalOptions = $HasCustomFields || count($AdditionalHtml["Labels"]) > 0; ?>

Create an Account

IncomingFieldValuesHaveErrors() && count($ErrorMessageList)) { ?>
Login Information
" size="23" maxlength="64" />
(must be at least 6 characters long)
(passwords are case-sensitive)
" size="30" maxlength="80" /> (must be valid to activate account)
" size="30" maxlength="80" />
User Information (Optional)
" size="23" maxlength="40" />
" size="23" maxlength="80">
" size="23" maxlength="60" />
" size="23" maxlength="60" />
" size="23" maxlength="40" />
" size="10" maxlength="10">
" size="23" maxlength="40">
Additional Options