# User List

Privilege: GetPrivileges(TRUE, FALSE); foreach ($PrivList as $Id => $PrivName) { $PrivList[$Id] = preg_replace("/ Administrator/", " Admin", $PrivList[$Id]); $PrivList[$Id] = preg_replace("/Can Post Resource Comments/" , "Can Post Comments", $PrivList[$Id]); } $PrivList = array(-1 => "--") + $PrivList; PrintOptionList("F_Privilege", $PrivList, GetFormValue("F_Privilege"), TRUE, 1, 1, FALSE, NULL, "auto"); ?> Search: "(any field)", "UserName" => "User", "EMail" => "Email", "RealName" => "Real Name", "Address" => "Address", "State" => "State", "ZipCode" => "Zip Code", "Country" => "Country", "LastLoginDate" => "Last Login Date", "CreationDate" => "Signup Date", ); PrintOptionList("F_Field", $FieldList, GetFormValue("F_Field"), FALSE, 1, 1, FALSE, NULL, "auto"); $ConditionList = array( "contains" => "contains", "equals" => "equals", "is before" => "is before", "is after" => "is after", ); PrintOptionList("F_Condition", $ConditionList, GetFormValue("F_Condition"), FALSE, 1, 1, FALSE, NULL, "auto"); ?> "/> GO

Select | User | Email | Signup Date | Last Login |
--- | --- | --- | --- | --- | ---
$UserObj) { $SignupDate = GetPrettyTimestamp( $UserObj->Get("CreationDate"), TRUE, "(unknown)", FALSE); $LastLogin = GetPrettyTimestamp( $UserObj->Get("LastLoginDate"), TRUE, "(never logged in)", FALSE); $SafeUserId = defaulthtmlentities($UserObj->Id()); ?>
Id()) print 'disabled="disabled"'; ?> /> | Get("UserName"); ?> | Get("EMail"); ?> |  |  | edit
(no users were found that met the specified criteria)

$G_ItemsPerPage) { $ListPositionMsg = "Users ".number_format($G_StartingIndex + 1) ." - ".number_format(min(($G_StartingIndex + $G_ItemsPerPage), $G_TotalItems)) ." of ".number_format($G_TotalItems).""; $TransportLink = "index.php?P=UserList&F_UserIdChecksum=".$G_UserIdChecksum; $FieldsToAddToLink = array( "F_Privilege", "F_Field", "F_Condition", "F_SearchText", "SF", "SA", ); foreach ($FieldsToAddToLink as $Field) { if (GetFormValue($Field) !== NULL) { $TransportLink .= "&".$Field."=".urlencode(GetFormValue($Field)); } } PrintTransportControls($TransportLink, $G_StartingIndex, $G_ItemsPerPage, $G_TotalItems, $ListPositionMsg); } ?>