<?php
include "../../root.class.php";
$html = new html();
$html->add_styles_page();
$table_name = "tables";

?>

<div class="search_form">
    <h1> SEARCH TABLES</h1>
    <?php echo $html->input_html("name", "", "name", "name");

    echo $html->input_html("restorant_id", $_SESSION['restorant_id'], "restorant_id", "restorant_id",'hidden','','','','hidden');

    echo $html->submit_btn('submit', 'SEARCH', "search_$table_name()"); ?>

</div>

<?php echo $html->html_form_ajax("search_$table_name", "SELECT", $table_name, '', false, ['name', 'restorant_id'], "edit_tables.php"); ?>