Fixed Trac #365: Give the user some feedback when the password was successfully changed/set. Note that iTop does not check that the new password is different from the old one.

SVN:trunk[1147]
This commit is contained in:
Denis Flaven
2011-03-24 17:34:00 +00:00
parent 30f4ff8765
commit 5ad7ea1b7b
4 changed files with 20 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ class iTopWebPage extends NiceWebPage
private $m_aTabs;
private $m_sCurrentTabContainer;
private $m_sCurrentTab;
private $m_sMessage;
public function __construct($sTitle)
{
@@ -44,6 +45,7 @@ class iTopWebPage extends NiceWebPage
$this->m_sCurrentTab = '';
$this->m_aTabs = array();
$this->m_sMenu = "";
$this->m_sMessage = '';
$oAppContext = new ApplicationContext();
$sExtraParams = $oAppContext->GetForLink();
// $this->m_currentOrganization = $currentOrganization;
@@ -685,6 +687,10 @@ EOF
}
$sApplicationBanner .= '</div>';
}
else if(strlen($this->m_sMessage))
{
$sApplicationBanner = '<div id="admin-banner"><span style="padding:5px;">'.$this->m_sMessage.'<span></div>';
}
else
{
$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)
{