<!-- Manager Post Review Modal --> <div class="modal fade" id="postManagerModal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="" method="post"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title">Publish Review</h4> </div> <div class="modal-body"> <p>This will publish the review averages to the managers specified who will each receive a notification email.</p> <div class="form-group"> <label>Managers</label> <?php $managers = CfaEmployee::getManagers(); foreach ($managers as $m) { //Is it already published to this manager? $checked = ""; $result = $porm->read("SELECT * FROM p_review_published WHERE review_time = {$review->review_time} AND employee_id = {$review->employee_id} AND manager_id = {$m->id}", []); if (count($result)) { $checked = " checked"; } print "<div class='form-group'>\n\t\t\t\t\t\t<input type='checkbox' name='manager[{$m->id}]' value='{$m->id}'{$checked}> {$m->fName} {$m->lName}</div>"; } ?> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <button type="submit" name="post-manager" class="btn btn-primary">Post</button>
<!-- New Late Log Modal --> <div class="modal fade" id="lateModal" tabindex="-1" role="dialog" aria-labelledby="requestModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="" method="post"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Add Late Incident</h4> </div> <div class="modal-body"> <div class="form-group"> <label>Employee</label> <select name="employee" class="form-control"> <?php $employees = CfaEmployee::getAll(); foreach ($employees as $e) { $selected = (isset($_GET["employee"]) and $_GET["employee"] == $e->id) ? " selected" : ""; print "<option value='{$e->id}'{$selected}>{$e->fName} {$e->lName}</option>"; } ?> </select> </div> <div class="form-group"> <label>Date</label> <input type="date" name="date" value="<?php echo date("Y-m-d"); ?> " class="form-control"> </div>
<thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Review Type</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach (CfaEmployee::$review_times as $type => $type_array) { if ($type == "0") { continue; } $ignored = CfaEmployee::getIgnored($type); if (!count($ignored)) { continue; } foreach ($ignored as $e) { print "<tr>"; $fields = ["id", "fName", "lName"]; foreach ($fields as $field) { print "<td>" . $e->{$field} . "</td>"; } $type_display = $type_array[0]; print "<td>{$type_display}</td>"; print "<td><a href='review.php?employee={$e->id}&time={$type}' class='btn btn-default'>Review</a><form style='display:inline;' action='' method='post'><input type='hidden' name='employee' value='{$e->id}'><input type='hidden' name='time' value='{$type}'><button type='submit' name='unignore' class='btn btn-default'>Unpostpone</button></form></td>"; print "</tr>"; } }