<?php include "include/header_admin.php"; include 'include/admin_menu.php'; ?> <div id="content4"> <?php $name = filter_input(INPUT_POST, 'id1'); if (isset($_POST['act'])) { $id = $_POST['id']; staff_statusactivate($id); print "{$name} has been successfully activated"; print "<br/><br/><a href=\"status.php\">Go Back</a>"; } if (isset($_POST['dact'])) { staff_statusdeactivate($_POST['id']); print "{$name} has been successfully deactivated"; print "<br/><br/><a href=\"status.php\">Go Back</a>"; } return; ?> </div> </div> <?php include "include/footer.php"; print <<<HERE </body> </html> HERE ;
<td>Birthday </td> <td><?php echo ucwords(get_staff_birthday($_GET['id'])); ?> </td> </tr> <tr> <td>Status</td> </tr> <tr> <td colspan="2"><form method="post" action=""><input type="submit" name="dact" value="deactivate"/><input type="submit" name="act" value="activate"/></form></td> </tr> <?php if (isset($_POST['act'])) { staff_statusactivate($_GET['id']); echo "<tr><td colspan=\"2\">Status has been activated</td></tr>"; } if (isset($_POST['dact'])) { staff_statusdeactivate($_GET['id']); echo "<tr><td colspan=\"2\">Status has been deactivated</td></tr>"; } ?> <tr> <td colspan="2"><a href="statusvaluecheck.php">Go Back</a></td> </tr> </table> <br/> <br/> <br/> <br/>