示例#1
0
<?php

include "sources/funciones.php";
if ($_SESSION["Activa"] && $_POST and $_SESSION["Tipo_usuario"] = "normal") {
    $idOficio = $_POST['id'];
    $datosOficio = getOficio($idOficio);
    $destinatario = __($_POST["destinatario"]);
    $mailOpcional = $_POST['mailOpcional'];
    $datosDestinatario = getDatosDestinatario($destinatario);
    $mailDestinatario = $datosDestinatario['correo'];
    $asuntoMail = 'Revisión de oficio ' . $datosOficio['noOficio'] . ', Coordinación General de Atención Ciudadana, Delegación SEP Estado de México';
    $cuerpoMail = '<p style="font-size: large;">
                                Por medio del presente, se solicita de la manera más atenta, dar revisión del oficio adjunto, de antemano agradezco la atención prestada.
                                <br>Sin otro particular, quedo a sus órdenenes.
                            </p>
                            <p style="text-align: center; font-weight: bold;">
                                <font style="font-size: larger;">Coordinación General de Atención Ciudadana</font><br>
                                Delegación SEP Estado de México
                            </p>';
    require_once 'sources/AttachMailer.php';
    if ($mailOpcional != '') {
        $mailer = new AttachMailer("*****@*****.**", "{$mailDestinatario},{$mailOpcional}", "{$asuntoMail}", "{$cuerpoMail}");
        $oficio = "Oficios/Oficio_" . $datosOficio['noOficio'] . ".pdf";
        $mailer->attachFile($oficio);
        if (file_exists($oficio)) {
            $res = $mailer->send() ? "OK" : "error";
        }
        if ($res == "OK") {
            $respuesta = '
                    <img src="images/ok.png" width="100">
                    <h4>
示例#2
0
<?php

include "sources/funciones.php";
if ($_SESSION["Activa"] and $_SESSION["Tipo_usuario"] = "normal" and $_GET) {
    $idOficio = $_GET['idOficio'];
    $oficio = getOficio($idOficio);
    $plantilla = getPlantillaRobert();
    ?>
    <!DOCTYPE html>
    <html>
        <head>
            <?php 
    include 'sources/template/head.php';
    ?>
            
        </head>
        <body class="skin-black-light sidebar-mini">
            <!-- Site wrapper -->
            <div class="wrapper">

                <header class="main-header">
                    <?php 
    include 'sources/template/header.php';
    ?>
                </header>

                <!-- =============================================== -->

                <!-- Left side column. contains the sidebar -->
                <aside class="main-sidebar">
                    <!-- sidebar: style can be found in sidebar.less -->