PluginEnabled(
"SavedSearchMailings");
$SSFactory = new SavedSearchFactory();
$Searches = $SSFactory->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. |
$Search)
{
$SafeSearchId = defaulthtmlentities($SearchId);
$SafeEncodedSearchId = defaulthtmlentities(urlencode($SearchId));
$SafeSearchName = defaulthtmlentities($Search->SearchName());
$SearchParams = $Search->SearchParameters();
?>
|
View
Edit
Id(),
SavedSearchMailings::GetFrequencyOptions($User),
$Search->Frequency()))->PrintHtml();
} ?>
|
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(
$H_UserToEdit->Get("LastLoginDate"), TRUE, "(never logged in)", FALSE));
$CustomFields = CWUser::GetCustomUserFields();
$HasCustomFields = count($CustomFields) > 0;
$AdditionalHtml = GetAdditionalFormHtml();
?>
" . $H_UserName . "."
: $Message .= ".";
?>
Please return to the user editing
page and re-enter the user name.