From cb48d1821c834bf0e68ff4f72b00f59e3d01ec10 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Fri, 24 Mar 2006 03:15:04 +0000 Subject: [PATCH] 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 --- vendorview.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vendorview.php b/vendorview.php index 087f6ee..9983b7c 100644 --- a/vendorview.php +++ b/vendorview.php @@ -36,10 +36,15 @@ if($oVendor->iVendorId) apidb_header("View Vendor"); echo html_frame_start("Vendor Information",500); - echo 'Vendor Name: '.$oVendor->sName.'
',"\n"; + echo 'Vendor Name: '.$oVendor->sName,"\n"; + if($_SESSION['current']->hasPriv("admin")) + { + echo ' [edit]',"\n"; + } + echo '
',"\n"; if ($oVendor->sWebpage) - echo 'Vendor URL: '.$oVendor->vendorURL.'
',"\n"; + echo 'Vendor URL: '.$oVendor->sWebpage.'
',"\n"; if($oVendor->aApplicationsIds)