GetSearchesForUser($User->Id());
# if no saved searches found
if (count($Searches) < 1)
{
$Who = AmEditingMySelf() ? "You don't": "This user doesn't";
# add message indicating no saved searches
?>
have any saved searches.
HasPriv(PRIV_RESOURCEADMIN))
{
$FreqList = SavedSearch::GetSearchFrequencyList();
}
else
{
$FreqList = SavedSearch::GetSearchFrequencyList(SavedSearch::SEARCHFREQ_HOURLY);
}
# determine if saved search mailings are enabled
$MailingsEnabled = $GLOBALS["SysConfig"]->UserAgentsEnabled();
# add table row for each saved search
foreach ($Searches as $SearchId => $Search)
{
$SafeSearchId = defaulthtmlentities($SearchId);
$SafeEncodedSearchId = defaulthtmlentities(urlencode($SearchId));
$SafeSearchName = defaulthtmlentities($Search->SearchName());
$SearchParams = $Search->SearchParameters();
$DisplayParams = SPTSearchEngine::ConvertToDisplayParameters(
$SearchParams);
?>
Mailing Frequency:
Frequency()); ?>
GetResource();
foreach ($Fields as $Field)
{
# skip fields the user isn't allowed to edit
if (!$Resource->UserCanEditField($GLOBALS["G_User"], $Field))
{
continue;
}
$SafeDisplayName = defaulthtmlentities($Field->GetDisplayName());
$IsTallRow = $Field->Type() === MetadataSchema::MDFTYPE_FILE
|| $Field->Type() === MetadataSchema::MDFTYPE_IMAGE;
?>
>
:
SignalEvent(
"EVENT_APPEND_HTML_TO_FORM",
array("PageName" => "EditUser",
"FormName"=>"UserInformation",
"Labels" => array(),
"InputElements" => array(),
"Notes" => array()));
}
# ----- MAIN -----------------------------------------------------------------
?>
Edit User Information
IsHookedEvent("EVENT_USER_PASSWORD_CHANGED");
$SafeLastLogin = defaulthtmlentities(GetPrettyTimestamp(
$UserToEdit->Get("LastLoginDate"), TRUE, "(never logged in)", FALSE));
$CustomFields = CWUser::GetCustomUserFields();
$HasCustomFields = count($CustomFields) > 0;
$AdditionalHtml = GetAdditionalFormHtml();
?>
" . PrintRequestedUserName() . "."
: $Message .= ".";
?>
Please return to the user editing
page and re-enter the user name.