<?php require "actions/checkLoggedInAction.php"; require_once "mysql/Table.php"; $computer = new Row(new Table("computer"), $_GET["computerName"]); if (!$computer->doesExist()) { echo "<script>\n\t\t\talert(\"{$_GET["computerName"]} does not exist!\");\n\t\t\thistory.back();\n\t\t</script>"; exit; } $pageTitle = $computer["computer_name"]; ?> <!doctype html> <html> <head> <?php include "templates/head.php"; ?> <script> $(function() { $("#deleteButton").click(function(event) { event.preventDefault(); if (confirm("Are you sure you want to delete \"" + <?php echo "\"" . $computer["computer_name"] . "\""; ?> + "\"?")) { $.post( "actions/deleteItemAction.php", {item: <?php echo "\"" . $computer["computer_name"] . "\""; ?> , tableName: "computer"},