41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
<?php
|
|
session_start();
|
|
include_once("../conexao.php");
|
|
$id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);
|
|
$result = "SELECT * FROM orcamentos WHERE id = '$id'";
|
|
$resultado = mysqli_query($con, $result);
|
|
$row = mysqli_fetch_assoc($resultado);
|
|
include('../menu.php');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="pt-br">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title> Exclusão de orçamento </title>
|
|
<link rel="stylesheet" href="../css/menu.css">
|
|
<link rel="stylesheet" href="../css/article.css">
|
|
<link rel="stylesheet" href="../css/input.css">
|
|
</head>
|
|
<body>
|
|
<?php echo $nav;?>
|
|
<article>
|
|
<section class='center'>
|
|
<a href="index.php"> Orçamentos</a><br>
|
|
<h1> Excluir orçamento </h1>
|
|
<?php
|
|
if (isset($_SESSION['msg'])) {
|
|
echo $_SESSION['msg'];
|
|
unset($_SESSION['msg']);
|
|
}
|
|
?>
|
|
<form method="POST" action="proc_del_orcamento.php">
|
|
<label> ID: </label>
|
|
<input type="text" name="id" placeholder="Digite o id do orçamento" value="<?php echo $row['id']; ?>"><br><br>
|
|
|
|
<input class='buttons' type="submit" value="Confirmar exclusão">
|
|
</form>
|
|
</section>
|
|
</article>
|
|
<?php echo $footer;?>
|
|
</body>
|
|
</html>
|