testData should display the application name and version in outputEditor()
This commit is contained in:
@@ -244,6 +244,16 @@ class testData{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getFormattedApplicationVersionName()
|
||||||
|
{
|
||||||
|
$oVersion = new Version($this->iVersionId);
|
||||||
|
$sAppName = application::lookup_name($oVersion->iAppId);
|
||||||
|
$sVersionName = version::lookup_name($oVersion->iVersionId);
|
||||||
|
$sName = "$sAppName: $sVersionName";
|
||||||
|
|
||||||
|
return $sName;
|
||||||
|
}
|
||||||
|
|
||||||
function mailSubmitter($sAction="add")
|
function mailSubmitter($sAction="add")
|
||||||
{
|
{
|
||||||
global $aClean;
|
global $aClean;
|
||||||
@@ -253,10 +263,7 @@ class testData{
|
|||||||
$oSubmitter = new User($this->iSubmitterId);
|
$oSubmitter = new User($this->iSubmitterId);
|
||||||
|
|
||||||
/* Get the full app/version name to display */
|
/* Get the full app/version name to display */
|
||||||
$oVersion = new Version($this->iVersionId);
|
$sName = $this->getFormattedApplicationVersionName();
|
||||||
$sAppName = application::lookup_name($oVersion->iAppId);
|
|
||||||
$sVersionName = version::lookup_name($oVersion->iVersionId);
|
|
||||||
$sName = "$sAppName: $sVersionName";
|
|
||||||
|
|
||||||
switch($sAction)
|
switch($sAction)
|
||||||
{
|
{
|
||||||
@@ -486,7 +493,9 @@ class testData{
|
|||||||
{
|
{
|
||||||
HtmlAreaLoaderScript(array("Test1", "Test2", "Test3"));
|
HtmlAreaLoaderScript(array("Test1", "Test2", "Test3"));
|
||||||
|
|
||||||
echo html_frame_start("Test Form", "90%", "", 0);
|
$sName = $this->getFormattedApplicationVersionName();
|
||||||
|
|
||||||
|
echo html_frame_start("Test Form - $sName", "90%", "", 0);
|
||||||
echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n";
|
echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n";
|
||||||
|
|
||||||
// What works
|
// What works
|
||||||
|
|||||||
Reference in New Issue
Block a user