Go to the source code of this file.
Namespaces | |
namespace | pragyan |
Widget Framework for Pragyan CMS (c) 2010 Pragyan Team http://www.gnu.org/licenses/ GNU Public License For more details, see README Add support for File Upload/Download via the widget's configurations Reload Widgets ,Get Widget Instances. see bottom. | |
Functions | |
generateRegistrationForm ($moduleCompId, $userId, $action="", $disableCaptcha=false) | |
getCaptchaHtml () | |
getFormElementsHtmlAsArray ($moduleCompId, $userId, &$jsValidationFunctions, &$containsFileUploadFields) | |
getFormElementInputField ($moduleComponentId, $elementId, $value="", &$javascriptCheckFunctions) | |
getFormElementTextarea ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput) | |
TEXTAREA. | |
getFormElementPassword ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput) | |
PASSWORD. | |
getFormElementSelect ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput) | |
SELECTBOX. | |
getFormElementRadio ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput) | |
RADIO BUTTONS. | |
getFormElementCheckbox ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput) | |
CHECKBOXES. | |
getFormElementFile ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput) | |
FILE UPLOAD FIELD. | |
getFormElementText ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput) | |
TEXTBOXES. | |
getFormElementDate ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput) | |
DATE AND DATETIME CONTROLS. | |
getFormElementDatetime ($elementName, $value, $isRequired, $elementHelpName, $elementTooltip, $elementSize, $elementTypeOptions, $elementMoreThan, $elementLessThan, $elementCheckInt, &$jsOutput, &$htmlOutput, $type="datetime") |
generateRegistrationForm | ( | $ | moduleCompId, | |
$ | userId, | |||
$ | action = "" , |
|||
$ | disableCaptcha = false | |||
) |
The actual registration form!!! For which we made all this preparation...
$action | is the form action |
In case it is blank, it means this function was called by actionView in that case, action is "."
In case it is ./+editregistrants&subaction=editregistrant&useremail=<useremail>, it means this function was called by edit registrants
getFormElementInputField to get the input fields
TODO : If the form is associated with a group, the form HAS to give the user the option to unregister from it.
Initialize the form body
Get HTML for all the fields for the form
SELECT form details
Definition at line 30 of file registrationformgenerate.php.
getCaptchaHtml | ( | ) |
Definition at line 107 of file registrationformgenerate.php.
getFormElementCheckbox | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput | |||
) |
CHECKBOXES.
Definition at line 320 of file registrationformgenerate.php.
getFormElementDate | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput | |||
) |
DATE AND DATETIME CONTROLS.
Definition at line 406 of file registrationformgenerate.php.
getFormElementDatetime | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput, | |||
$ | type = "datetime" | |||
) |
Definition at line 410 of file registrationformgenerate.php.
getFormElementFile | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput | |||
) |
FILE UPLOAD FIELD.
Check $value == '', because if it isn't, there's no point making the user upload the same file again
Definition at line 355 of file registrationformgenerate.php.
getFormElementInputField | ( | $ | moduleComponentId, | |
$ | elementId, | |||
$ | value = "" , |
|||
&$ | javascriptCheckFunctions | |||
) |
Definition at line 206 of file registrationformgenerate.php.
getFormElementPassword | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput | |||
) |
PASSWORD.
Definition at line 266 of file registrationformgenerate.php.
getFormElementRadio | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput | |||
) |
RADIO BUTTONS.
Definition at line 295 of file registrationformgenerate.php.
getFormElementSelect | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput | |||
) |
SELECTBOX.
Definition at line 272 of file registrationformgenerate.php.
getFormElementsHtmlAsArray | ( | $ | moduleCompId, | |
$ | userId, | |||
&$ | jsValidationFunctions, | |||
&$ | containsFileUploadFields | |||
) |
Check if the user has already registered to this form, If yes, load default values for each field. We'll keep this as an associative array, relating element id to value
Definition at line 151 of file registrationformgenerate.php.
getFormElementText | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput | |||
) |
TEXTBOXES.
Definition at line 375 of file registrationformgenerate.php.
getFormElementTextarea | ( | $ | elementName, | |
$ | value, | |||
$ | isRequired, | |||
$ | elementHelpName, | |||
$ | elementTooltip, | |||
$ | elementSize, | |||
$ | elementTypeOptions, | |||
$ | elementMoreThan, | |||
$ | elementLessThan, | |||
$ | elementCheckInt, | |||
&$ | jsOutput, | |||
&$ | htmlOutput | |||
) |
TEXTAREA.
Definition at line 249 of file registrationformgenerate.php.