This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/admin/editVendor.php

42 lines
551 B
PHP
Raw Normal View History

<?php
2004-03-15 16:22:00 +00:00
include("path.php");
include(BASE."include/"."incl.php");
include(BASE."include/"."tableve.php");
include(BASE."include/"."qclass.php");
if(!havepriv("admin"))
2004-03-15 16:22:00 +00:00
{
errorpage();
exit;
}
else
{
global $admin_mode;
$admin_mode = 1;
}
apidb_header("Edit Vendor Information");
$t = new TableVE("edit");
if($_POST)
2004-03-15 16:22:00 +00:00
{
$t->update($_POST);
2004-03-15 16:22:00 +00:00
}
else
{
$table = "vendor";
$query = "SELECT * FROM $table WHERE vendorId = $vendorId";
if(debugging())
echo "$query <br><br>\n";
$t->edit($query);
}
apidb_footer();
?>