diff --git a/include/appData.php b/include/appData.php
index 4352bea..6165235 100644
--- a/include/appData.php
+++ b/include/appData.php
@@ -330,7 +330,8 @@ class appData
}
}
- function objectOutputTableRow($oObject, $sClass)
+ /* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
+ function objectOutputTableRow($oObject, $sClass, $sEditLinkLabel)
{
$oVersion = new Version($this->iVersionId);
@@ -347,7 +348,7 @@ class appData
if(appData::canEdit($oObject->sClass))
$aCells[] = "[ makeUrl("edit",
- $this->iId)."\">Process ]";
+ $this->iId)."\">$sEditLinkLabel ]";
echo html_tr($aCells, $sClass);
}
diff --git a/include/distribution.php b/include/distribution.php
index bcdcfce..52e3af3 100644
--- a/include/distribution.php
+++ b/include/distribution.php
@@ -438,7 +438,8 @@ class distribution {
return new distribution($oRow->distributionId, $oRow);
}
- function objectOutputTableRow($oManager, $sClass)
+ /* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
+ function objectOutputTableRow($oManager, $sClass, $sEditLinkLabel)
{
$aCells = array(
"makeUrl("view", $this->iDistributionId,
@@ -449,13 +450,12 @@ class distribution {
if($this->canEdit())
{
if(!sizeof($this->aTestingIds))
- {
- $sDelete = " [makeUrl("delete",
$this->iDistributionId)."'>delete]";
- }
- $aCells[3] = array(
- "[edit]$sDelete",
+
+ $aCells[] = array(
+ "[$sEditLinkLabel]$shDeleteLink",
"align=\"center\"");
}
diff --git a/include/maintainer.php b/include/maintainer.php
index da175ec..a331740 100644
--- a/include/maintainer.php
+++ b/include/maintainer.php
@@ -421,7 +421,8 @@ class maintainer
echo html_tr($aCells, $sClass);
}
- function ObjectOutputTableRow($oObject, $sClass)
+ /* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
+ function ObjectOutputTableRow($oObject, $sClass, $sEditLinkLabel)
{
$oUser = new User($this->iUserId);
$oApp = new Application($this->iAppId);
@@ -435,8 +436,8 @@ class maintainer
"sEmail."\">".$oUser->sRealname."");
if(maintainer::canEdit())
- $aCells[sizeof($aCells)] = "makeUrl("edit",
- $this->iMaintainerId)."\">answer";
+ $aCells[sizeof($aCells)] = "[ makeUrl("edit",
+ $this->iMaintainerId)."\">$sEditLinkLabel ]";
echo html_tr($aCells,
$sClass);
diff --git a/include/objectManager.php b/include/objectManager.php
index 81a9ce0..eaffeca 100644
--- a/include/objectManager.php
+++ b/include/objectManager.php
@@ -95,8 +95,9 @@ class ObjectManager
$oObject = call_user_func(array($this->sClass,
"objectGetInstanceFromRow"), $oRow);
- $oObject->objectOutputTableRow($this,
- ($iCount % 2) ? "color0" : "color1");
+ /* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
+ $oObject->objectOutputTableRow($this, ($iCount % 2) ? "color0" : "color1",
+ $this->bIsQueue ? "process" : "edit");
}
echo "";
@@ -313,7 +314,7 @@ class ObjectManager
$sTitle = urlencode($sTitle);
- return $_SERVER['PHP_SELF']."?bIsQueue=$sIsQueue&sClass=$this->sClass".
+ return BASE."objectManager.php?bIsQueue=$sIsQueue&sClass=$this->sClass".
"&sTitle=$sTitle$sId$sAction";
}
diff --git a/include/screenshot.php b/include/screenshot.php
index 2c6ec27..781f7cd 100644
--- a/include/screenshot.php
+++ b/include/screenshot.php
@@ -537,10 +537,11 @@ class Screenshot {
return new appData($oRow->id, $oRow);
}
- function objectOutputTableRow($oObject, $sClass)
+ /* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
+ function objectOutputTableRow($oObject, $sClass, $sEditLinkLabel)
{
$oAppData = new AppData();
- $oAppData->objectOutputTableRow($oObject, $sClass);
+ $oAppData->objectOutputTableRow($oObject, $sClass, $sEditLinkLabel);
}
function objectDisplayQueueProcessingHelp()
diff --git a/include/vendor.php b/include/vendor.php
index 04ab0c1..eac9d36 100644
--- a/include/vendor.php
+++ b/include/vendor.php
@@ -185,7 +185,8 @@ class Vendor {
return new vendor($oRow->vendorId, $oRow);
}
- function objectOutputTableRow($oObject, $sClass = "")
+ /* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
+ function objectOutputTableRow($oObject, $sClass = "", $sEditLinkLabel)
{
$aCells = array(
"makeUrl("view", $this->iVendorId,
@@ -196,12 +197,12 @@ class Vendor {
if($this->canEdit())
{
if(!sizeof($this->aApplicationsIds))
- $sDelete = " [makeUrl("delete",
+ $shDeleteLink = " [makeUrl("delete",
$this->iVendorId, "View Vendors")."\">".
"delete]";
$aCells[sizeof($aCells)] = "[makeUrl("edit",
- $this->iVendorId, "Edit Vendor")."\">edit]$sDelete";
+ $this->iVendorId, "Edit Vendor")."\">$sEditLinkLabel]$shDeleteLink";
}
echo html_tr($aCells, $sClass);