Quote from: Vampire at Jun 15, 2011, 06:36 PM
Уже весь мозг себе съел.
Тривиальная задача:
Есть форма, данные из которой никуда не надо отправлять, а просто вывести на определенной странице (со своим шаблоном).
Ну типа: заполнили форму и получили заполненный печатный бланк.
КАК???
&eFormOnBeforeMailSent (optional)
Expects a function name. This function will be called after the form has been validated and before the report and thankyou templates have been parsed and any emails have been sent out. See this example on how to use the events.
&eFormOnMailSent (optional)
Expects a function name. This function is called after all templates have been parsed and any emails were sent.
&eformOnBeforeFormParse (optional)
Expects a function name. The function is called after the templates are loaded and the formid is found valid. The function should accomodate the following parameter: &$templates - (as reference) an associative array of loaded templates with indexes ’tpl’, ’report’,’thankyou’ & ’autotext’. Be aware that the latter three will only have a value if the form has been posted!
&eFormOnBeforeFormMerge (optional)
Expects a function name. This function will only be called whenever the form is displayed and just before all placeholders are merged. The function should accomodate the following parameter: &$fields - (as reference) an associative array of field and placeholder values.
&eFormOnValidate (optional)
Expects a function name. This function will be called directly after the form validation has taken place. You can use this event to add your own extra validation logic. The function should accomodate the following parameters
&$fields - (as reference) an associative array of field and placeholder values.
&$vMsg - (as reference) a numeric array of validation error messages.
&$rMsg - (as Reference) a numeric array of missing required fields.
Ну и собственно
thankyou.