<?php
require("includes/check_auth_user.php");
require("includes/dbconnect.php");
include('includes/function.php');

$zdb = $_SESSION["zdbyear_" . $dbname];
$zyear = right($zdb, 4);
$mfrdate = getzdates($zyear, 'S');
$mtodate = getzdates($zyear, 'E');


$formname = "Product Barcode";
$action = "prod_barcode_all.php?para=3";
mysqli_select_db($conn, $zdb);

include("includes/linkshead.php");
?>
</head>

<body>
    <form method='POST' action="<?= $action; ?>">
        <!-- Default box -->

        <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12  pad">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><?php echo $formname; ?></h3>
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 text-right pad">
                            <label class="label-control marg">Type</label>
                        </div>
                        <div class="col-lg-4 col-md-5 col-sm-5 col-xs-5 pad">
                            <select class="form-control type select2" name="type" style="width: 100%">
                                <option value="">All</option>
                                <option value="Organic">Organic</option>
                                <option value="Conventional">Conventional</option>
                                <option value="Other">Other</option>
                            </select>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 text-right pad">
                            <label class="label-control marg">Name Like</label>
                        </div>
                        <div class="col-lg-4 col-md-5 col-sm-5 col-xs-5 pad">
                            <input type="text" name="namelike" id="namelike" value="">
                        </div>
                    </div>
                </div>
                <div class="panel-footer text-center">
                    <div style="overflow: auto; ">
                        <table class="table-condensed" style="margin: 0 auto;">
                            <tr>
                                <td class=" buttonform tooltip-bottom" id="ssubmit" style="display: <? echo $savedisabled ?>" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="View">
                                    <button id='view' type='submit' formtarget="_blank" name='view' class="btn btn-pad btn-square" style="background-color:#05B2EA; ">
                                        <i class="fa fa-desktop" style="color:#ffffff"></i>
                                    </button>
                                </td>
                                <td class=" buttonform tooltip-bottom" id="simage" style="display: <? echo $savedisabled ?>" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Download as Images (ZIP)">
                                    <button id='image' type='submit' name='image' class="btn btn-pad btn-square" style="background-color:#f39c12; ">
                                        <i class="fa fa-file-image-o" style="color:#ffffff"></i>
                                    </button>
                                </td>
                                <td class=" buttonform tooltip-bottom" id="scancel" style="display: <? echo $canceldisabled ?>" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Close">
                                    <button id='cancel' type="reset" class="btn btn-pad btn-square " style="background-color:red;" onClick="window.location.href = '<?= 'default.php' ?>'">
                                        <i class="fa fa-power-off" style="color:#ffffff"></i>
                                    </button>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <?php include("includes/linksfoot.php"); ?>
</body>

</html>