<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();
// $html->check_user_type("ADMIN");

// HTML FORM ELEMENTS
$username_label = new label();
$username_label->for("username_label");
$username_label->value("USERNAME");

$username = new input();
$username->class("inputs");
$username->type("text");
$username->placeholder("USERNAME");
$username->name("username");
$username->required();
$username->id("username");
$username->value_from_db("users", "username", "record_id={$_SESSION['user_id']}");

$password_label = new label();
$password_label->for("password_label");
$password_label->value("PASSWORD");

$password = new input();
$password->class("inputs");
$password->type("text");
$password->placeholder("PASSWORD");
$password->name("user_password");
$password->required();
$password->id("user_password");

$submit_btn = new button();
$submit_btn->value("ADD");
$submit_btn->onclick("update_profile()");

?>

<div class="form_down">
    <h1>SUPPLIER PROFILE</h1>
    <?php
    $username_label->add();
    $username->add();
    $password_label->add();
    $password->add();

    $submit_btn->add();
    ?>
</div>