<?php
require('../cfg/res.php');
$sql_elist='select *from enti0 order by enti_descri';
$res_elist=mysql_query($sql_elist,$link_vcrx);
if(mysql_num_rows($res_elist)!=0)
{
	?>
<table border="0" width="90%" cellspacing="0" cellpadding="2" style="border-collapse:collapse">
	<tr>
    	<th width="1%%"></th>
    	<th width="10%">CODIGO</th>
        <th width="10%">Ape.Pat.</th>
        <th width="10%">Ape.Mat.</th>
        <th width="10%">Nombre 1</th>
        <th width="10%">Nombre 2</th>
        <th width="10%">Razon Social.</th>
        <th width="10%">Nombre Comercial</th>
        <th width="10%">Ciudad</th>
        <th width="10%">Direccion</th>
    </tr>







<?php
$filax=0;
	while($row_elist=mysql_fetch_assoc($res_elist))
	{
?>
	<tr class="filax" style=" <?php if($filax>=4){echo 'border-top:dotted 1px #000;';$filax=1;}else{$filax++;} ?> vertical-align:top" >
        	<td><input type="image" src="http://vcrxol.com/_img/ico_modify.png" width="15" onclick="edit_e('<?php echo $row_elist['enti_codigo'];?>');" /></td>
        	<td><?php echo $row_elist['enti_codigo'];?></td>
            <td><?php echo $row_elist['enti_ape1'];?></td>
            <td><?php echo $row_elist['enti_ape2'];?></td>
            <td><?php echo $row_elist['enti_nom1'];?></td>
            <td><?php echo $row_elist['enti_nom2'];?></td>
            <td><?php echo $row_elist['enti_razsoc'];?></td>
            <td><?php echo $row_elist['enti_nomcom'];?></td>
            <td><?php echo $row_elist['cdad_descri'];?></td>
            <td><?php echo $row_elist['cdad_direcc'];?></td>
        
        </tr>
<?php		
	
	}
?>    
    
</table>
<?php	

}
?>