Add and use vendor::objectOutputHeader() and vendor::objectGetEntries()

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-01-31 02:24:54 +00:00
committed by WineHQ
parent cbfc49f42f
commit fa111ec39d
2 changed files with 31 additions and 11 deletions

View File

@@ -45,21 +45,13 @@ else
apidb_header("View Vendors");
//get available vendors
$hResult = query_parameters("SELECT vendorId FROM vendor ORDER BY vendorName, vendorId;");
$hResult = vendor::objectGetEntries(false);
// show vendorlist
echo "<table width='100%' border=0 cellpadding=3 cellspacing=0>\n\n";
echo '<tr class="color4">',"\n";
echo '<td>Vendor name</td>',"\n";
echo '<td>Vendor\'s Web Page</td>',"\n";
echo '<td align="right">linked Apps</td>',"\n";
if ($_SESSION['current']->hasPriv("admin"))
{
echo '<td align="center">Action</td>',"\n";
}
echo '</tr>',"\n";
vendor::objectOutputHeader("color4");
$c = 1;
while($oRow = mysql_fetch_object($hResult))
{