<?php include "../../root.class.php";
$html = new html();
$html->add_styles_page();
$db = new db_safeguard();

$batch_no = new input();
$batch_no->class("inputs");
$batch_no->type("text");
$batch_no->placeholder("BATCH NO");
$batch_no->name("batch_no");
$batch_no->id("batch_no");
$batch_no->onkeyup("search_lop()");

?>
<div class="column">
    <div class="banner">
        <div class="row">
            <?php echo $html->selectable_block("lop_jobcard.php", "ADD"); ?>

            <div class="search_form">
                <div class="row">
                    <div class="row">
                        <?php $batch_no->add(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <?php
    $ajax = new js_ajax();
    $ajax->run_on_load();
    $ajax->function_name("search_lop");
    $ajax->select("lop_jobcard");
    $ajax->return_columns(['batch_no', 'product_no', 'date_jobcard_opened']);
    $ajax->redirect("lop_jobcard.php");
    ?>