<?php
if($fac_formato_orden=='Carta')
{ 
?>
    <a href="libraries/tcpdf/documentos/orden_servicio5.php?ord_id=<?php echo $ord_id;?>" target="_blank" class="btn btn-primary" ><span class="btn-icon-only icon-print"></span>Carta</a>
<?php   
} 
else   
{   ?>
    <a href="libraries/tcpdf/documentos/orden_servicio5.php?ord_id=<?php echo $ord_id;?>" target="_blank" class="btn btn-primary" ><span class="btn-icon-only icon-print"></span>Carta</a>
    <a href="tirillas/tirilla_servicio.php?ord_id=<?php echo $ord_id;?>" class="btn btn-success" target="_blank" title="Imprimir"><i class="btn-icon-only icon-print"></i>Tirilla</a>
<?php   }  ?> 
