# 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 | Last Login |
--- | --- | --- | --- | ---
$UserObj) { $LLT = strtotime($UserObj->Get("LastLoginDate")); $LastLogin = ($LLT < 0) ? "(never logged in)" : ((date("Ymd", $LLT) == date("Ymd")) ? date("g:ia", $LLT) : ((date("Ymd", ($LLT - (24*60*60))) == date("Ymd")) ? "Yesterday at ".date("g:ia", $LLT) : ((date("Y", $LLT) == date("Y")) ? date('F jS \a\t g:ia', $LLT) : date('F jS, Y \a\t g:ia', $LLT)))); $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); } ?>