ASP.NET / ASP.NET Helpdesk System Using jQuery and Bootstrap / CasestudyWebsite / wwwroot / employee.html
employee.html
Raw
<!DOCTYPE html>
<html>
<head>
    <title>Employee</title>
    <meta charset="utf-8" />
    <link href="lib/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="icon" href="data:;base64,iVBORw0KGgo=">
    <link href="css/employee.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body class="">
    <!--Nav Bar-->
    <nav class="navbar navbar-expand-md navbar-dark">
        <a class="navbar-brand mx-3" href="#">Case #2</a>
        <button class="navbar-toggler mx-3" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarContent">
            <ul class="navbar-nav ms-3 me-auto">
                <!--Home-->
                <li class="nav-item">
                    <a class="nav-link" href="/home.html">Home</a>
                </li>
                <!--Employees List-->
                <li class="nav-item">
                    <a class="nav-link active" href="/employee.html">Employees</a>
                </li>
                <!--Calls List-->
                <li class="nav-item">
                    <a class="nav-link" href="/call.html">Calls</a>
                </li>
                <!--Reports-->
                <li class="nav-item">
                    <a class="nav-link" href="/report.html">Reports</a>
                </li>
            </ul>
            <!--Search Bar-->
            <form>
                <input class="form-control rounded-pill rounded-pill h-25 mt-2 ms-2" type="search" placeholder="Search Employees" id="srch" aria-label="Search" style="width: 12em; max-width:12em; ">
            </form>
            <!--Darkmode Switch-->
            <label class="switch ms-3 mt-3">
                <input type="checkbox" class="checker" id="lightSwitch" />
                <span class="slider round"></span>
            </label>
        </div>
    </nav>
    <!--Logo and Title-->
    <div class="text-center mt-5">
        <img src="img/logo.png" width="200" height="200" id="logo" />
        <h1>Employees List</h1>
    </div>
    <!--Content Container-->
    <div class="justify-content-center align-items-center row m-1">
        <div class="justify-content-center align-items-center row m-2 ml-3"
             style="height:70vh;">
            <!--Employees List - This is where the JS will insert the list header and employee information-->
            <div class="list-group col-10" id="employeeList"></div>
        </div>
    </div>
    <form id="EmployeeModalForm" name="EmployeeModalForm" method="post" action="">
        <!--Modal-->
        <div class="modal fade" id="myModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
             aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <!--Modal Content-->
                <div class="modal-content">
                    <!--Modal Header With Title-->
                    <div class="modal-header">
                        <h2 class="modal-title" id="myModalLabel"></h2>
                        <!--Modal Close Button in Header-->
                        <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
                    </div>
                    <!--Modal Body-->
                    <div class="modal-body">
                        <div class="mx-4 my-4">
                            <!--Card containing Employee Information, Inputs, and Department Select-->
                            <div class="card">
                                <div class="card-header text-center">
                                    Employee Information
                                </div>
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-4">Title:</div>
                                        <div class="col-8">
                                            <input type="text" placeholder="enter title" id="TextBoxTitle" name="TextBoxTitle"
                                                   class="form-control" />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-4">First:</div>
                                        <div class="col-8">
                                            <input type="text" placeholder="enter first name" id="TextBoxFirstname" name="TextBoxFirstname"
                                                   class="form-control" />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-4">Surname:</div>
                                        <div class="col-8">
                                            <input type="text" placeholder="enter last name" id="TextBoxLastname" name="TextBoxLastname"
                                                   class="form-control" />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-4">Phone#:</div>
                                        <div class="col-8">
                                            <input type="text" placeholder="enter phone#" id="TextBoxPhone" name="TextBoxPhone"
                                                   class="form-control" />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-4">Email:</div>
                                        <div class="col-8">
                                            <input type="text" placeholder="enter email address" id="TextBoxEmail" name="TextBoxEmail"
                                                   class="form-control" />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-4">Departments:</div>
                                        <div class="col-8"><select id="ddlDepartments" name="ddlDepartments" class="form-control"></select></div>
                                    </div>
                                    <div class="row">
                                        <div class="col-4">Picture:</div>
                                        <div class="col-8" id="ImageHolder"></div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!--Card footer containing input buttons to update, delete, and confirm delete-->
                        <div class="card-footer text-center">
                            <div class="row border m-3 p-3" id="insertDiv">
                                <label for="file" class="mb-2">Choose Different Picture?</label>
                                <input type="file" id="uploader" class="text-center" />
                            </div>
                            <input type="button" class="btn btn-secondary mt-3" value="update" id="actionbutton" />
                            <input type="button" class="btn btn-secondary mt-3" value="delete" id="deleteprompt" />
                            <div class="alert alert-danger fade show" role="alert" id="deletealert" style="width: 80%; margin: auto; margin-top: 2vh;">
                                <strong>Are you sure?</strong><p></p>
                                <input type="button" class="btn btn-secondary mt-3" value="yes" id="deletebutton" />
                                <input type="button" class="btn btn-secondary mt-3" value="No" id="deletenobutton" />
                            </div>
                            <!--Modal Status - This is where the JS inputs Modal Status-->
                            <br />
                            <div id="modalstatus" class="text-left mt-3 mb-2"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <!--JQuery, Bootstrap, and Employee Script-->
    <script src="lib/js/jquery.min.js"></script>
    <script src="lib/js/jquery.validate.min.js"></script>
    <script src="lib/js/bootstrap.min.js"></script>
    <script src="js/employee.js"></script>
</body>
</html>