initial commit
This commit is contained in:
47
rels/rel_cliente_adm.php
Normal file
47
rels/rel_cliente_adm.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
if (session_status() !== PHP_SESSION_ACTIVE){
|
||||
session_start();
|
||||
}
|
||||
include("../conexao.php");
|
||||
adm_auth();
|
||||
include('../menu.php');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Relatório prestador</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'>
|
||||
<h1>Usuários</h1>
|
||||
<?php
|
||||
$sql= "SELECT * FROM consulta_usuarios";
|
||||
$resultado = mysqli_query($con,$sql) or die("Erro ao retornar dados");
|
||||
|
||||
while ($registro = mysqli_fetch_array($resultado)){
|
||||
$tipo = 'Erro!';
|
||||
if(strcmp($registro['tipo_usuario'],'adm') == 0)
|
||||
{
|
||||
$tipo = 'Administrador';
|
||||
}
|
||||
else if(strcmp($registro['tipo_usuario'],'com') == 0)
|
||||
{
|
||||
$tipo = 'Comum';
|
||||
}
|
||||
echo "<h2>N°: ".$registro['login_id']."<br>Cliente: ".$registro['nome_usuario'].", ".$tipo."<br></h2>";
|
||||
echo "<h3>Usuário: ".$registro['usuario']."<br></h3>";
|
||||
echo "<hr>";
|
||||
}
|
||||
mysqli_close($con);
|
||||
?>
|
||||
</section>
|
||||
</article>
|
||||
<?php echo $footer; ?>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user