appdb/include application.php

WineHQ wineowner at wine.codeweavers.com
Sat Mar 24 22:51:20 CDT 2007


ChangeSet ID:	30997
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/03/24 22:51:20

Modified files:
	include        : application.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Add more links in application::objectOutputTableRow(), now vendors and users are clickable

Patch: http://cvs.winehq.org/patch.py?id=30997

Old revision  New revision  Changes     Path
 1.95          1.96          +6 -3       appdb/include/application.php

Index: appdb/include/application.php
diff -u -p appdb/include/application.php:1.95 appdb/include/application.php:1.96
--- appdb/include/application.php:1.95	25 Mar 2007  3:51:20 -0000
+++ appdb/include/application.php	25 Mar 2007  3:51:20 -0000
@@ -882,12 +882,15 @@ class Application {
         $oUser = new user($this->iSubmitterId);
         $oVendor = new vendor($this->iVendorId);
         if(!$oVendor->sName)
-            $oVendor->sName = get_vendor_from_keywords($this->sKeywords);
+            $sVendor = get_vendor_from_keywords($this->sKeywords);
+        else
+            $sVendor = $oVendor->objectMakeLink();
 
         $aCells = array(
                 print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)),
-                $oUser->sRealname,
-                $oVendor->sName,
+                "<a href=\"contact.php?iRecipientId=$oUser->iUserId\">".
+                        "$oUser->sRealname</a>",
+                $sVendor,
                 $this->sName);
 
         if($this->canEdit() || $oObject->bQueued)



More information about the wine-cvs mailing list