<?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("USERNAME", "", "username", "username"); ?>
    <?php echo $html->input_html("PASSWORD", "", "user_password", "user_password"); 
    echo $html->select_html_from_db('user_types','name','name','','user_type','user_type');
    echo $html->submit_btn("submit", 'SAVE', 'add_user()');?>

</div>

<?php
$html->html_form_ajax("add_user",  "INSERT", "users", '', false);
?>