예제 #1
0
<?php

include_once "../../login/check.php";
if (!empty($_POST)) {
    include_once "../../class/alumno.php";
    $alumno = new alumno();
    $CodAlumno = $_POST['CodAlumno'];
    $CodBarra = $_POST['CodBarra'];
    $Values = array("CodBarra" => "'{$CodBarra}'");
    if ($alumno->actualizarDatosAlumno($Values, $CodAlumno)) {
        $al = $alumno->mostrarDatosPersonales($CodAlumno);
        $al = array_shift($al);
        ?>
        <div class="alert alert-success">
			<h2 class="centrar"><?php 
        echo $idioma['CodigoBarraActualizado'];
        ?>
</h2>
            <table class="table table-bordered table-hover">
            	<thead>
                	<tr><th><?php 
        echo $idioma['DatosAlumno'];
        ?>
</th></tr>
                </thead>
            	<tr><td class="x2"><?php 
        echo capitalizar($al['Paterno'] . " " . $al['Materno'] . " " . $al['Nombres']);
        ?>
</td></tr>
                <tr><td class="x2"><?php 
        echo $idioma['CodigoBarra'];
예제 #2
0
 /*echo "<pre>";
 	print_r($_POST);
 	echo "</pre>";*/
 include_once "../../class/rude.php";
 include_once "../../class/alumno.php";
 include_once "../funciones.php";
 include_once "../../class/documento.php";
 $rude = new rude();
 $alumno = new alumno();
 $doc = new documento();
 $fechaReg = date("Y-m-d H:i:s");
 $values = array("CodRude" => "NULL", "CodAlumno" => $_POST['CodAlumno'], "PaisN" => "'" . mb_strtolower($_POST['paisNacA'], "UTF-8") . "'", "ProvinciaN" => "'" . mb_strtolower($_POST['provinciaNacA'], "UTF-8") . "'", "LocalidadN" => "'" . mb_strtolower($_POST['localidadNacA'], "UTF-8") . "'", "Documento" => 1, "CertOfi" => "'{$_POST['oficialiaA']}'", "CertLibro" => "'{$_POST['libroA']}'", "CertPartida" => "'{$_POST['partidaA']}'", "CertFolio" => "'{$_POST['folioA']}'", "Paralelo" => "'A'", "Turno" => "'M'", "CodigoSie" => "'{$_POST['codigoSIEA']}'", "NombreUnidad" => "'" . mb_strtolower($_POST['unidadEducativaA'], "UTF-8") . "'", "ProvinciaE" => "'" . mb_strtolower($_POST['provinciaA'], "UTF-8") . "'", "MunicipioE" => "'" . mb_strtolower($_POST['seccionA'], "UTF-8") . "'", "ComunidadE" => "'" . mb_strtolower($_POST['localidadA'], "UTF-8") . "'", "LenguaMater" => "'{$_POST['lenguaMaterna']}'", "CastellanoI" => $_POST['lenguaCastellano'], "AymaraI" => $_POST['lenguaAymara'], "InglesI" => $_POST['lenguaIngles'], "PerteneceA" => "'{$_POST['identificaA']}'", "CentroSalud" => $_POST['centroSalud'], "VecesCentro" => "'{$_POST['vecesSalud']}'", "Discapacidad" => "'{$_POST['deficiencia']}'", "AguaDomicilio" => $_POST['aguaPotable'], "Electricidad" => $_POST['electricidad'], "Alcantarillado" => $_POST['alcantarillado'], "Trabaja" => "'{$_POST['trabaja']}'", "InternetCasa" => $_POST['internet'], "Transporte" => "'{$_POST['traslado']}'", "TiempoLlegada" => "'{$_POST['tiempo']}'", "InstruccionP" => "'{$_POST['instruccionP']}'", "IdiomaP" => "'{$_POST['idiomaP']}'", "ParentescoP" => "'{$_POST['parentescoP']}'", "InstruccionM" => "'{$_POST['instruccionM']}'", "IdiomaM" => "'{$_POST['idiomaM']}'", "Lugar" => "'EL ALTO'", "FechaReg" => "'{$fechaReg}'");
 $usuarioPadre = usuarioPadre($_POST['CedulaPadre'], $_POST['CedulaMadre']);
 $valuesAlumno = array("Paterno" => "'" . mb_strtolower($_POST['paterno'], "UTF-8") . "'", "Materno" => "'" . mb_strtolower($_POST['materno'], "UTF-8") . "'", "Nombres" => "'" . mb_strtolower($_POST['nombres'], "UTF-8") . "'", "LugarNac" => "'" . mb_strtolower($_POST['departamentoNacA'], "UTF-8") . "'", "FechaNac" => "'" . fecha2Str($_POST['fechaNac'], 0) . "'", "Ci" => "'{$_POST['numeroDoc']}'", "Sexo" => $_POST['sexo'], "Zona" => "'" . mb_strtolower($_POST['zonaA'], "UTF-8") . "'", "Calle" => "'" . mb_strtolower($_POST['calleA'], "UTF-8") . "'", "Numero" => "'" . mb_strtolower($_POST['numeroViviendaA'], "UTF-8") . "'", "CodCurso" => $_POST['curso'], "TelefonoCasa" => "'{$_POST['telefonoA']}'", "Celular" => "'{$_POST['celularA']}'", "Rude" => "'{$_POST['rude']}'", "ApellidosPadre" => "'" . mb_strtolower($_POST['ApellidosP'], "UTF-8") . "'", "NombrePadre" => "'" . mb_strtolower($_POST['nombresP'], "UTF-8") . "'", "CiPadre" => "'" . mb_strtolower($_POST['CedulaPadre'], "UTF-8") . "'", "OcupPadre" => "'" . mb_strtolower($_POST['ocupacionP'], "UTF-8") . "'", "CelularP" => "'" . mb_strtolower($_POST['telefonoP'], "UTF-8") . "'", "ApellidosMadre" => "'" . mb_strtolower($_POST['paternoM'], "UTF-8") . "'", "NombreMadre" => "'" . mb_strtolower($_POST['nombresM'], "UTF-8") . "'", "CiMadre" => "'" . mb_strtolower($_POST['CedulaMadre'], "UTF-8") . "'", "OcupMadre" => "'" . mb_strtolower($_POST['ocupacionM'], "UTF-8") . "'", "CelularM" => "'" . mb_strtolower($_POST['telefonoM'], "UTF-8") . "'", "UsuarioPadre" => "'{$usuarioPadre}'");
 //print_r($valuesAlumno);
 $alumno->actualizarDatosAlumno($valuesAlumno, $_POST['CodAlumno']);
 $ru = $rude->mostrarTodoDatos($_POST['CodAlumno']);
 if (count($ru) == 0) {
     $rude->insertarAlumno($values);
 }
 //else{echo "Duplicado";}
 /*DOCUMENTOS*/
 $CertificadoNac = $_POST['CertificadoNac'];
 if ($CertificadoNac == "on") {
     $CertificadoNac = 1;
 } else {
     $CertificadoNac = 0;
 }
 $LibretaEsc = $_POST['LibretaEsc'];
 if ($LibretaEsc == "on") {
     $LibretaEsc = 1;
예제 #3
0
<?php

include_once "../login/check.php";
include_once "../class/alumno.php";
include_once "../class/curso.php";
$alumno = new alumno();
$curso = new curso();
foreach ($curso->mostrar() as $cur) {
    //echo $cur['CodCurso']."<br>";
    foreach ($alumno->mostrarAlumnosCurso($cur['CodCurso']) as $al) {
        if ($al['CelularSMS'] == "") {
            if ($al['Celular'] == "") {
                if ($al['CelularP'] == "") {
                    $valores = array("CelularSMS" => "'" . $al['CelularM'] . "'", "ActivarSMS" => "'1'");
                } else {
                    $valores = array("CelularSMS" => "'" . $al['CelularP'] . "'", "ActivarSMS" => "'1'");
                }
            } else {
                $valores = array("CelularSMS" => "'" . $al['Celular'] . "'", "ActivarSMS" => "'1'");
            }
            $alumno->actualizarDatosAlumno($valores, $al['CodAlumno']);
        }
    }
}
예제 #4
0
include_once "../../login/check.php";
if (!empty($_POST)) {
    include_once "../../class/rude.php";
    include_once "../../class/alumno.php";
    include_once "../../class/documento.php";
    include_once "../funciones.php";
    $alumno = new alumno();
    $rude = new rude();
    $doc = new documento();
    $CodAlumno = $_POST['CodAlumno'];
    $fechaReg = date("Y-m-d H:i:s");
    $values = array("CodAlumno" => $_POST['CodAlumno'], "PaisN" => "'" . mb_strtolower($_POST['paisNacA'], "UTF-8") . "'", "ProvinciaN" => "'" . mb_strtolower($_POST['provinciaNacA'], "UTF-8") . "'", "LocalidadN" => "'" . mb_strtolower($_POST['localidadNacA'], "UTF-8") . "'", "Documento" => 1, "CertOfi" => "'{$_POST['oficialiaA']}'", "CertLibro" => "'{$_POST['libroA']}'", "CertPartida" => "'{$_POST['partidaA']}'", "CertFolio" => "'{$_POST['folioA']}'", "Paralelo" => "'A'", "Turno" => "'M'", "CodigoSie" => "'{$_POST['codigoSIEA']}'", "NombreUnidad" => "'" . mb_strtolower($_POST['unidadEducativaA'], "UTF-8") . "'", "ProvinciaE" => "'" . mb_strtolower($_POST['provinciaA'], "UTF-8") . "'", "MunicipioE" => "'" . mb_strtolower($_POST['seccionA'], "UTF-8") . "'", "ComunidadE" => "'" . mb_strtolower($_POST['localidadA'], "UTF-8") . "'", "LenguaMater" => "'{$_POST['lenguaMaterna']}'", "CastellanoI" => $_POST['lenguaCastellano'], "AymaraI" => $_POST['lenguaAymara'], "InglesI" => $_POST['lenguaIngles'], "PerteneceA" => "'{$_POST['identificaA']}'", "CentroSalud" => $_POST['centroSalud'], "VecesCentro" => "'{$_POST['vecesSalud']}'", "Discapacidad" => "'{$_POST['deficiencia']}'", "AguaDomicilio" => $_POST['aguaPotable'], "Electricidad" => $_POST['electricidad'], "Alcantarillado" => $_POST['alcantarillado'], "Trabaja" => "'{$_POST['trabaja']}'", "InternetCasa" => $_POST['internet'], "Transporte" => "'{$_POST['traslado']}'", "TiempoLlegada" => "'{$_POST['tiempo']}'", "InstruccionP" => "'{$_POST['instruccionP']}'", "IdiomaP" => "'{$_POST['idiomaP']}'", "ParentescoP" => "'{$_POST['parentescoP']}'", "InstruccionM" => "'{$_POST['instruccionM']}'", "IdiomaM" => "'{$_POST['idiomaM']}'", "Lugar" => "'EL ALTO'");
    $usuarioPadre = usuarioPadre($_POST['CedulaPadre'], $_POST['CedulaMadre']);
    $valuesAlumno = array("Paterno" => "'" . mb_strtolower($_POST['paterno'], "UTF-8") . "'", "Materno" => "'" . mb_strtolower($_POST['materno'], "UTF-8") . "'", "Nombres" => "'" . mb_strtolower($_POST['nombres'], "UTF-8") . "'", "LugarNac" => "'" . mb_strtolower($_POST['departamentoNacA'], "UTF-8") . "'", "FechaNac" => "'" . fecha2Str($_POST['fechaNac'], 0) . "'", "Ci" => "'{$_POST['numeroDoc']}'", "Sexo" => $_POST['sexo'], "Zona" => "'" . mb_strtolower($_POST['zonaA'], "UTF-8") . "'", "Calle" => "'" . mb_strtolower($_POST['calleA'], "UTF-8") . "'", "Numero" => "'" . mb_strtolower($_POST['numeroViviendaA'], "UTF-8") . "'", "CodCurso" => $_POST['curso'], "TelefonoCasa" => "'{$_POST['telefonoA']}'", "Celular" => "'{$_POST['celularA']}'", "Rude" => "'{$_POST['rude']}'", "ApellidosPadre" => "'" . mb_strtolower($_POST['ApellidosP'], "UTF-8") . "'", "NombrePadre" => "'" . mb_strtolower($_POST['nombresP'], "UTF-8") . "'", "CiPadre" => "'" . mb_strtolower($_POST['CedulaPadre'], "UTF-8") . "'", "OcupPadre" => "'" . mb_strtolower($_POST['ocupacionP'], "UTF-8") . "'", "CelularP" => "'" . mb_strtolower($_POST['telefonoP'], "UTF-8") . "'", "ApellidosMadre" => "'" . mb_strtolower($_POST['paternoM'], "UTF-8") . "'", "NombreMadre" => "'" . mb_strtolower($_POST['nombresM'], "UTF-8") . "'", "CiMadre" => "'" . mb_strtolower($_POST['CedulaMadre'], "UTF-8") . "'", "OcupMadre" => "'" . mb_strtolower($_POST['ocupacionM'], "UTF-8") . "'", "CelularM" => "'" . mb_strtolower($_POST['telefonoM'], "UTF-8") . "'", "UsuarioPadre" => "'{$usuarioPadre}'");
    $rude->actualizarDatosAlumno($values, $CodAlumno);
    $alumno->actualizarDatosAlumno($valuesAlumno, $CodAlumno);
    /*DOCUMENTOS*/
    $CertificadoNac = $_POST['CertificadoNac'];
    if ($CertificadoNac == "on") {
        $CertificadoNac = 1;
    } else {
        $CertificadoNac = 0;
    }
    $LibretaEsc = $_POST['LibretaEsc'];
    if ($LibretaEsc == "on") {
        $LibretaEsc = 1;
    } else {
        $LibretaEsc = 0;
    }
    $LibretaVac = $_POST['LibretaVac'];
    if ($LibretaVac == "on") {
예제 #5
0
<?php

include_once "../../login/check.php";
if (!empty($_POST)) {
    include_once "../../class/alumno.php";
    $alumno = new alumno();
    extract($_POST);
    $valores = array("CelularSMS" => "'{$CelularSMS}'", "Celular" => "'{$Celular}'", "TelefonoCasa" => "'{$TelefonoCasa}'", "CelularM" => "'{$CelularM}'", "CelularP" => "'{$CelularP}'", "ActivarSMS" => "'{$ActivarSMS}'");
    if ($alumno->actualizarDatosAlumno($valores, $CodAlumno)) {
        ?>
		<div class="alert alert-success">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			<?php 
        echo $idioma['DatosGuardadosCorrectamente'];
        ?>
		</div>
		<?php 
    } else {
        ?>
		<div class="alert alert-error">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			<?php 
        echo $idioma['DatosGuardadosError'];
        ?>
		</div>
		<?php 
    }
}