44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php
|
|
if (session_status() !== PHP_SESSION_ACTIVE){
|
|
session_start();
|
|
}
|
|
include('../menu.php');
|
|
?>
|
|
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title> Cadastro de categorias </title>
|
|
<link rel="stylesheet" href="../css/menu.css">
|
|
<link rel="stylesheet" href="../css/forms.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">Listar</a>
|
|
<?php if(isset($_SESSION['msg'])){?>
|
|
<div class="msg">
|
|
<?php echo $_SESSION['msg'];
|
|
unset($_SESSION['msg']);?>
|
|
</div>
|
|
<?php }?>
|
|
<p><h1> Categorias - inclusão</h1></p>
|
|
<form method="POST" action="inc_cat.php">
|
|
<p> Nome: <input type="text" name="nome" required>
|
|
<table class='input'>
|
|
<td><input class='buttons' type="submit" value="Enviar"></td>
|
|
<td><input class='buttons' type="reset" value="Limpar"></td>
|
|
</table>
|
|
</form>
|
|
</section>
|
|
</article>
|
|
<?php
|
|
echo $footer;
|
|
?>
|
|
</body>
|
|
</html>
|