ABC CMS Pro
10.12.2004

Tags list for 'enquiry' module

Note! Every template must begin with <%tloop section%> and finish with <%tendloop section%>
All the other tags are contained between them.

This module creates web forms for sending the messages and enquiries from a web site.

Enquiry system module is developed for construction of various web forms. Afterwards data from web form is sent to an indicated e-mail address (or a list of e-mail addresses with a possibility to select them). The data are also stored at a website database and can be processed and viewed later.

You can construct forms from elements and set the e-mail of the addressee. You can create a category of recipients and then add new recipients.

TO post web forms use the following tags and HTML code

<form action="" method="post">

<%tloop enquiry_form_#%>

<%tlv name%> // form name

<%tlv enquiry_success%> // enquiry success message

<%tloop enquiry_errors%>
<%tlv error%>
<%tendloop enquiry_errors%> // enquiry errors

<%tloop fields%>

<%tlv required%> // whether the field is required ( if the sign * denotes whether the field is required or not write <%tif required%> * <%tendif required%> - you can uinsert any value instead of *

<%tlv name%> // field name
<%tlv value%> // form element with the value set from the admin panel (input, select, textarea etc.)

<%tif required_error%>
// put your required error message for current field here
<%tendif required_error%>

<%tendloop fields%>

<%tendloop enquiry_form_#%>

</form>

// where # -is id of the form that must be posted

If there exists e-mail addresss for the form then the enquiry is sent to that address. If in the form a recipient category is set and added the field 'Recipients' at the admin panel then enquiries are sent to the set e-mail address. If recipient category is not set for the form and the field 'Recipients' is not set at the admin panel then the enquiry is delivered to all recipients from the designated category.