initial commit
This commit is contained in:
41
orcamento/del_orcamento.php
Normal file
41
orcamento/del_orcamento.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?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>
|
Reference in New Issue
Block a user