Module: nagvis Branch: master Commit: a95d8cbcb55fd223ccd3a06864b67105160d33b9 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/nagvis;a=commit;h=a95d8cbcb55fd223ccd3a06864b67105160d33b9
Author: Lars Michelsen <[email protected]> Date: Wed Sep 9 17:48:46 2009 +0200 #8 First step of making the overview page ready for the new structure --- .../frontend/nagvis-js/classes/NagVisFrontend.php | 4 ++-- ...{GlobalIndexPage.php => NagVisOverviewView.php} | 11 +++++------ .../core}/classes/GlobalIndexPage.php | 0 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/share/frontend/nagvis-js/classes/NagVisFrontend.php b/share/frontend/nagvis-js/classes/NagVisFrontend.php index c6f8d24..e296287 100644 --- a/share/frontend/nagvis-js/classes/NagVisFrontend.php +++ b/share/frontend/nagvis-js/classes/NagVisFrontend.php @@ -126,8 +126,8 @@ class NagVisFrontend extends GlobalPage { public function getIndexPage() { $this->addBodyLines('<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>'); $this->addBodyLines('<div id="overview" class="infopage"></div>'); - $this->INDEX = new GlobalIndexPage($this->CORE, $this->BACKEND); - $this->addBodyLines($this->parseJs($this->INDEX->parseJson())); + $this->INDEX = new NagVisOverviewView($this->CORE, $this->BACKEND); + $this->addBodyLines($this->parseJs($this->INDEX->parse())); } /** diff --git a/share/frontend/nagvis-js/classes/GlobalIndexPage.php b/share/frontend/nagvis-js/classes/NagVisOverviewView.php similarity index 98% copy from share/frontend/nagvis-js/classes/GlobalIndexPage.php copy to share/frontend/nagvis-js/classes/NagVisOverviewView.php index 386ae68..052e282 100755 --- a/share/frontend/nagvis-js/classes/GlobalIndexPage.php +++ b/share/frontend/nagvis-js/classes/NagVisOverviewView.php @@ -1,9 +1,9 @@ <?php /***************************************************************************** * - * GlobalIndexPage.php - Class for handling the map index page + * NagVisOverviewView.php - Class for handling the map index page * - * Copyright (c) 2004-2008 NagVis Project (Contact: [email protected]) + * Copyright (c) 2004-2009 NagVis Project (Contact: [email protected]) * * License: * @@ -25,13 +25,12 @@ /** * @author Lars Michelsen <[email protected]> */ -class GlobalIndexPage { +class NagVisOverviewView { private $CORE; private $BACKEND; - + private $htmlBase; - /** * Class Constructor * @@ -52,7 +51,7 @@ class GlobalIndexPage { * @return String String with Html Code * @author Lars Michelsen <[email protected]> */ - public function parseJson() { + public function parse() { $ret = ''; $ret .= 'oGeneralProperties='.$this->CORE->MAINCFG->parseGeneralProperties().';'."\n"; $ret .= 'oWorkerProperties='.$this->CORE->MAINCFG->parseWorkerProperties().';'."\n"; diff --git a/share/frontend/nagvis-js/classes/GlobalIndexPage.php b/share/server/core/classes/GlobalIndexPage.php similarity index 100% rename from share/frontend/nagvis-js/classes/GlobalIndexPage.php rename to share/server/core/classes/GlobalIndexPage.php ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
