<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();

?>

<div class="form_down">
    <h1>ADD USER</h1>
    <label>USERNAME</label>
    <?php echo $html->input_html("USERNAME", "", "username", "username"); ?>
    <label>PASSWORD</label>
    <?php echo $html->input_html("PASSWORD", "", "user_password", "user_password"); ?>
    <label>EMAIL</label>
    <?php echo $html->input_html("EMAIL", "", "email", "email"); ?>
    <label>USER TYPE</label>
    <?php echo $html->select_html_from_db('user_types', 'name', 'name', '', 'user_type', 'user_type');
    ?>
    <select name="status" id="status" class="inputs">
        <option value="0">INACTIVE</option>
        <option value="1">ACTIVE</option>
    </select>
    <?php
    echo $html->submit_btn("submit", 'SAVE', 'add_user()'); ?>


</div>

<?php
$html->html_form_ajax("add_user", "INSERT", "users", '', false);
?>