Rename the hardware phones to devices.

This commit is contained in:
Mark Crane
2013-03-20 16:53:37 +00:00
parent 3ce7d717ca
commit 648ef006cc
4 changed files with 225 additions and 177 deletions

View File

@@ -39,9 +39,9 @@ if (count($_GET)>0) {
//delete the data
if (strlen($id)>0) {
$sql = "delete from v_hardware_phones ";
$sql = "delete from v_devices ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and hardware_phone_uuid = '$id' ";
$sql .= "and device_uuid = '$id' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql);
@@ -52,7 +52,7 @@ if (count($_GET)>0) {
//redirect the user
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=hardware_phones.php\">\n";
echo "<meta http-equiv=\"refresh\" content=\"2;url=devices.php\">\n";
echo "<div align='center'>\n";
echo "Delete Complete\n";
echo "</div>\n";
@@ -60,4 +60,3 @@ if (count($_GET)>0) {
return;
?>