Ejemplo n.º 1
0
 function set_banner($action = null)
 {
     $text = ucfirst(isset($action) ? $action : join("", $this->get_actions()));
     if ($text == 'Cancel') {
         $text = AMP_TEXT_LIST;
     }
     $heading = $this->_map->getHeading();
     return parent::set_banner($text, $heading);
 }
Ejemplo n.º 2
0
<?php

require_once 'AMP/Base/Config.php';
$tool_id = isset($_GET['modid']) && $_GET['modid'] ? $_GET['modid'] : false;
if (!$tool_id) {
    $tool_id = isset($_GET['tool_id']) && $_GET['tool_id'] ? $_GET['tool_id'] : false;
}
if (!$tool_id) {
    ampredirect(AMP_SYSTEM_URL_PUBLIC_PAGES);
}
$modid = $tool_id;
require_once 'AMP/System/Component/Controller.php';
require_once 'AMP/System/IntroText/List.php';
$controller = new AMP_System_Component_Controller();
$controller->set_banner(AMP_TEXT_LIST, 'Public Page');
$display =& $controller->get_display();
$display->add_nav('content');
$list = new AMP_System_Introtext_List($source = false, array('tool' => $tool_id));
$display->add($list);
print $display->execute();