<!DOCTYPE html> <html lang="en"> <head> <title>taskerMAN</title> <link rel="stylesheet" href="style.css"> </head> <body> <?php require_once "components/dbconnect.php"; require_once "components/init.php"; loadInit("default", $conn); header("refresh:5;url=index.php"); ?> <main> <div id="mainTop"> <h2>Action completed successfully.</h2> </div> <div id="mainBody"> <p>You will be redirected in 5 seconds.</p> </div> </main> </body> </html>
var emailChanged = document.getElementById('memberEmailDefault').value != document.getElementById('memberEmail').value; if(lastNameChanged || firstNameChanged || emailChanged){ document.getElementById("confirmMemberChanges").disabled = false; }else{ document.getElementById("confirmMemberChanges").disabled = true; } } </script> </head> <body> <?php //require_once("../components/dbconnect.php"); require_once "../components/init.php"; loadInit("member", $conn); //$sth = $conn->prepare("SELECT firstName, lastName, email FROM TeamMember WHERE email='" . str_replace('_', '.', array_keys($_POST)[1]) . "'"); //$sth->execute(); //$currMember = $sth->fetch(PDO::FETCH_ASSOC); ?> <main> <div id="mainTop"> <h2><?php if (isset($_POST["confirmTaskChanges"])) { echo $_POST["memberLastNameDefault"] . ", " . $_POST["memberFirstNameDefault"]; } else { echo $currMember['lastName'] . ", " . $currMember['firstName']; } ?> </h2>
<link rel="stylesheet" href="../style.css"> <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic' rel='stylesheet' type='text/css'> <script src="../components/validators/validateNewTask.js"></script> <script> function setMin() { document.getElementById("taskCompletionDate").value = document.getElementById("taskStartDate").value; document.getElementById("taskCompletionDate").min = document.getElementById("taskStartDate").value; } </script> </head> <body> <?php require_once "../components/dbconnect.php"; require_once "../components/init.php"; loadInit("task", $conn); header("refresh:300;url=../timeout.php"); ?> <main> <div id="mainTop"> <h2>New task</h2> </div> <div id="mainBody"> <form id="newTaskForm" name="newTaskForm" action="?" method="POST"> <fieldset> <label for="taskTitle">Task title</label> <input type="text" id="taskTitle" name="taskTitle" max="64" value="<?php echo htmlentities($taskTitle); ?>
<!DOCTYPE html> <html lang="en"> <head> <title>taskerMAN</title> <link rel="stylesheet" href="style.css"> <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic' rel='stylesheet' type='text/css'> </head> <body> <?php require_once "components/init.php"; loadInit("dberror", $conn); ?> <main> <div id="mainTop"> <h2>Database connection problem</h2> </div> <div id="mainBody"> <p>Oops! A problem was encountered when connecting to the database!</p> </div> </main> </body> </html>