コード例 #1
0
include '../conexion_db.php';
conectame_db('scrap_gdl');
include 'funciones.php';
include 'filtros.php';
?>
      
<?php 
switch ($reporte) {
    case "capturista":
        capturista($op, $fechai, $fechaf, $buscar, $filtros, $reason, $editados);
        break;
    case "autorizador":
        autorizador($op, $fechai, $fechaf, $buscar, $filtros, $reason, $editados);
        break;
    case "por_firmar":
        por_firmar($fechai, $fechaf, $buscar, $filtros, $tipo, $reason, $editados);
        break;
}
?>
</b></td>


<?php 
function por_firmar($fechai, $fechaf, $buscar, $filtros, $tipo, $reason, $editados)
{
    ?>
<table align="center" class="tabla" border="0">
<thead>
	<tr bgcolor="#E6E6E6" height="20">
		<td colspan="29" align="center"><b>Reporte de SCRAP por firmar</b></td>
	</tr>
コード例 #2
0
$file_name = "reporte_scrap_" . date("Ymd") . ".xls";
header('Content-type: application/vnd.ms-excel');
header("Content-Disposition: attachment;filename={$file_name}");
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<?php 
include '../conexion_db.php';
include 'funciones.php';
include 'filtros.php';
switch ($op) {
    case "consultas":
        consultas($fechai, $fechaf, $aplica_oes, $buscar, $filtros, $tipo, $reason, $editada, $motivo);
        break;
    case "por_firmar":
        por_firmar($fechai, $fechaf, $buscar, $filtros, $tipo, $reason, $query);
        break;
    case "descargar":
        descargar($fechai, $fechaf, $buscar, $filtros, $tipo, $reason);
        break;
}
function descargar($fechai, $fechaf, $buscar, $filtros, $tipo, $reason)
{
    ?>
<table align="center" class="tabla" border="0">
<thead>
	<tr bgcolor="#E6E6E6" height="20">
		<td colspan="33" align="center"><b>Reporte de SCRAP por firmar para Inventarios</b></td>
	</tr>
</thead>	
</table><br>