Error
No page ID was supplied.ItemExists($Id))
{
# display error message indicating page not found
?>Error
No page found with specified ID.UserCanView($GLOBALS["G_User"]))
{
# display edit and delete buttons if appropriate
if ($Page->UserCanEdit($GLOBALS["G_User"]))
{
print '';
?>
delete
edit
Get("Title"));
$PageContent = $Page->Get("Content");
# process the tab markup if necessary
if ($Page->ContainsTabs())
{
# pull in the js and css that we need for tabs
$GLOBALS["AF"]->RequireUIFile('jquery-ui.js');
$GLOBALS["AF"]->RequireUIFile('jquery-ui.css');
$PageContent = Pages_Page::ProcessTabMarkup($PageContent);
}
# signal view of page
$GLOBALS["AF"]->SignalEvent("EVENT_FULL_RECORD_VIEW",
array("ResourceId" => $Page->Id()));
# display the page
$GLOBALS["AF"]->RequireUIFile('Pages_Controls.css');
print $PageContent;
}
else
{
# display unauthorized access message
PageTitle("Unauthorized Access");
?>
Unauthorized Access
You do not have the permissions required to view this page.