mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
- Fixed bug #31: HTML display in the "export" page uses the appropriate stylesheet.
SVN:trunk[85]
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user