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
This commit is contained in:
Tony Lambregts
2006-03-24 03:15:04 +00:00
committed by WineHQ
parent f3ddc43dd1
commit cb48d1821c

View File

@@ -36,10 +36,15 @@ if($oVendor->iVendorId)
apidb_header("View Vendor"); apidb_header("View Vendor");
echo html_frame_start("Vendor Information",500); 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) 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) if($oVendor->aApplicationsIds)