<?php require_once "../../includes/initialize.php"; ?> <?php if (isset($_GET['order'])) { $users = User::find_all_with_order($_GET['order']); } else { $users = User::find_all(); } include_layout_template('admin_header.php'); ?> <h2>Users</h2> <?php echo output_message($message); ?> <a href="logout.php">Logout</a> <table class="list_user"> <tr> <th><a href="list_users.php?order=id"> ID </a></th> <th><a href="list_users.php?order=username">Username </a></th> <th><a href="list_users.php?order=first_name">First Name</a></th> <th><a href="list_users.php?order=last_name">Last Name</a></th> <th><a href="list_users.php?order=password">Password</a></th> <th> </th> </tr> <?php