<?php
require ROOT . "/pages/start.php";
require ROOT . "/pages/header.php";
$columnNumber = 5;

_select(
    $ostmt,
    $ocount,
    "SELECT id, name FROM office WHERE tuluv=?",
    "i",
    [1],
    $oid,
    $oname
);

_select(
    $dstmt,
    $dcount,
    "SELECT id, name FROM department WHERE tuluv=?",
    "i",
    [1],
    $did,
    $dname
);

_select(
    $atstmt,
    $atcount,
    "SELECT id, name FROM at WHERE tuluv=?",
    "i",
    [1],
    $atid,
    $atname
);

_select(
    $zstmt,
    $zcount,
    "SELECT id, name FROM tzereg WHERE tuluv=?",
    "i",
    [1],
    $zid,
    $zname
);

?>
<link rel="stylesheet" type="text/css" href="/css/dataTable.css">
<style>
    .dt-buttons {
        text-align: end;
        margin-bottom: 15px
    }
    #upload_file {
        display: none;
    }
</style>
<div>
    <div class="p-3 bg-light d-flex justify-content-between align-items-center">
        <h3>Багшийн бүртгэл</h3>
        <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#add">БҮРТГЭХ</button>
    </div>

    <div id="table">

    </div>
</div>
<?php
require ROOT . "/pages/footer.php"; ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<?php
require ROOT . "/pages/dataTablefooter.php";
require ROOT . "/pages/end.php";
?>