appdb/include testData.php
WineHQ
wineowner at wine.codeweavers.com
Sun Mar 25 14:58:34 CDT 2007
ChangeSet ID: 31010
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/03/25 14:58:34
Modified files:
include : testData.php
Log message:
Chris Morgan <cmorgan at alum.wpi.edu>
testData should display the application name and version in outputEditor()
Patch: http://cvs.winehq.org/patch.py?id=31010
Old revision New revision Changes Path
1.32 1.33 +14 -5 appdb/include/testData.php
Index: appdb/include/testData.php
diff -u -p appdb/include/testData.php:1.32 appdb/include/testData.php:1.33
--- appdb/include/testData.php:1.32 25 Mar 2007 19:58:34 -0000
+++ appdb/include/testData.php 25 Mar 2007 19:58:34 -0000
@@ -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")
{
global $aClean;
@@ -253,10 +263,7 @@ class testData{
$oSubmitter = new User($this->iSubmitterId);
/* Get the full app/version name to display */
- $oVersion = new Version($this->iVersionId);
- $sAppName = application::lookup_name($oVersion->iAppId);
- $sVersionName = version::lookup_name($oVersion->iVersionId);
- $sName = "$sAppName: $sVersionName";
+ $sName = $this->getFormattedApplicationVersionName();
switch($sAction)
{
@@ -486,7 +493,9 @@ class testData{
{
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";
// What works
More information about the wine-cvs
mailing list