Código PHP:
Ver originalclass Usuarios extends Conexion
{
function Consulta_Todos()
{
$Query = 'SELECT * FROM user_dat';
$resul=$this->EjecutarQuery($Query);
$listado = $this->Listado($resul);
return $listado;
}
function Listado($dato)
{
$lista = '';
$lista.='<table width="312" border="1" bgcolor="#FFFFFF" align="center">
<tr align="center">
<th width="110" nowrap="nowrap" scope="col" bgcolor="#999999">Nombre</th>
<th width="110" nowrap="nowrap" scope="col" bgcolor="#999999">Apellido Paterno</th>
<th width="110" nowrap="nowrap" scope="col" bgcolor="#999999">Apellido Materno</th>
<th width="110" nowrap="nowrap" scope="col" bgcolor="#999999">Telefono Empresa</th>
<th width="110" nowrap="nowrap" scope="col" bgcolor="#999999">Celular</th>
<th width="110" nowrap="nowrap" scope="col" bgcolor="#999999">Correo</th>
<th width="110" nowrap="nowrap" scope="col" bgcolor="#999999">Accion</th>
</tr>';
{
$lista.='
<tr align="center">
<td width="110" nowrap="nowrap" scope="col" >'.$filas['nom_user'].'</td>
<td width="110" nowrap="nowrap" scope="col" >'.$filas['ape_1'].'</td>
<td width="110" nowrap="nowrap" scope="col" >'.$filas['ape_2'].'</td>
<td width="110" nowrap="nowrap" scope="col" >'.$filas['tel_empresa'].'</td>
<td width="110" nowrap="nowrap" scope="col" >'.$filas['cel_user'].'</td>
<td width="110" nowrap="nowrap" scope="col" >'.$filas['mail_user'].'</td>
<td width="110" nowrap="nowrap" scope="col" ><a href="#"><img src="Imagenes/cross.png" width="30" height="30" /></a></td>
</tr>';
}
$lista.='</table>';
}
return $lista;
}