<input type='submit' value='Delete' name="list_delete_btn"/> </form> <?php } ?> </td> <?php echo "</tr>"; } echo "</table>"; } if (session_status() == PHP_SESSION_NONE) { session_start(); } require_once "../config.php"; require_once ROOT_PATH . "/opendb.php"; require_once ROOT_PATH . TEMPLATES_PATH . "/header.php"; require_once "crud.php"; require_once "show.php"; require_once "../permissions.php"; if (Can_Delete_Members() && isset($_POST['list_delete_btn'])) { $key = $_POST['memberid']; $key_array = array('memberid' => $_POST['memberid']); RowDelete($database, 'member', $key_array); } if (Can_List_Members()) { $result = TableRetrieve($database, "member"); MemberTableShow($result); } else { echo "Insufficient permissions."; }
?> </td> <?php echo "</tr>"; } echo "</table>"; } if (session_status() == PHP_SESSION_NONE) { session_start(); } require_once "../config.php"; require_once ROOT_PATH . "/opendb.php"; require_once ROOT_PATH . TEMPLATES_PATH . "/header.php"; require_once "crud.php"; require_once "show.php"; require_once "../permissions.php"; if (Can_Do_Inventory() && isset($_POST['list_delete_btn'])) { $key = $_POST['inventorynum']; $key_array = array('inventorynum' => $_POST['inventorynum']); RowDelete($database, 'inventory_items', $key_array); } if (isset($_POST['create_btn'])) { unset($_POST['create_btn']); RowCreate($database, 'inventory_items', $_POST); } if (Can_Do_Inventory()) { $result = TableRetrieve($database, "inventory_items"); MemberTableShow($result); } else { echo "Insufficient permissions."; }