|
@@ -36,6 +36,7 @@ class iTopWebPage extends NiceWebPage
|
|
private $m_aTabs;
|
|
private $m_aTabs;
|
|
private $m_sCurrentTabContainer;
|
|
private $m_sCurrentTabContainer;
|
|
private $m_sCurrentTab;
|
|
private $m_sCurrentTab;
|
|
|
|
+ private $m_sMessage;
|
|
|
|
|
|
public function __construct($sTitle)
|
|
public function __construct($sTitle)
|
|
{
|
|
{
|
|
@@ -44,6 +45,7 @@ class iTopWebPage extends NiceWebPage
|
|
$this->m_sCurrentTab = '';
|
|
$this->m_sCurrentTab = '';
|
|
$this->m_aTabs = array();
|
|
$this->m_aTabs = array();
|
|
$this->m_sMenu = "";
|
|
$this->m_sMenu = "";
|
|
|
|
+ $this->m_sMessage = '';
|
|
$oAppContext = new ApplicationContext();
|
|
$oAppContext = new ApplicationContext();
|
|
$sExtraParams = $oAppContext->GetForLink();
|
|
$sExtraParams = $oAppContext->GetForLink();
|
|
// $this->m_currentOrganization = $currentOrganization;
|
|
// $this->m_currentOrganization = $currentOrganization;
|
|
@@ -685,6 +687,10 @@ EOF
|
|
}
|
|
}
|
|
$sApplicationBanner .= '</div>';
|
|
$sApplicationBanner .= '</div>';
|
|
}
|
|
}
|
|
|
|
+ else if(strlen($this->m_sMessage))
|
|
|
|
+ {
|
|
|
|
+ $sApplicationBanner = '<div id="admin-banner"><span style="padding:5px;">'.$this->m_sMessage.'<span></div>';
|
|
|
|
+ }
|
|
else
|
|
else
|
|
{
|
|
{
|
|
$sApplicationBanner = '';
|
|
$sApplicationBanner = '';
|
|
@@ -898,6 +904,14 @@ EOF
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Set the message to be displayed in the 'admin-banner' section at the top of the page
|
|
|
|
+ */
|
|
|
|
+ public function SetMessage($sMessage)
|
|
|
|
+ {
|
|
|
|
+ $this->m_sMessage = $sMessage;
|
|
|
|
+ }
|
|
|
|
+
|
|
/*
|
|
/*
|
|
public function AddSearchForm($sClassName, $bOpen = false)
|
|
public function AddSearchForm($sClassName, $bOpen = false)
|
|
{
|
|
{
|