<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();
$html->check_user_type("ADMIN");

?>


<div class="search_form">
    <h1>SEARCH INVOICE</h1>
    <hr>
    <?php echo $html->select_html_from_db("suppliers", "record_id",  "name", "", "supplier_id", "supplier_id"); ?>
    <?php echo $html->select_html_from_db("projects", "record_id",  "name", "", "project_id", "project_id"); ?>
    <?php 
        echo $html->submit_btn('submit','SEARCH','search_expence()');
    ?>

</div>

<?php
$html->html_form_ajax("search_expence", "SELECT", "expenses", '', false, ['supplier_id', 'amount', 'project_id'],'edit_expence.php');
?>