<style>
.grid
{
    border: 1px solid #77d5f7;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}
.grid th 
{
    border-color: #77d5f7;
    background-color: #0a7db1;
    font-weight: normal;
    font-size: 11px;
    font-family: Verdana,Arial,sans-serif;
    height: 24px;
    padding: 0 2px;
}
.grid td 
{
    border-left: 0 none;
    border-right-color: #77d5f7;
    border-right-style: solid;
    border-right-width: 1px;
    border-bottom-color: #77d5f7;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    padding: 0 2px;
    /*white-space: pre;*/
    height: 22px;
    /*border: 1px solid #77d5f7;*/
}
</style>

<div id="resultContent" style=""></div>

<script>
<?php if( $a_ResultSelect ){ ?>
$( "#content_desc_item" ).html( "<?=$a_ResultSelect[0]->getDescripcionItem()?>" );
<?php } ?>
</script>

<table class="grid" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="border-bottom: medium none;">
    <tbody>
        <tr>
            <th colspan="4" style="border-top-left-radius: 5px; border-bottom: 1px solid #77d5f7;">
                 DOCUMENTO DE TRASLADO, COMPROBANTE DE PAGO, DOCUMENTO INTERNO O SIMILAR
            </th>
            <th rowspan="2" width="18%"> TIPO DE OPERACION </th>
            <th rowspan="2"> ENTRADAS </th>
            <th rowspan="2"> SALIDAS </th>
            <th rowspan="2" style="border-top-right-radius: 5px;"> SALDO FINAL </th>
        </tr>
        <tr>
            <th align="center"  width="10%">FECHA</th>
            <th align="center"  width="15%">TIPO</th>
            <th align="center"  width="10%"> SERIE </th>
            <th align="center"  width="10%"> NUMERO </th>
        </tr>
    </tbody>
    <tbody>
        <?php foreach ( $a_ResultSelect as $i_Key => $o_ALM_KardexBN ){ ?>
        <tr>
            <td style="text-align: center;"> <?=substr( $o_ALM_KardexBN->getIdFecha(), 0, 10 )?> </td>
            <td style="text-align: left;"> <?=$o_ALM_KardexBN->getTipoDocumentoComprobante()?> </td>
            <td style="text-align: center;"> <?=$o_ALM_KardexBN->getSerieDocumentoFiscal()?> </td>
            <td style="text-align: center;"> <?=$o_ALM_KardexBN->getNumeroDocumentoFiscal()?> </td>
            <td style="text-align: center;"> <?=$o_ALM_KardexBN->getTipoOperacionKardex()?> </td>
            <td style="text-align: center;"> <?=$o_ALM_KardexBN->getStockIngreso()?> </td>
            <td style="text-align: center;"> <?=$o_ALM_KardexBN->getStockSalida()?> </td>
            <td style="text-align: center;"> <?=$o_ALM_KardexBN->getSaldoCantidad()?> </td>
        </tr>
        <?php } ?>
    </tbody>
    <tbody>
        <tr>
            <th align="center" style="border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;" colspan="8"> &nbsp; </th>
        </tr>
    </tbody>
</table>