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)) { ?>

$Message) { ?>

Login Information
User Name | " size="23" maxlength="64" />
Password | (must be at least 6 characters long)
Password (Again) | (passwords are case-sensitive)
E-mail Address | " size="30" maxlength="80" /> (must be valid to activate account)
E-mail Address (Again) | " size="30" maxlength="80" />
User Information (Optional)
Real Name | " size="23" maxlength="40" />
Web Site | " size="23" maxlength="80">
Address | " size="23" maxlength="60" />
| " size="23" maxlength="60" />
City | " size="23" maxlength="40" />
State |
Zip Code | " size="10" maxlength="10">
Country | " size="23" maxlength="40">
Additional Options