-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusuarios_perfil.php
42 lines (37 loc) · 1.09 KB
/
usuarios_perfil.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
include 'seguro.php';
include 'conectadb.php';
if(isset($_GET['f_id'])){ $idrol=$_GET['f_id']; }else{ $idrol="X"; }
if(isset($_GET['nombre'])){ $nom_rol=$_GET['nombre']; }else{ $nom_rol="X"; }
//echo $idrol;
$cont=0;
?>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<div class="container">
<center>
<div class="panel panel-default">
<div class="panel-heading" align="center">
<strong>Usuarios Perfil</strong></div>
<div class="panel-body" align="center">
<centet><h3><?php echo $nom_rol ?></h4></centet>
<table class="table table-condensed">
<tr>
<th>#</th>
<th>nombre</th>
</tr>
<?php
$query = "select idusuario, upper(CONCAT (nombre, ' ', apellido)) nombre from usuarios where idrol = '".$idrol."'";
$rset=mysql_query($query,$con) or die ("conexion fallida: ".mysql_error());
while($line=mysql_fetch_array($rset,MYSQL_ASSOC)){
$cont++;
echo "<tr>";
echo "<td>".$cont."</td>";
echo "<td>".$line['nombre']."</td>";
echo "</tr>";
}
?>
</table>
</div>
</div>
</center>
</div>