<script>
function ocultarimprimir()
{
var filas = parseInt(document.getElementById("total_concepto").value)+1;
for (x = 1; x < filas; x++) {
var ide = document.getElementById("tipook"+x).value;
if (ide == "EXTRANJERO") {
document.getElementById("nacional").style.display = 'none';
document.getElementById("extranjero").style.display = 'block';
}
else
{
document.getElementById("nacional").style.display = 'block';
document.getElementById("extranjero").style.display = 'none';
}
}
}
</script>
</head>
<body onload="ocultarimprimir()">
<div id="tablabuscar">
<form id="form1" name="form1" method="get" action="">
<table width="528" border="0" >
<tr>
<td width="193" height="40">Busqueda por Transportista:</td>
<td width="250"><input type="text" name="txtbuscarnombre" id="txtbuscarnombre" /></td>
<td width="71" align="right"><input type="submit" name="buscar" id="buscar" value="Buscar" class="btn btn-primary btn-sm" />
</td>
</tr>
</table>
</form>
</div>
<p></p>
<p><a href="agregar.php"><img border="0" src="../imagenes/nuevo.png"></a>
</p>
<table width="92%" class="table table-hover ajustarok" border="1" id="tablaproveedor">
<tr id="color_encabezado">
<td>ID</td>
<td>FECHA</td>
<td>TRANSPORTISTA</td>
<td width="10%"># FACTURA</td>
<td>DELIVERY TICKET</td>
<td>TOTAL</td>
<td width="6%">T. C.</td>
<td width="2%"> </td>
<td width="2%"> </td>
<td width="2%"> </td>
</tr>
<?php
$indice = 0;
do {
$indice = $indice + 1;?>
<tr>
<td><?php echo $row_contrarecibostransportistas['id']; ?></td>
<td><?php echo $row_contrarecibostransportistas['fecha_contrarecibo']; ?></td>
<td><?php echo $row_contrarecibostransportistas['transportista']; ?></td>
<td><?php echo $row_contrarecibostransportistas['folio_factura']; ?></td>
<td><?php echo $row_contrarecibostransportistas['delivery_ticket']; ?></td>
<td><?php echo $row_contrarecibostransportistas['costo']; ?></td>
<td><?php echo $row_contrarecibostransportistas['tipocambio']; ?>
<input type="hidden" id="tipook<?php echo $indice; ?>" name="tipook<?php echo $indice; ?>" value="<?php echo $row_contrarecibostransportistas['tipo']; ?>" /></td>
<td><a href="editar.php?id=<?php echo $row_contrarecibostransportistas['id']; ?>"><img border="0" src="../imagenes/editar2.png" /></a></td>
<td><a href="eliminar.php?id=<?php echo $row_contrarecibostransportistas['id']; ?>"><img border="0" src="../imagenes/delete2.png" /></a></td>
<td><a href="plantilla_contrarecibotransportista2.php?id=<?php echo $row_contrarecibostransportistas['id']; ?>" target="_blank"><img border="0" src="../imagenes/mex.png" id="nacional"></a><a href="plantilla_contrarecibotransportista.php?id=<?php echo $row_contrarecibostransportistas['id']; ?>" target="_blank"><img border="0" src="../imagenes/usd.png" id="extranjero" /></a></td>
</tr>
<?php } while ($row_contrarecibostransportistas = mysql_fetch_assoc($contrarecibostransportistas)); ?>
</table>
<input type="text" id="total_concepto" name="total_concepto" value="<?php echo $indice; ?>">
<table border="0">
<tr>
<td>Registros <?php echo ($startRow_contrarecibostransportistas + 1) ?> a <?php echo min($startRow_contrarecibostransportistas + $maxRows_contrarecibostransportistas, $totalRows_contrarecibostransportistas) ?> de <?php echo $totalRows_contrarecibostransportistas ?></td>
<td width="5%" class="tablapaginador2"><?php if ($pageNum_contrarecibostransportistas > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_contrarecibostransportistas=%d%s", $currentPage, 0, $queryString_contrarecibostransportistas); ?>">Primero</a>
<?php } // Show if not first page ?></td>
<td width="5%" class="tablapaginador2"><?php if ($pageNum_contrarecibostransportistas > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_contrarecibostransportistas=%d%s", $currentPage, max(0, $pageNum_contrarecibostransportistas - 1), $queryString_contrarecibostransportistas); ?>">Anterior</a>
<?php } // Show if not first page ?></td>
<td width="5%" class="tablapaginador"><?php if ($pageNum_contrarecibostransportistas < $totalPages_contrarecibostransportistas) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_contrarecibostransportistas=%d%s", $currentPage, min($totalPages_contrarecibostransportistas, $pageNum_contrarecibostransportistas + 1), $queryString_contrarecibostransportistas); ?>">Siguiente</a>
<?php } // Show if not last page ?></td>
<td width="5%" class="tablapaginador"><?php if ($pageNum_contrarecibostransportistas < $totalPages_contrarecibostransportistas) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_contrarecibostransportistas=%d%s", $currentPage, $totalPages_contrarecibostransportistas, $queryString_contrarecibostransportistas); ?>">Último</a>
<?php } // Show if not last page ?></td>
</tr>
</table>
</p>
</body>
</html>
<?php
mysql_free_result($contrarecibostransportistas);
mysql_free_result($tipo);
?>