<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();

?>

<div class="form_down">
    <h1 class="title">NOTES</h1>

    <?php
    echo $html->select_html_from_db('clients', 'record_id', 'name', '1', 'client_id', 'client_id');
    echo $html->input_html('HEADING', '', 'heading', 'heading', 'inputs', '', '', 'text', '');
    echo $html->complete_text_editor('notes');
    echo $html->input_html('', $_SESSION['user_id'], 'user_id', 'user_id', 'inputs', '', '', 'text', 'hidden');
    echo $html->input_html('', date('Y-m-d H:i', strtotime("+2 Hours")), 'date_time_changed', 'date_time_changed', 'inputs', '', '', 'text', 'hidden');
    echo $html->submit_btn('submit', 'SAVE', 'add_note()');

    ?>

</div>

<?php
    $html->html_form_ajax("add_note", "INSERT", "notes", '', false,[],'',['notes']);
?>