<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();

?>

<div class="search_form">
    <h1> ACTIVE Service Tickets</h1>
    <?php
    echo $html->input_html('', 'INCOMPLETE', 'completed', 'completed', '', '', '', 'text', 'hidden');
    echo $html->input_html('', $_SESSION['user_id'], 'user_id_assigned', 'user_id_assigned', '', '', '', 'text', 'hidden');
    ?>
    <button id="submit" hidden></button>
</div>

<?php
echo $html->html_form_ajax("search_active_service_tickets", "SELECT", "service_tickets", '', false, ['client_id', 'name'], "complete_service_tickets.php");
?>
<script>
    search_active_service_tickets();
</script>