Exemple #1
0
                <?php 
}
if ($_GET['error']) {
    ?>
            	<div class="naranjaC">LOS DATOS SON INCORRECTOS<br />verifique e intente nuevamente</div>
                <?php 
}
?>
            	<form action="login.php" method="post" id="login">
               		<input type="hidden" name="u" value="<?php 
echo $_GET['u'];
?>
" />
                    <label for="usuario">Usuario</label>
                    <input type="text" name="usuario" id="usuario"/><br />
                    <label for="pass">Contraseña</label>
                    <input type="password" name="pass" id="pass"/><br />
                    <input type="submit" value="Ingresar" class="corner-all" style=""/>
                </form>
	        </div>
            </div>    
    	</div>
    	<div class="clear"></div>
       

</div>
</body>
</html>
<?php 
php_start();
<?php

include_once "fpdf/fpdf.php";
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "../config.php";
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "../funciones/funciones.php";
php_start(0);
$logo = "logo.jpg";
class PPDF extends FPDF
{
    var $ancho = 176;
    function Header()
    {
        global $idioma;
        if ($this->CurOrientation == "P") {
            $this->ancho = $this->w - 34;
        } else {
            $this->ancho = $this->w - 40;
        }
        $this->SetAuthor("Sistema Desarrollado por Ronald Nina Layme. Cel: 73230568 - Soluciones Tecnológicas de Sistemas");
        $this->SetSubject("Sistema Desarrollado por Ronald Nina Layme. Cel: 73230568 - Soluciones Tecnológicas de Sistemas");
        $this->SetCreator("Sistema Desarrollado por Ronald Nina Layme. Cel: 73230568 - Soluciones Tecnológicas de Sistemas");
        $this->SetLeftMargin(18);
        $this->SetAutoPageBreak(true, 15);
        global $title, $lema2, $titulo, $logo, $idioma;
        $fecha = date("d-m-Y");
        $this->Image(dirname(__FILE__) . "/../imagenes/cabecera2pdf.jpg", 10, 10, 195, 30);
        $this->Fuente("", 10);
        $this->SetXY(10, 35);
        //$this->Cell(55,4,utf8_decode($title),0,0,"L");
        $this->Fuente("B", 8);
        $this->SetXY(45, 16);