Example #1
0
		case "n":
			$color = imagecolorallocate($lienzo, 0, 0, 0);
			break;
		case "s":
			$color = imagecolorallocate($lienzo, 0, 0, 196);
			break;
	}

	for ($i=0; $i<=(0.5*($proporcionX * $proporcionY / 2)); $i++) {
		imagerectangle($lienzo, $_REQUEST["x"] + $i, $_REQUEST["y"] + $i, ($_REQUEST["x"] + 64 * $proporcionX) - $i, ($_REQUEST["y"] + 48 * $proporcionY) - $i, $color);
		imagerectangle($lienzo, $_REQUEST["x"] + (9 * $proporcionX) + $i, $_REQUEST["y"] + (12 * $proporcionY) + $i, ($_REQUEST["x"] + (64 * $proporcionX)) - (9 * $proporcionX) - $i, ($_REQUEST["y"] + (48 * $proporcionY)) - (12 * $proporcionY) - $i, $color);
	}

	imagettftext($lienzo, (5 * $proporcionX), 0, $_REQUEST["x"] + (6 * $proporcionX), $_REQUEST["y"] + (9 * $proporcionY), $color, $fuente, "Provincia ART S.A.");
	imagettftext($lienzo, (5 * $proporcionX), 0, $_REQUEST["x"] + (11.6 * $proporcionX), $_REQUEST["y"] + (26 * $proporcionY), $color, $fuente, $arrFecha[0]." ".strtoupper(substr(GetMonthName($arrFecha[1]), 0, 3))." ".$arrFecha[2]);
	imagettftext($lienzo, (5 * $proporcionX), 0, $_REQUEST["x"] + (14 * $proporcionX), $_REQUEST["y"] + (44 * $proporcionY), $color, $fuente, getLeyendaSello($_REQUEST["tipoSello"]));
}

if ($_REQUEST["extension"] == "png")
	imagepng($lienzo, $fileOutput);
else		// jpg o jpeg..
	imagejpeg($lienzo, $fileOutput);

imagedestroy($lienzo);
?>
<html>
	<head>
		<script>
			function cargaCompletada() {
				with (document) {
					getElementById('imgArchivo').style.display = 'inline';
Example #2
0
			break;
		case "s":
			$pdf->SetDrawColor(0, 0, 196);
			$pdf->SetTextColor(0, 0, 196);
			break;
	}
	
	$pdf->SetLineWidth(0.8);
	$pdf->Rect($_REQUEST["x"], $_REQUEST["y"], (64 * 0.8289), (52 * 0.6745), "D");
	$pdf->Rect($_REQUEST["x"] + 5, $_REQUEST["y"] + 9, (64 * 0.8289) - 10, (52 * 0.6745) - 18, "D");

	$pdf->SetXY($_REQUEST["x"] + 0.4, $_REQUEST["y"] + 5);
	$pdf->Cell(0, 0, "Provincia ART S.A.");

	$pdf->SetXY($_REQUEST["x"] + 8, $_REQUEST["y"] + 18);
	$pdf->Cell(0, 0, $arrFecha[0]." ".strtoupper(substr(GetMonthName($arrFecha[1]), 0, 3))." ".$arrFecha[2]);

	$pdf->SetFont("Arial", "B", 18);
	$pdf->SetXY($_REQUEST["x"] + 3.4, $_REQUEST["y"] + 31);
	$pdf->Cell(46, 0, getLeyendaSello($_REQUEST["tipoSello"]), 0, 1, "C");
}

if ($_REQUEST["accion"] == "g")
	$pdf->Output("Aviso de Obra.pdf", "D");
if ($_REQUEST["accion"] == "i") {
	$pdf->AutoPrint(false);
	$pdf->Output();
}
if ($_REQUEST["accion"] == "v")
	$pdf->Output();
?>