<?php
function vrinvdisp($item)
{
	require('../cfg/res.php');
	mysql_query("SET NAMES 'utf8'");
        $sql_item='select *from inve12 where item="'.$item.'" ORDER BY fecha DESC, docu DESC, idnum1 ';
	//echo $sql_item; 
       $res_item=mysql_query($sql_item,$link_vcrx);
       
	

?>

<div style="overflow-y:scroll; height:250px;">


<table id="tabla_invdisp" width="100%" border="1" cellspacing="0" cellpadding="2" style="border-collapse:collapse;font-size:12px; border:#000000 solid 1px;">

<tr>
  <th>FECHA</th>
  <th>DOC.</th>
  <th>BOD.</th>
  <th>PTO.NUMERO</th>  
  <th>INGRESO</th>
  <th>_EGRESO</th>
  <th>ENTIDAD</th>
  <th>CONCEPTO</th>
</tr>
<?php while($r_item=mysql_fetch_assoc($res_item)){?>

<tr>
  <td align="center"><?php echo $r_item['fechadmy']; ?></td>
  <td align="center"><?php echo $r_item['docu']; ?></td>
  <td align="center"><?php echo $r_item['bode']; ?></td>
  <td align="center" width="120px"><?php echo $r_item['ptonumero']; ?></td>
  <td align="right"><?php if($r_item['tingreso']!=0){ echo $r_item['tingreso'];} ?></td>
  <td align="right"><?php if($r_item['tegreso']!=0){ echo $r_item['tegreso'];} ?></td>
  <td><?php echo $r_item['enti_descri']; ?></td>
  <td><?php echo $r_item['concepto']; ?></td>
</tr>

<?php }?>

</table>
<div>

<?php }?>