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