ChangeSet ID: 23744 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2006/03/23 21:15:04
Modified files: . : vendorview.php
Log message: Tony Lambregts tony.lambregts@gmail.com Fix up vendor view code to be more useful with a link for administrators to edit the vendor. Fix the link to the vendors website
Patch: http://cvs.winehq.org/patch.py?id=23744
Old revision New revision Changes Path 1.12 1.13 +7 -2 appdb/vendorview.php
Index: appdb/vendorview.php diff -u -p appdb/vendorview.php:1.12 appdb/vendorview.php:1.13 --- appdb/vendorview.php:1.12 24 Mar 2006 3:15: 4 -0000 +++ appdb/vendorview.php 24 Mar 2006 3:15: 4 -0000 @@ -36,10 +36,15 @@ if($oVendor->iVendorId) apidb_header("View Vendor"); echo html_frame_start("Vendor Information",500);
- echo 'Vendor Name: '.$oVendor->sName.'<br />',"\n"; + echo 'Vendor Name: '.$oVendor->sName,"\n"; + if($_SESSION['current']->hasPriv("admin")) + { + echo ' [<a href="'.apidb_fullurl("admin/editVendor.php").'?iVendorId='.$oVendor->iVendorId.'">edit</a>]',"\n"; + }
+ echo '<br />',"\n"; if ($oVendor->sWebpage) - echo 'Vendor URL: <a href="'.$oVendor->sWebpage.'">'.$oVendor->vendorURL.'</a> <br />',"\n"; + echo 'Vendor URL: <a href="'.$oVendor->sWebpage.'">'.$oVendor->sWebpage.'</a> <br />',"\n";
if($oVendor->aApplicationsIds)