示例#1
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
if ($Id == 0) {
    $Querys->Insert('indicadores', "NULL, '" . $_POST['dg'] . "', '" . $_POST['indicador'] . "'");
    header('location:../../index.php?module=docente&action=logros&notificacion=1');
} else {
    $Querys->Update('indicadores', "logr_indi='" . $_POST['dg'] . "',indi_indi='" . $_POST['indicador'] . "'", "id_indi='" . $Id . "'");
    header('location:../../index.php?module=docente&action=logros&notificacion=2');
}
示例#2
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
if ($Id == 0) {
    $Querys->Insert('rel_doce_asig_curs', "NULL, '" . $_POST['curso'] . "', '" . $_POST['docente'] . "', '" . $_POST['asignatura'] . "'");
    header('location:../../index.php?module=rector&action=a_academica&notificacion=3');
} else {
    $Querys->Update('rel_doce_asig_curs', "id_curs='" . $_POST['curso'] . "',id_doce='" . $_POST['docente'] . "',id_asig='" . $_POST['asignatura'] . "'", "id_rel_doce_asig_curs='" . $Id . "'");
    header('location:../../index.php?module=rector&action=a_academica&notificacion=4');
}
示例#3
0
<?php

ob_start();
//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Querys->Update('padres', "nomb_padr='" . $_POST['a11'] . "', doc_padr='" . $_POST['a12'] . "', expe_padr='" . $_POST['a13'] . "', tele_padr='" . $_POST['a14'] . "', estr_padr='" . $_POST['a15'] . "', vive_padr='" . $_POST['a16'] . "', prof_padr='" . $_POST['a17'] . "', empr_padr='" . $_POST['a18'] . "', carg_padr='" . $_POST['a19'] . "', tiem_padr='" . $_POST['a20'] . "', sala_padr='" . $_POST['a21'] . "', telo_padr='" . $_POST['a22'] . "', celu_padr='" . $_POST['a23'] . "', emai_padr='" . $_POST['a24'] . "', inde_padr='" . $_POST['a25'] . "', nego_padr='" . $_POST['a26'] . "', dire_padr='" . $_POST['a27'] . "', barr_padr='" . $_POST['a28'] . "'", "id_padr='" . $_POST['id_padre'] . "'");
$Querys->Update('padres', "nomb_padr='" . $_POST['a29'] . "', doc_padr='" . $_POST['a30'] . "', expe_padr='" . $_POST['a31'] . "', tele_padr='" . $_POST['a32'] . "', estr_padr='" . $_POST['a33'] . "', vive_padr='" . $_POST['a34'] . "', prof_padr='" . $_POST['a35'] . "', empr_padr='" . $_POST['a36'] . "', carg_padr='" . $_POST['a37'] . "', tiem_padr='" . $_POST['a38'] . "', sala_padr='" . $_POST['a39'] . "', telo_padr='" . $_POST['a40'] . "', celu_padr='" . $_POST['a41'] . "', emai_padr='" . $_POST['a42'] . "', inde_padr='" . $_POST['a43'] . "', nego_padr='" . $_POST['a44'] . "', dire_padr='" . $_POST['a45'] . "', barr_padr='" . $_POST['a46'] . "'", "id_padr='" . $_POST['id_madre'] . "'");
$Querys->Update('estudiantes', " nomb_estu='" . $_POST['a1'] . "', apel_estu='" . $_POST['a2'] . "', naci_estu='" . $_POST['a3'] . "', luna_estu='" . $_POST['a4'] . "', graa_estu='" . $_POST['a5'] . "', graq_estu='" . $_POST['a6'] . "', dire_estu='" . $_POST['a7'] . "', barr_estu='" . $_POST['a8'] . "', tele_estu='" . $_POST['a9'] . "', estr_estu='" . $_POST['a10'] . "', salud1='" . $_POST['a47'] . "', salud2='" . $_POST['a48'] . "', salud3='" . $_POST['a49'] . "', salud4='" . $_POST['a50'] . "', salud5='" . $_POST['a51'] . "', salud6='" . $_POST['a52'] . "', salud7='" . $_POST['a53'] . "', salud8='" . $_POST['a54'] . "', salud9='" . $_POST['a55'] . "', salud10='" . $_POST['a56'] . "', salud11='" . $_POST['a57'] . "', salud12='" . $_POST['a58'] . "', salud13='" . $_POST['a59'] . "', salud14='" . $_POST['a60'] . "', salud15='" . $_POST['a61'] . "', salud16='" . $_POST['a62'] . "', salud17='" . $_POST['a63'] . "', data1='" . $_POST['a64'] . "', data2='" . $_POST['a65'] . "', data3='" . $_POST['a66'] . "', data4='" . $_POST['a67'] . "', data5='" . $_POST['a68'] . "', data6='" . $_POST['a69'] . "', data7='" . $_POST['a70'] . "', data8='" . $_POST['a71'] . "', data9='" . $_POST['a72'] . "', data10='" . $_POST['a73'] . "', data11='" . $_POST['a74'] . "', docu_estu='" . $_POST['documentado'] . "', interno='" . $_POST['interno'] . "'", "id_estu='" . $_POST['id_estudiante'] . "'");
header('location:../../index.php?module=auxiliar&action=promocion&notificacion=1');
示例#4
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
if ($Id == 0) {
    $Querys->Insert('asignaturas', "NULL, '" . $_POST['asignatura'] . "', '" . $_POST['dg'] . "'");
    header('location:../../index.php?module=rector&action=asignaturas&notificacion=1');
} else {
    $Querys->Update('asignaturas', "nomb_asig='" . $_POST['asignatura'] . "',id_area='" . $_POST['dg'] . "'", "id_asig='" . $Id . "'");
    header('location:../../index.php?module=rector&action=asignaturas&notificacion=2');
}
示例#5
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
if ($Id == 0) {
    $Querys->Insert('usuarios', "NULL, '" . $_POST['nombres'] . "', '" . $_POST['apellidos'] . "', '" . $_POST['usuario'] . "', '" . $_POST['clave'] . "', '" . $_POST['rol'] . "'");
    header('location:../../index.php?module=rector&action=usuarios');
} else {
    $Querys->Update('usuarios', "nomb_usua='" . $_POST['nombres'] . "',apel_usua='" . $_POST['apellidos'] . "',user_usua='" . $_POST['usuario'] . "',pass_usua='" . $_POST['clave'] . "',id_rol='" . $_POST['rol'] . "'", "id_usua='" . $Id . "'");
    header('location:../../index.php?module=rector&action=usuarios');
}
示例#6
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
$i = 0;
while ($i < 48) {
    $Casilla = $i + 1;
    $Existencia = $Querys->Select('id_hora', 'horarios', "WHERE casi_hora='" . $Casilla . "' AND id_curs='{$Id}'");
    if (mysql_num_rows($Existencia) > 0) {
        $Querys->Update('horarios', "id_asig='" . $_POST[$Casilla] . "'", "id_curs='" . $Id . "' AND casi_hora='{$Casilla}'");
        header('location:../../index.php?module=rector&action=horarios');
    } else {
        $Querys->Insert('horarios', "NULL, '" . $Id . "', '" . $_POST[$Casilla] . "', '" . $Casilla . "'");
        header('location:../../index.php?module=rector&action=horarios');
    }
    $i++;
}
示例#7
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$Id = $_GET['id'];
$Estado = $Querys->Select('acti_peri', 'periodos', "WHERE id_peri='" . $Id . "'");
if (mysql_result($Estado, 0, 'acti_peri') == 1) {
    $Querys->Update('periodos', "acti_peri='0'", "id_peri='" . $Id . "'");
    header('location:../../index.php?module=rector&action=periodos&notificacion=1');
} else {
    $Querys->Update('periodos', "acti_peri='0'", "0=0");
    $Querys->Update('periodos', "acti_peri='1'", "id_peri='" . $Id . "'");
    header('location:../../index.php?module=rector&action=periodos&notificacion=2');
}
示例#8
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
if ($Id == 0) {
    $Querys->Insert('cursos', "NULL, '" . $_POST['grado'] . "', '" . $_POST['curso'] . "', '" . $_POST['dg'] . "'");
    header('location:../../index.php?module=rector&action=cursos&notificacion=1');
} else {
    $Querys->Update('cursos', "grad_curs='" . $_POST['grado'] . "',curs_curs='" . $_POST['curso'] . "',dg_curs='" . $_POST['dg'] . "'", "id_curs='" . $Id . "'");
    header('location:../../index.php?module=rector&action=cursos&notificacion=2');
}
示例#9
0
}
//Check write Access to Directory
if (!is_writable(dirname($output_filename))) {
    $response = array("status" => 'error', "message" => 'Can`t write cropped File');
} else {
    // resize the original image to size of editor
    $resizedImage = imagecreatetruecolor($imgW, $imgH);
    imagecopyresampled($resizedImage, $source_image, 0, 0, 0, 0, $imgW, $imgH, $imgInitW, $imgInitH);
    // rotate the rezized image
    $rotated_image = imagerotate($resizedImage, -$angle, 0);
    // find new width & height of rotated image
    $rotated_width = imagesx($rotated_image);
    $rotated_height = imagesy($rotated_image);
    // diff between rotated & original sizes
    $dx = $rotated_width - $imgW;
    $dy = $rotated_height - $imgH;
    // crop rotated image to fit into original rezized rectangle
    $cropped_rotated_image = imagecreatetruecolor($imgW, $imgH);
    imagecolortransparent($cropped_rotated_image, imagecolorallocate($cropped_rotated_image, 0, 0, 0));
    imagecopyresampled($cropped_rotated_image, $rotated_image, 0, 0, $dx / 2, $dy / 2, $imgW, $imgH, $imgW, $imgH);
    // crop image into selected area
    $final_image = imagecreatetruecolor($cropW, $cropH);
    imagecolortransparent($final_image, imagecolorallocate($final_image, 0, 0, 0));
    imagecopyresampled($final_image, $cropped_rotated_image, 0, 0, $imgX1, $imgY1, $cropW, $cropH, $cropW, $cropH);
    // finally output png image
    //imagepng($final_image, $output_filename.$type, $png_quality);
    imagejpeg($final_image, $output_filename . $type, $jpeg_quality);
    $Querys->Update('estudiantes', "foto_estu='croppedImg_" . $NameRandom . $type . "'", "id_estu='{$IdDocente}'");
    $response = array("status" => 'success', "url" => 'uploads/croppedImg_' . $NameRandom . $type);
}
print json_encode($response);
示例#10
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$Id = $_GET['id'];
$Estado = $Querys->Select('esta_doce', 'docentes', "WHERE id_doce='" . $Id . "'");
if (mysql_result($Estado, 0, 'esta_doce') == 1) {
    $Querys->Update('docentes', "esta_doce='0'", "id_doce='" . $Id . "'");
    header('location:../../index.php?module=rector&action=docente&notificacion=1');
} else {
    $Querys->Update('docentes', "esta_doce='1'", "id_doce='" . $Id . "'");
    header('location:../../index.php?module=rector&action=docente&notificacion=2');
}
示例#11
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
if ($Id == 0) {
    $Querys->Insert('usuarios', "NULL, '" . $_POST['nombres'] . "', '" . $_POST['apellidos'] . "', '" . $_POST['usuario'] . "', '" . $_POST['clave'] . "', '2'");
    $IdT = $Querys->Select('id_usua', 'usuarios', "ORDER BY `id_usua` DESC LIMIT 0,1");
    $IdD = mysql_result($IdT, 0, 'id_usua');
    $Querys->Insert('docentes', "NULL, '" . $IdD . "', '" . $_POST['nombres'] . "', '" . $_POST['apellidos'] . "', '" . $_POST['telefono'] . "', '" . $_POST['email'] . "', '" . $_POST['direccion'] . "', '1', '" . $_POST['tipo'] . "', '" . $_POST['documento'] . "', '" . $_POST['nacimiento'] . "', '" . $_POST['sexo'] . "', '" . $_POST['rh'] . "', '" . $_POST['civil'] . "', '" . $_POST['barrio'] . "', '" . $_POST['celular'] . "', '" . $_POST['departamento'] . "', '" . $_POST['ciudad'] . "'");
    $IdT1 = $Querys->Select('id_doce', 'docentes', "ORDER BY `id_doce` DESC LIMIT 0,1");
    $IdD1 = mysql_result($IdT1, 0, 'id_doce');
    $Url = 'location:../../index.php?module=rector&action=editar_docente&id=' . $IdD1 . '#pane2';
    header($Url);
} else {
    $Querys->Update('docentes', "nomb_doce='" . $_POST['nombres'] . "',apel_doce='" . $_POST['apellidos'] . "',tele_doce='" . $_POST['telefono'] . "',emai_doce='" . $_POST['email'] . "',dire_doce='" . $_POST['direccion'] . "',tdoc_doce='" . $_POST['tipo'] . "',doc_doce='" . $_POST['documento'] . "',naci_doce='" . $_POST['nacimiento'] . "',sexo_doce='" . $_POST['sexo'] . "',rh_doce='" . $_POST['rh'] . "',civi_doce='" . $_POST['civil'] . "',barr_doce='" . $_POST['barrio'] . "',celu_doce='" . $_POST['celular'] . "',depa_doce='" . $_POST['departamento'] . "',ciud_doce='" . $_POST['ciudad'] . "'", "id_doce='" . $Id . "'");
    header('location:../../index.php?module=rector&action=docente&notificacion=4');
}
示例#12
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
$Periodo = $Querys->Select('id_peri', 'periodos', "WHERE acti_peri ='1'");
$Periodo = mysql_result($Periodo, 0, 'id_peri');
if ($Id == 0) {
    $Querys->Insert('logros', "NULL, '" . $_POST['tema'] . "', '" . $_POST['asignatura'] . "', '" . $_POST['supe'] . "', '" . $_POST['alto'] . "', '" . $_POST['basi'] . "', '" . $_POST['bajo'] . "', '" . $_POST['dg'] . "','{$Periodo}'");
    header('location:../../index.php?module=docente&action=logros&notificacion=1');
} else {
    $Querys->Update('logros', "tema_logr='" . $_POST['tema'] . "',id_asig='" . $_POST['asignatura'] . "',supe_logr='" . $_POST['supe'] . "',alto_logr='" . $_POST['alto'] . "',basi_logr='" . $_POST['basi'] . "',bajo_logr='" . $_POST['bajo'] . "',grad_curs='" . $_POST['dg'] . "'", "id_logr='" . $Id . "'");
    header('location:../../index.php?module=docente&action=logros&notificacion=2');
}
示例#13
0
				<div id="d' . ($i + 1) . '" class="absoluto" style="top: ' . (1490 + 144 * $Multiplicador + 2800 * $Sumador) . 'px; left: 520px; font-weight: bold">' . $Des . '</div>
				<div id="v1' . ($i + 1) . '" class="absoluto" style="top: ' . (1490 + 144 * $Multiplicador + 2800 * $Sumador) . 'px; left: 770px; font-weight: bold">' . $NotaLimpia . '</div>
				<div id="logro' . ($i + 1) . '" class="absoluto" style="top: ' . (1520 + 144 * $Multiplicador + 2800 * $Sumador) . 'px; left: 50px; width: 720px;">' . Encoding::fixUTF8($LogroT) . '</div>
			</div>';
                $Sumatoria += $NotaLimpia;
            }
        }
        $i++;
    }
    $IdAlumnibiris = mysql_result($Alumnos, $j, 'id_estu');
    $Observacion = $Querys->Select('*', 'oboletin', "WHERE id_estu='{$IdAlumnibiris}'");
    $Observacion = mysql_result($Observacion, 0, 'obol_obol');
    $VerificacionExistencia = $Querys->Select('id_pues', 'puestos', "WHERE peri_pues='{$IdPeriodo}' AND id_estu ='" . $IdAlumnibiris . "'");
    if (mysql_num_rows($VerificacionExistencia) > 0) {
        $IdExistencia = mysql_result($VerificacionExistencia, 0, 'id_pues');
        $Querys->Update('puestos', "prom_pues='" . $Sumatoria . "'", "id_pues='" . $IdExistencia . "'");
    } else {
        $Querys->Insert('puestos', "NULL,'" . $IdAlumnibiris . "','0','" . $Sumatoria . "','" . $IdPeriodo . "','" . $IdCurso . "'");
    }
    $Promedios = $Querys->Select('*', 'puestos', "WHERE id_curs='" . $IdCurso . "' AND peri_pues='" . $IdPeriodo . "' ORDER BY `prom_pues` DESC");
    $TotalPromedios = mysql_num_rows($Promedios);
    $ayylmao = 0;
    while ($ayylmao < $TotalPromedios) {
        $Puesto = $ayylmao + 1;
        $Ide = mysql_result($Promedios, $ayylmao, 'id_pues');
        $Querys->Update('puestos', "pues_pues='" . $Puesto . "'", "id_pues='" . $Ide . "'");
        $ayylmao++;
    }
    $PuestoFinal = $Querys->Select('pues_pues', 'puestos', "WHERE id_estu='" . $IdAlumnibiris . "' AND peri_pues='" . $IdPeriodo . "'");
    $PuestoFinal = mysql_result($PuestoFinal, 0, 'pues_pues');
    ?>
示例#14
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Accion = $_POST['accion'];
$Periodo = $Querys->Select('id_peri', 'periodos', "WHERE acti_peri='1'");
$Periodo = mysql_result($Periodo, 0, 'id_peri');
$Id = $_POST['id'];
if ($Accion == 1) {
    $Querys->Update('oboletin', "obol_obol='" . $_POST['observacion'] . "'", "id_estu='" . $Id . "' AND id_peri='" . $Periodo . "'");
    header('location:../../index.php?module=docente&action=d_grupo&notificacion=2');
} else {
    $Querys->Insert('oboletin', "NULL,'" . $Id . "', '" . $_POST['observacion'] . "','" . $_POST['periodo'] . "'");
    header('location:../../index.php?module=docente&action=d_grupo&notificacion=1');
}
示例#15
0
}
//Check write Access to Directory
if (!is_writable(dirname($output_filename))) {
    $response = array("status" => 'error', "message" => 'Can`t write cropped File');
} else {
    // resize the original image to size of editor
    $resizedImage = imagecreatetruecolor($imgW, $imgH);
    imagecopyresampled($resizedImage, $source_image, 0, 0, 0, 0, $imgW, $imgH, $imgInitW, $imgInitH);
    // rotate the rezized image
    $rotated_image = imagerotate($resizedImage, -$angle, 0);
    // find new width & height of rotated image
    $rotated_width = imagesx($rotated_image);
    $rotated_height = imagesy($rotated_image);
    // diff between rotated & original sizes
    $dx = $rotated_width - $imgW;
    $dy = $rotated_height - $imgH;
    // crop rotated image to fit into original rezized rectangle
    $cropped_rotated_image = imagecreatetruecolor($imgW, $imgH);
    imagecolortransparent($cropped_rotated_image, imagecolorallocate($cropped_rotated_image, 0, 0, 0));
    imagecopyresampled($cropped_rotated_image, $rotated_image, 0, 0, $dx / 2, $dy / 2, $imgW, $imgH, $imgW, $imgH);
    // crop image into selected area
    $final_image = imagecreatetruecolor($cropW, $cropH);
    imagecolortransparent($final_image, imagecolorallocate($final_image, 0, 0, 0));
    imagecopyresampled($final_image, $cropped_rotated_image, 0, 0, $imgX1, $imgY1, $cropW, $cropH, $cropW, $cropH);
    // finally output png image
    //imagepng($final_image, $output_filename.$type, $png_quality);
    imagejpeg($final_image, $output_filename . $type, $jpeg_quality);
    $Querys->Update('docentes', "foto_doce='croppedImg_" . $NameRandom . $type . "'", "id_doce='{$IdDocente}'");
    $response = array("status" => 'success', "url" => 'uploads/croppedImg_' . $NameRandom . $type);
}
print json_encode($response);
示例#16
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
$Querys->Update('estudiantes', "id_curs='" . $_POST['dg'] . "'", "id_estu='" . $Id . "'");
header('location:../../index.php?module=auxiliar&action=asignacion_estudiantes&notificacion=2');
示例#17
0
文件: notas.php 项目: Orantine/koulu
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$NRegistros = count($_POST['id_estu']);
$Asignatura = $_POST['select_asignatura'];
$Curso = $_POST['select_curso'];
$i = 0;
while ($i < $NRegistros) {
    $VerificacionExistencia = $Querys->Select('id_nota', 'notas', "WHERE id_estu ='" . $_POST['id_estu'][$i] . "' AND id_asig='" . $Asignatura . "'");
    if (mysql_num_rows($VerificacionExistencia) > 0) {
        $Querys->Update('notas', "i11_nota='" . $_POST['ser1'][$i] . "', tse_nota='" . $_POST['tsem'][$i] . "', d11_nota='" . $_POST['d1i1'][$i] . "', d12_nota='" . $_POST['d1i2'][$i] . "', d13_nota='" . $_POST['d1i3'][$i] . "', d14_nota='" . $_POST['d1i4'][$i] . "', def1_nota='" . $_POST['def1'][$i] . "', d21_nota='" . $_POST['d2i1'][$i] . "', d22_nota='" . $_POST['d2i2'][$i] . "', d23_nota='" . $_POST['d2i3'][$i] . "', d24_nota='" . $_POST['d2i4'][$i] . "', def2_nota='" . $_POST['def2'][$i] . "', d31_nota='" . $_POST['d3i1'][$i] . "', d32_nota='" . $_POST['d3i2'][$i] . "', d33_nota='" . $_POST['d3i3'][$i] . "', d34_nota='" . $_POST['d3i4'][$i] . "', def3_nota='" . $_POST['def3'][$i] . "', tsa_nota='" . $_POST['tsam'][$i] . "', tta_nota='" . $_POST['ttam'][$i] . "'", "id_estu='" . $_POST['id_estu'][$i] . "' AND id_asig='{$Asignatura}'");
    } else {
        $Querys->Insert('notas', "NULL, '" . $_POST['id_estu'][$i] . "', '{$Asignatura}', '" . $_POST['ser1'][$i] . "', '" . $_POST['tsem'][$i] . "', '" . $_POST['d1i1'][$i] . "', '" . $_POST['d1i2'][$i] . "', '" . $_POST['d1i3'][$i] . "', '" . $_POST['d1i4'][$i] . "', '" . $_POST['def1'][$i] . "', '" . $_POST['d2i1'][$i] . "', '" . $_POST['d2i2'][$i] . "', '" . $_POST['d2i3'][$i] . "', '" . $_POST['d2i4'][$i] . "', '" . $_POST['def2'][$i] . "', '" . $_POST['d3i1'][$i] . "', '" . $_POST['d3i2'][$i] . "', '" . $_POST['d3i3'][$i] . "', '" . $_POST['d3i4'][$i] . "', '" . $_POST['def3'][$i] . "', '" . $_POST['tsam'][$i] . "', '" . $_POST['ttam'][$i] . "'");
    }
    $i++;
    header('location:../../index.php');
}
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$Id = $_GET['id'];
$Estado = $Querys->Select('esta_estu', 'estudiantes', "WHERE id_estu='" . $Id . "'");
if (mysql_result($Estado, 0, 'esta_estu') == 1) {
    $Querys->Update('estudiantes', "esta_estu='0'", "id_estu='" . $Id . "'");
    header('location:../../index.php?module=auxiliar&action=rutas&notificacion=1');
} else {
    $Querys->Update('estudiantes', "esta_estu='1'", "id_estu='" . $Id . "'");
    header('location:../../index.php?module=auxiliar&action=rutas&notificacion=2');
}
示例#19
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
if ($Id == 0) {
    $Querys->Insert('areas', "NULL, '" . $_POST['area'] . "', '" . $_POST['dg'] . "'");
    header('location:../../index.php?module=rector&action=areas&notificacion=1');
} else {
    $Querys->Update('areas', "nomb_area='" . $_POST['area'] . "',id_doce='" . $_POST['dg'] . "'", "id_area='" . $Id . "'");
    header('location:../../index.php?module=rector&action=areas&notificacion=2');
}
示例#20
0
文件: notas.php 项目: Orantine/koulu
     if (isset($_POST['a8'][$i])) {
         $A8 = $_POST['a8'][$i];
     } else {
         $A8 = -1;
     }
     if (isset($_POST['a9'][$i])) {
         $A9 = $_POST['a9'][$i];
     } else {
         $A9 = -1;
     }
     if (isset($_POST['a10'][$i])) {
         $A10 = $_POST['a10'][$i];
     } else {
         $A10 = -1;
     }
     $Querys->Update('notas', "tta_nota='" . $_POST['tta'][$i] . "', tte_nota='" . $_POST['tte'][$i] . "', tti_nota='" . $_POST['tti'][$i] . "', a1_nota='" . $_POST['a1'][$i] . "', a2_nota='" . $A2 . "', a3_nota='" . $A3 . "', a4_nota='" . $A4 . "', a5_nota='" . $A5 . "', a6_nota='" . $A6 . "', a7_nota='" . $A7 . "', a8_nota='" . $A8 . "', a9_nota='" . $A9 . "', a10_nota='" . $A10 . "', def_nota='" . $_POST['def'][$i] . "', fall_nota='" . $_POST['fallas'][$i] . "'", "id_estu='" . $_POST['id_estu'][$i] . "' AND id_asig='{$Asignatura}' AND peri_nota='{$Periodo}'");
 } else {
     if (isset($_POST['a2'][$i])) {
         $A2 = $_POST['a2'][$i];
     } else {
         $A2 = -1;
     }
     if (isset($_POST['a3'][$i])) {
         $A3 = $_POST['a3'][$i];
     } else {
         $A3 = -1;
     }
     if (isset($_POST['a4'][$i])) {
         $A4 = $_POST['a4'][$i];
     } else {
         $A4 = -1;
示例#21
0
<?php

//Inicio de las sesiones
session_start();
//Importación de las clases de acceso a datos
include_once '../../config/config.inc.php';
include_once '../data/connection.class.php';
include_once '../data/query.class.php';
//Instanciación de clases
$Data = new Connection();
$Link = $Data->Connect(SERVER, USER, PASSWORD);
$Link = $Data->SelectDataBase(DB, $Link);
$Querys = new Querys();
$IdUser = $_SESSION['id'];
$Id = $_POST['id'];
if ($Id == 0) {
    $Querys->Insert('superaciones', "NULL, '" . $_POST['dg'] . "', '" . $_POST['dg1'] . "', '" . $_POST['observacion'] . "', '" . $_POST['nota'] . "'");
    header('location:../../index.php?module=docente&action=superaciones&notificacion=1');
} else {
    $Querys->Update('superaciones', "id_estu='" . $_POST['dg'] . "',id_asig='" . $_POST['dg1'] . "',obse_supe='" . $_POST['observacion'] . "',nota_supe='" . $_POST['nota'] . "'", "id_supe='" . $Id . "'");
    header('location:../../index.php?module=docente&action=superaciones&notificacion=2');
}