- Fixed bug #31: HTML display in the "export" page uses the appropriate stylesheet.

SVN:trunk[85]
This commit is contained in:
Denis Flaven
2009-07-19 09:34:32 +00:00
parent bce801021a
commit 05a236f06a
2 changed files with 5 additions and 5 deletions

View File

@@ -213,9 +213,9 @@ abstract class cmdbAbstractObject extends CMDBObject
// Comment by Rom: this helper may be used to display objects of class DBObject
// -> I am using this to display the changes history
public static function DisplaySet(web_page $oPage, CMDBObjectSet $oSet, $sLinkageAttribute = '')
public static function DisplaySet(web_page $oPage, CMDBObjectSet $oSet, $sLinkageAttribute = '', $bDisplayMenu = true)
{
$oPage->add(self::GetDisplaySet($oPage, $oSet, $sLinkageAttribute));
$oPage->add(self::GetDisplaySet($oPage, $oSet, $sLinkageAttribute, $bDisplayMenu));
}
public static function GetDisplaySet(web_page $oPage, CMDBObjectSet $oSet, $sLinkageAttribute = '', $bDisplayMenu = true)

View File

@@ -1,6 +1,6 @@
<?php
require_once('../application/application.inc.php');
require_once('../application/webpage.class.inc.php');
require_once('../application/nicewebpage.class.inc.php');
require_once('../application/csvpage.class.inc.php');
require_once('../application/xmlpage.class.inc.php');
@@ -31,8 +31,8 @@ if (!empty($sExpression))
switch($sFormat)
{
case 'html':
$oP = new web_page("iTop - Export");
cmdbAbstractObject::DisplaySet($oP, $oSet);
$oP = new nice_web_page("iTop - Export");
cmdbAbstractObject::DisplaySet($oP, $oSet, '' /* linkage */, false /* don't display the menu */);
break;
case 'csv':