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

<style>
    table, th, td ,tr{
        border:1px solid black;
        padding: 20px;
    }
</style>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- Style sheets CSS and bootstrap -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
    <link rel="stylesheet" href="styles_student.css">

    <!-- Javascript and jquery -->
    <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
    <script>
        document.q
    </script>
</head>
<body>
    <nav class="navbar navbar-expand-md justify-content-between">
    
    <div class="inst">
        <a class="navbar-brand" href="#"><img class="profile" src="iit1.png" alt=""></a>
        SGSITS
    </div>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav ml-auto ms-auto">
            <li class="nav-item active">
                <div class="right">
                    <a class="nav-link" href="/wardenHome">Home</a>
                </div>
            </li>
            <li class="nav-item">
                <div class="right">
                    <a class="nav-link" href="/view_complaints_warden">View Complaints</a>
                </div>
            </li>
            <li class="nav-item">
                <div class="right">
                    <a class="nav-link" href="#">Notice</a>
                </div>
            </li>
        </ul>
        <div class="right">
            <form action="/logout" method="post">
                <button class="logoutbtn" name="logoutbtn" value="logout">Log Out</button>
            </form>
        </div>
    </div>
</nav>
    <br><br><br>
     <table class="styled-table">
        <thead>
            <tr>
                <th>
                     notice description
                </th>
                
                <th>
                    notice owner
                </th>

                <th>
                    delete notice
                </th>

            </tr>
        </thead>
        
        <tbody>
            <% arr.forEach(function(ele){ %>
                <tr>
                    <td><%= ele.description %></td>
                    <td><%= ele.owner %></td>
                    <!-- <td><%= ele.title %></td>
                    <td><%= ele.description %></td>
                    <td><%= ele.student_ref_id %></td>
                    <td><%= ele.hostel_ref_id %></td> --> 
                    <!-- <td><button class="<%= ele.status %> btn btn-large"><%= ele.status %></button></td> -->
                    <!-- <td><%= ele.room_no %></td> -->
                     <td>
                        <form action="/view_notice_warden" method="post">
                            <button class=" btn btn-large s-ack" type="submit" name="ack" value=<%=ele.notice_id%> >delete notice</button>
                        </form>
                    </td> 
                </tr>
            <% }) %>
        </tbody>

    </table> 
</body>
</html>