48 lines
1.4 KiB
PHP
48 lines
1.4 KiB
PHP
|
<?php
|
||
|
if(session_status() !== PHP_SESSION_ACTIVE){
|
||
|
session_start();
|
||
|
}
|
||
|
?>
|
||
|
<DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title> Cadastro de Usuário </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>
|
||
|
<article>
|
||
|
<section class='center'>
|
||
|
<p><h1> Cadastro de Usuário </h1></p>
|
||
|
<?php if(isset($_SESSION['msg'])){?>
|
||
|
<div class="msg">
|
||
|
<?php echo $_SESSION['msg'];
|
||
|
unset($_SESSION['msg']);?>
|
||
|
</div>
|
||
|
<?php }?>
|
||
|
<hr>
|
||
|
<form method="POST" action="inc_user.php">
|
||
|
|
||
|
<?php
|
||
|
if(isset($_SESSION['tmp']))
|
||
|
echo "<input type='hidden' name='cli_id' value=".$_SESSION['tmp'].">";
|
||
|
?>
|
||
|
<p> Usuário: <input type="text" name="usuario" required></p>
|
||
|
<p> Senha: <input type="password" name="senha" required></p>
|
||
|
<p> Tipo:
|
||
|
<select name="tipo">
|
||
|
<option value="adm">Administrador</option>
|
||
|
<option value="com" selected="selected">Comum</option>
|
||
|
</select></p>
|
||
|
<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>
|
||
|
</body>
|
||
|
</html>
|