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

$formname = "Label Print";
$action = "labelview_pdf.php";

$admin = $_SESSION["admin_" . $dbname];
$zdb = $_SESSION["zdbyear_" . $dbname];

$zyear = right($zdb, 4);
$mfrdate = getzdates($zyear, 'S');
$mtodate = getzdates($zyear, 'E');

$myyear = $_SESSION[$myyear];
mysqli_select_db($conn, $zdb);

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

<body>
    <form method='POST' action="<?= $action; ?>">
        <!-- Default box -->
        <div>
            <div class="col-lg-5 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">Description</label>
                            </div>
                            <div class="col-lg-4 col-md-2 col-sm-8 col-xs-8 pad">
                                <input type="text" name="descrip" class="form-control descrip" maxlength="12" value="">
                            </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">Number of lines</label>
                            </div>
                            <div class="col-lg-2 col-md-1 col-sm-2 col-xs-2 pad">
                                <input type="number" name="noline" class="form-control noline" min="1" max="22"
                                    value="">
                            </div>
                        </div>
                    </div>


                    <div class="panel-footer">
                        <div class="text-center pad">
                            <div class="panel-footer">
                                <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;border-radius:7px">
                                                    <i class="fa fa-print" style="color:#ffffff"> PRINT</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;border-radius:7px"
                                                    onclick="window.location.href = '<?= 'default.php' ?>'">
                                                    <i class="fa fa-power-off" style="color:#ffffff"> EXIT</i>
                                                </button>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <?php include("includes/linksfoot.php"); ?>
</body>

</html>