ShowWarnings
void CAdminTabControl::ShowWarnings( string $FORM, CAdminException $messages[, mixed $arFields = false] )
The method shows form processing errors by highlighting form fields whose values are invalid. Deprecated method.
Parameters
Parameter | Description |
---|---|
FORM | Attribute value for the form name tag. |
messages | Instance of CAdminException class, containing error descriptions. |
arFields | Array of "parameter_with_error_id" => "field_name_in_form" matches. Optional. Fields with the same name as the parameter ID with error are searched by default. |
Example
if($e = $APPLICATION->GetException()) $message = new CAdminMessage(GetMessage("currency_error"), $e); if($message) echo $message->Show(); <form method="post" action="<?$APPLICATION->GetCurPage()?>" name="form1"> <!-- форма --> </form> <?$tabControl->ShowWarnings("form1", $message);?>
© «Bitrix24», 2001-2024