setIcon("Delete.svg"); $RemoveButton->makeSubmitButton(); $SearchButton = new HtmlButton("Search"); $SearchButton->setIcon("MagnifyingGlass.svg"); $SearchButton->makeSubmitButton(); $EditButton = new HtmlButton("Edit"); $EditButton->setIcon("Pencil.svg"); $EditButton->addSemanticClass("btn-primary"); # checks to see if required incoming variables are set if (!isset($H_StartingIndex)) { throw new Exception("Required variable \$H_StartingIndex is not initialized"); } if (!isset($G_SortField)) { throw new Exception("Required variable \$G_SortField is not initialized"); } if (!isset($G_SortAscending)) { throw new Exception("Required variable \$G_SortAscending is not initialized"); } if (!isset($G_UserIdChecksum)) { throw new Exception("Required variable \$G_UserIdChecksum is not initialized"); } if (!isset($G_Users)) { throw new Exception("Required variable \$G_Users is not initialized"); } if (!isset($H_ExtraParams)) { throw new Exception("Required variable \$H_ExtraParams is not initialized"); } if (!isset($H_TransportUI)) { throw new Exception("Required variable \$H_TransportUI is not initialized"); } if (!isset($G_TotalItems)) { throw new Exception("Required variable \$G_TotalItems is not initialized"); } if (!isset($H_ItemsPerPage)) { throw new Exception("Required variable \$H_ItemsPerPage is not initialized"); } $AF = ApplicationFramework::getInstance(); # ----- DISPLAY -------------------------------------------------------------- $AF->setPageTitle("User List"); ?>

# 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 = [-1 => "--"] + $PrivList; $OptList = new HtmlOptionList( "F_Privilege", $PrivList, StdLib::getFormValue("F_Privilege") ); $OptList->SubmitOnChange(true); $OptList->PrintHtml(); ?> 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", ]; $OptList = new HtmlOptionList("F_Field", $FieldList, StdLib::getFormValue("F_Field")); $OptList->PrintHtml(); print "\n"; $ConditionList = [ "contains" => "contains", "equals" => "equals", "is before" => "is before", "is after" => "is after", ]; $OptList = new HtmlOptionList( "F_Condition", $ConditionList, StdLib::getFormValue("F_Condition") ); $OptList->PrintHtml(); ?> "/> getHtml() ?>

Select | User | Email | Signup Date | Last Login |
--- | --- | --- | --- | --- | ---
$UserObj) { $SignupDate = StdLib::getPrettyTimestamp( $UserObj->Get("CreationDate"), true, "(unknown)", false ); $LastLogin = StdLib::getPrettyTimestamp( $UserObj->Get("LastLoginDate"), true, "(never logged in)", false ); $SafeUserId = defaulthtmlentities($UserObj->Id()); $EditButton->setLink( "index.php?P=EditUser&ID=".$UserObj->Id() ); ?>
Id()) { print 'disabled="disabled"'; } ?> /> | Get("UserName"); ?> | Get("EMail"); ?> |  |  | getHtml() ?>
(no users were found that met the specified criteria)

baseLink($BaseLinkWithSearchParams); $H_TransportUI->message("Users " .number_format(min( ($H_TransportUI->StartingIndex() + 1), $G_TotalItems )) ." - " .number_format(min( ($H_TransportUI->StartingIndex() + $H_ItemsPerPage), $G_TotalItems )) ." of ".number_format($G_TotalItems).""); $H_TransportUI->display(); ?> getHtml() ?>