diff --git a/users.php b/users.php index bde65ca..1e5ab11 100755 --- a/users.php +++ b/users.php @@ -16,6 +16,43 @@ echo "

You are not logged in!!!

"; else { //********** BEGIN CONTENT **********// +echo "

System Users

"; +echo "

Editing to be added, for now, it doesn;t exist

"; +$result = $sql->prepare("SELECT users.id as userid, users.username as username, users.email as email, users.created as created, users.firstname as firstname, users.lastname as lastname, users.usertype as usertypeid, usertypes.typename as usertype +FROM yaptc.users +INNER JOIN usertypes ON users.usertype = usertypes.id +ORDER BY users.lastname ASC;"); +$result->execute(); +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +while ($row = $result->fetch(PDO::FETCH_ASSOC)) +{ +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +} +echo ''; +echo '
First NameLast NameUsernameEmailCreatedUser Type
" . $row['firstname'] . "" . $row['lastname'] . "" . $row['username'] . "" . $row['email'] . "" . $row['created'] . "" . $row['usertype'] . "
'; + + +echo "

Add User

"; +echo "

Use the following form to add users to the system. Passwords must be 8+ characters. Email must be filled out, and username must be unique.

"; + require_once($yaptc_lib . "phpass-0.3/PasswordHash.php"); if (!empty($_POST)) {