<?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()");

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


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

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

    <?php
    $ajax = new js_ajax();
    $ajax->run_on_load();
    $ajax->function_name("search_lop");
    $ajax->select("cracking_jobcard");
    $ajax->return_columns(['batch_no', 'jobcard_no', 'jobcard_date_opened']);
    $ajax->redirect("cracking.php");
    ?>