[comment] ui_template: Yes ui_template_name: templates/standard ui_template_layout: LOGOBAR, MENUBAR, LEFTSIDE, UI_CONTENT, NO_RIGHT, MENUBOTTOM, COPYRIGHT ui_template_description: Standard page with top and left areas. Menu bar and copyright at bottom. ui_control_element: page_title : ui_control_element: members_only : 0=No,1=Yes ui_control_description: page_title: Page title ui_control_description: members_only : Members only [/comment] [set page_title]Send us feedback[/set] __LOGOBAR__ __MENUBAR__ __LEFTSIDE__ [comment] The check_form area is a Interchange scratch variable. It simply sets an area in the user session to a particular value. If this is referenced in an mv_click or mv_check variable, though, the Interchange tags inside will be interpreted and other variables may be set. mv_click sets variable values BEFORE they are put in the user's session. It is a way of setting multiple variables in one click; or of running a "subroutine". mv_check sets variable values AFTER they are put in the user's session. It is a way of checking for out of bounds conditions, or running subroutines that should occur after values are set. The below checks for a value in the variable "feedback" to make sure an empty message is not submitted. It also checks for a subject. If both are present, then it sets a tracking number with the [counter] UserTag (probably defined in flycat.cfg) and sets mv_nextpage to a place that will submit the form contents with a subroutine called "form_mail". [/comment] [set check_form] [if !value feedback_message] form_errors=An empty message won't do us much good! mv_nextpage=@@MV_PAGE@@ [elsif !value feedback_subject] form_errors=Please give us a subject so we can track the message mv_nextpage=@@MV_PAGE@@ [/elsif] [else] tracking_number=[counter etc/feedback.counter] mv_nextpage=special/feedback [/else] [/if] [/set] [comment] [quick-table] is a UserTag that just makes a little two-column table. [/comment]
[set feedback_active]1[/set]
[quick-table] :[title-bar 400 4]Feedback[/title-bar] [if value form_errors] : [value form_errors][value name=form_errors set=""][/if] Subject: Name: (optional) Email: (optional) Message: : [/quick-table]
__NO_RIGHT__ __MENUBOTTOM__ __COPYRIGHT__