<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Admin : Experience Letter</title>
    <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">

    <link rel="stylesheet" href="../../plugins/fontawesome-free/css/all.min.css">

    <link rel="stylesheet" href="../../plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
    <link rel="stylesheet" href="../../plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
    <link rel="stylesheet" href="../../plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
    <link rel="stylesheet" href="https://cdn.datatables.net/1.11.4/css/jquery.dataTables.min.css">

    <link rel="stylesheet" href="../../dist/css/adminlte.min.css">
    <?php include("headerlink.php")?>
</head>

<body class="hold-transition sidebar-mini layout-fixed">
    <div class="wrapper">

        <div class="preloader flex-column justify-content-center align-items-center">
            <img class="animation__shake" src="dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
        </div>

        <?php include("navbar.php")?>
        <?php include("sidebar.php")?>

        <div class="content-wrapper">

            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1 class="m-0 fw-bold text-uppercase">Print Documents</h1>
                        </div>

                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><a href="#">Home</a></li>
                                <li class="breadcrumb-item active">Print Documents</li>
                                <li class="breadcrumb-item active">Experience Letter</li>
                            </ol>
                        </div>

                    </div>

                </div>

            </div>

            <section class="content">
                <div class="container-fluid">
                    <div class="row">

                        <div class="col-md-12">

                            <div class="card card-primary">
                                <div class="card-header" style="background: #343a40;">
                                    <h3 class="card-title fw-bold text-white text-uppercase">Print Joining Letter
                                    </h3>
                                </div>

                                <form action="joining-lettercode.php" method="post" enctype="multipart/form-data">
                                    <div class="card-body">
                                        <div class="row">
                                            <div class="col-lg-5 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputPerson">Name</label>
                                                    <input type="text" name="name" class="form-control"
                                                        id="exampleInputPerson" placeholder="Name..">
                                                </div>
                                            </div>
                                            <div class="col-lg-5 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputPerson">Full Name</label>
                                                    <input type="text" name="full_name" class="form-control"
                                                        id="exampleInputPerson" placeholder="Full Name..">
                                                </div>
                                            </div>
                                            <div class="col-lg-2 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputPerson">Year</label>
                                                    <input type="text" name="year" class="form-control"
                                                        id="exampleInputPerson" placeholder="Year...">
                                                </div>
                                            </div>

                                        </div>
                                        <div class="row">
                                            <div class="col-lg-6 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputNumber">Desgination</label>
                                                    <input type="text" name="designation" class="form-control"
                                                        id="exampleInputNumber" placeholder="Desgination....">
                                                </div>
                                            </div>
                                            <div class="col-lg-6 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputEmail">Department</label>
                                                    <input type="text" name="department" class="form-control"
                                                        id="exampleInputEmail" placeholder="Company Name....">
                                                </div>
                                            </div>
                                        </div>
                                    </div>


                                    <div class="card-footer">
                                        <button type="submit" class="btn text-white fw-bold"
                                            style="background: #343a40;">Create EL</button>
                                    </div>
                                </form>
                            </div>

                        </div>

                    </div>

                </div>

            </section>
            <section class="content">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-12">
                            <div class="card shadow">
                                <div class="card-header" style="background: #343a40; ">
                                    <h3 class="card-title text-white text-bold text-uppercase">All Resume</h3>
                                </div>

                                <div class="card-body">
                                    <div id="example2_wrapper" class="dataTables_wrapper dt-bootstrap4">
                                        <div class="row">
                                            <div class="col-sm-12 col-md-6"></div>
                                            <div class="col-sm-12 col-md-6"></div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-12">
                                                <table class="table-responsive">
                                                    <table id="example2"
                                                        class="table text-center table-bordered table-hover dataTable dtr-inline display"
                                                        aria-describedby="example2_info">
                                                        <thead>
                                                            <tr>
                                                                <th>Date &amp; time</th>
                                                                <th>Full Name</th>
                                                                <th>Year</th>
                                                                <th>Designation</th>
                                                                <th>Download OL</th>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                            <?php 
                                                            include('connection.php');
                                                            $query = "SELECT * FROM joining"; 
                                                            $result = mysqli_query($conn, $query);
                                                            while ($row = mysqli_fetch_assoc($result)) {
                                                            ?>
                                                            <tr>
                                                                <td>1/2/20</td>
                                                                <td><?php echo $row['name']?></td>
                                                                <td><?php echo $row['year']?></td>
                                                                <td><?php echo $row['department']?></td>
                                                                <td class="text-center"><a href="#"><i
                                                                            class="nav-icon fas fa-download"></i></a>
                                                                </td>
                                                            </tr>
                                                            <?php }?>
                                                        </tbody>

                                                    </table>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>

    <?php include("footer.php")?>
    <?php include("footerlink.php")?>

    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.datatables.net/1.11.4/js/jquery.dataTables.min.js"></script>
    <script>
    var $j = jQuery.noConflict();
    $j(document).ready(function() {
        $j('#example2').DataTable();
    });
    </script>
</body>

</html>