<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();

?>

<div class="form_down">
    <h1>EDIT ASSET</h1>
    <?php
    echo $html->input_html_from_db("asset_types", "record_id", "record_id = {$_GET['record_id']}", '', "record_id", "record_id");
    echo $html->input_html_from_db("asset_types", "name", "record_id = {$_GET['record_id']}", '', "name", "name");
    echo $html->text_formator_from_db("description", 'asset_types', "description", "record_id = {$_GET['record_id']}");
 
    echo $html->submit_btn('submit',"SAVE",'add_asset_type()')
    ?>

</div>

<?php
$html->html_form_ajax("add_asset_type", "UPDATE", "asset_types", '', false,[],'',['description']);
?>