コード例 #1
0
ファイル: reporte.php プロジェクト: anthonycab15/colegio
 $Cod = array_shift($_POST['Observacion']);
 if ($Cod == "") {
     //echo "Asd";
     $Observacion = array();
     foreach ($observaciones->mostrarObservaciones("Nombre") as $obs) {
         //$obs=array_shift($obs);
         array_push($Observacion, $obs['CodObservacion']);
     }
 } else {
     $Observacion = (array) $Observacion;
 }
 //print_r($Observacion);
 $ValoresObser = array();
 foreach ($Observacion as $obs) {
     $i++;
     $o = $observaciones->mostrarObser($obs);
     $o = array_shift($o);
     $ValoresObser['Observacion' . $i] = "" . $o['Nombre'] . "";
 }
 $CantidadDias = (strtotime($FechaFinal) - strtotime($FechaInicio)) / 86400;
 $ValoresFechas = array();
 $Valores = array();
 $j = 0;
 foreach ($Observacion as $obs) {
     $j++;
     $Valor = array();
     for ($i = 1; $i <= $CantidadDias + 1; $i++) {
         $Fecha = date("Y-m-d", strtotime($FechaInicio . "+" . ($i - 1) . "days"));
         $ag = $agenda->CantidadObservacionesTotal($Curso, $Alumnos, $obs, $Materia, $Fecha);
         $ag = array_shift($ag);
         $Cantidad = $ag['Cantidad'];
コード例 #2
0
            $mensaje = $tipo . " " . $idioma['Bimestre'];
        } else {
            if (strtotime($a['Fecha']) >= strtotime($fechaInicioTrimestre1) and strtotime($a['Fecha']) <= strtotime($fechaFinTrimestre1)) {
                $tipo = 1;
            }
            if (strtotime($a['Fecha']) >= strtotime($fechaInicioTrimestre2) and strtotime($a['Fecha']) <= strtotime($fechaFinTrimestre2)) {
                $tipo = 2;
            }
            if (strtotime($a['Fecha']) >= strtotime($fechaInicioTrimestre3) and strtotime($a['Fecha']) <= strtotime($fechaFinTrimestre3)) {
                $tipo = 3;
            }
            $mensaje = $tipo . " " . $idioma['Trimestre'];
        }
        $importante = "";
        if ($a['Resaltar']) {
            $importante = "-I";
        }
        $m = $materia->mostrarMateria($a['CodMateria']);
        $m = array_shift($m);
        $o = $observaciones->mostrarObser($a['CodObservacion']);
        $o = array_shift($o);
        $pdf->CuadroCuerpo(8, $i, 0, "R", 1, "B");
        $pdf->CuadroCuerpo(40, $m["Nombre"], 0, "L", 1, "B");
        $pdf->CuadroCuerpo(40, recortartexto($o["Nombre"], 23), 0, "L", 1, "B");
        $pdf->CuadroCuerpo(60, recortartexto(minuscula($a["Detalle"]), 33), 0, "L", 1, "B");
        $pdf->CuadroCuerpo(20, fecha2Str($a["Fecha"]), 0, "C", 1, "B");
        $pdf->CuadroCuerpo(10, sacariniciales($mensaje) . $importante, 0, "L", 1, "B");
        $pdf->Ln();
    }
    $pdf->Output($titulo . " " . capitalizar($al['Paterno'] . " " . $al['Materno'] . " " . $al['Nombres']), "I");
}
コード例 #3
0
ファイル: modificar.php プロジェクト: anthonycab15/colegio
<?php

include_once "../../login/check.php";
if (!empty($_POST['CodObservacion'])) {
    $CodObservacion = $_POST['CodObservacion'];
    include_once "../../class/observaciones.php";
    $observaciones = new observaciones();
    $obs = $observaciones->mostrarObser($CodObservacion);
    $obs = array_shift($obs);
    $sino = array(1 => $idioma['Si'], 0 => $idioma['No']);
    $tipo = array("1" => $idioma['Observacion'], "2" => $idioma['Faltas'], "3" => $idioma['Atrasos'], "4" => $idioma['Licencias'], "5" => $idioma['NotificacionPadres'], "6" => $idioma['NoRespondeTelf'], "7" => $idioma['Felicitaciones']);
    //$curarea=array_shift($curarea);
    ?>
    <h2><?php 
    echo $idioma['ModificarObservacion'];
    ?>
</h2>
    <form action="actualizar.php" method="post" class="formulario">
    <input type="hidden" name="CodObservacion" value="<?php 
    echo $CodObservacion;
    ?>
">
    <table class="table table-bordered table-striped">
    	<tr>
        	<td><?php 
    echo $idioma['Nombre'];
    ?>
<br>
        	<input type="text" value="<?php 
    echo $obs['Nombre'];
    ?>