<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();
$html->check_user_type("ADMIN");

?>

<div class="form_down">
    <h1>ADD USER</h1>
    <?php echo $html->input_html_from_db("suppliers", "record_id", "record_id = {$_GET['record_id']}", "record_id", 'record_id', 'record_id');

    echo $html->input_html_from_db("suppliers", "name", "record_id = {$_GET['record_id']}", "record_id", 'name', 'name');

    echo $html->submit_btn("submit", 'SAVE', 'save_supplier()');

    ?>

</div>

<?php
$html->html_form_ajax("save_supplier", "UPDATE", "suppliers", '', false);
?>