'."\n";
$GlobalContent.='
'."\n";
$GlobalContent.=' | '.LangSpellHtml('EditVendorsId').' | '."\n";
$GlobalContent.=' '.LangSpellHtml('EditVendorsName').' | '."\n";
$GlobalContent.=' '.LangSpellHtml('EditVendorsHomepage').' | '."\n";
$GlobalContent.=' '.LangSpellHtml('EditVendorsMinBill').' | '."\n";
$GlobalContent.=' '.LangSpellHtml('EditVendorsShippingCost').' | '."\n";
if (UserHasRight('EditVendors'))
$GlobalContent.=' '.LangSpellHtml('EditVendorsEdit').' | '."\n";
$GlobalContent.='
'."\n";
$VendorQuery = "SELECT * FROM `Vendors`";
$VendorQuery = mysqli_query($GlobalMysqlHandler, $VendorQuery);
while ($Vendor=mysqli_fetch_array($VendorQuery))
{
if ( ($EditVendorId==$Vendor['Id']) )
{
$GlobalContent.=' '."\n";
}
else
{
$GlobalContent.=' '."\n";
$GlobalContent.=' | '.$Vendor['Id'].' | '."\n";
$GlobalContent.=' '.$Vendor['Name'].' | '."\n";
$GlobalContent.=' '.$Vendor['Homepage'].' | '."\n";
$GlobalContent.=' '.$Vendor['MinBill'].' | '."\n";
$GlobalContent.=' '.$Vendor['ShippingCost'].' | '."\n";
if (LockIsActive("Vendors",$Vendor['Id']))
$GlobalContent.=' '.OtherGetIcon('LockActive.png').' | '."\n";
elseif (UserHasRight('EditVendors'))
{
$GlobalContent.=' '."\n";
$GlobalContent.=' '.OtherGetIcon('Delete',"Button").''."\n";
$GlobalContent.=' | '."\n";
$GlobalContent.=' '."\n";
$GlobalContent.=' '."\n";
$GlobalContent.=' | '."\n";
}
$GlobalContent.='
'."\n";
}
}
if (!$EditVendorId && UserHasRight('EditVendors'))
{
$GlobalContent.=' '."\n";
}
$GlobalContent.=''."\n";
}
else
{
MessageError(LangSpell("ScentenceNoUserRights"));
}
?>