<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();

?>

<div class="form_down">
    <h1>EDIT MENU</h1>
    <?php
    echo $html->input_html_from_db('menu', 'name', "`record_id` = {$_GET['record_id']}", 'name', 'name', 'name')
        ?>
    <?php
    echo $html->select_html_from_db('restorants', 'record_id', 'name', "company_id = {$_SESSION['company_id']}", 'restorant_id', 'restorant_id');
    echo $html->select_from_db_add_current_selected_column('menu', 'restorant_id', "record_id = {$_GET["record_id"]}", 'restorant_id');
    echo $html->input_html("record_id", $_GET['record_id'], "record_id", "record_id", '', '', '', '', 'hidden');
    echo $html->submit_btn("submit", 'SAVE', 'edit_menu()');
    ?>

</div>

<?php
$html->html_form_ajax("edit_menu", "UPDATE", "menu", "record_id = {$_GET['record_id']}", false);
?>