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 | |
getLastUpdateDate ($moduleComponentId, $userId) | |
getRegistrationDate ($moduleComponentId, $userId) | |
generateFormDataRow ($moduleCompId, $userId, $columnList, $showProfileData=false) | |
getColumnList ($moduleCompId, $showUserEmail, $showUserFullName, $showRegistrationDate, $showLastUpdateDate, $showUserProfileData=false) | |
getDistinctRegistrants ($moduleCompId, $rowSortField, $rowSortOrder) | |
generateFormDataTable ($moduleComponentId, $sortField, $sortOrder, $action= 'viewregistrants') |
generateFormDataRow | ( | $ | moduleCompId, | |
$ | userId, | |||
$ | columnList, | |||
$ | showProfileData = false | |||
) |
Definition at line 48 of file viewregistrants.php.
generateFormDataTable | ( | $ | moduleComponentId, | |
$ | sortField, | |||
$ | sortOrder, | |||
$ | action = 'viewregistrants' | |||
) |
generateFormDataRow($moduleCompId,$userId) getFormElementInfo($moduleCompId) (once it is made in formelementdescclass.php)
$rowSortOrder | "asc" or "desc" | |
$rowSortField | "registrationdate" or "lastupdated" or "useremail" or "userfullname" or "elementid_".$i | |
$showEditButtons | Whether to show edit and delete buttons or not: helps with editregistrants |
Definition at line 215 of file viewregistrants.php.
getColumnList | ( | $ | moduleCompId, | |
$ | showUserEmail, | |||
$ | showUserFullName, | |||
$ | showRegistrationDate, | |||
$ | showLastUpdateDate, | |||
$ | showUserProfileData = false | |||
) |
Definition at line 120 of file viewregistrants.php.
getDistinctRegistrants | ( | $ | moduleCompId, | |
$ | rowSortField, | |||
$ | rowSortOrder | |||
) |
$userQuery = "SELECT DISTINCT(`form_elementdata`.`user_id`) FROM `$userTable`, `form_elementdata` WHERE " . "`page_modulecomponentid` = $moduleCompId AND `$userTable`.`user_id` = `form_elementdata`.`user_id` " . "ORDER BY `$col` $rowSortOrder";
TODO: Implement the sort here.
SELECT * FROM form_elementdesc des LEFT JOIN (form_regdata reg LEFT JOIN form_elementdata dat ON reg.page_modulecomponentid = dat.page_modulecomponentid AND reg.user_id = dat.user_id AND reg.page_modulecomponentid = 2) ON des.page_modulecomponentid = dat.page_modulecomponentid AND des.form_elementid = dat.form_elementid WHERE dat.`form_elementid` = 3 ORDER BY dat.form_elementdata
Definition at line 151 of file viewregistrants.php.
getLastUpdateDate | ( | $ | moduleComponentId, | |
$ | userId | |||
) |
getFormElementData All elements will be simple text
But only for uploads, the thing returned will be file id of uploaded file. That has to be replaced by the appropriate file link.
Also check which extra fields have to be appended and append them : useremail, userfullname, registrationdate, lastupdated 13 December, 2007 TODO To check for Uploads file condition and add the file path in the array..in form of html text
Definition at line 34 of file viewregistrants.php.
getRegistrationDate | ( | $ | moduleComponentId, | |
$ | userId | |||
) |
Definition at line 41 of file viewregistrants.php.