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

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

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



?>
<div class="column">
    <div class="banner">
        <div class="row">
            <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_batch");
    $ajax->select("batch_data");
    $ajax->return_columns(['batch_no', 'jobcard_no', 'jobcard_date_opened']);
    $ajax->redirect("equipment.pdf.php");
    ?>