Corrección de correos y solicitudes
Some checks failed
Deploy Pruebas / deploy (push) Has been cancelled
Some checks failed
Deploy Pruebas / deploy (push) Has been cancelled
This commit is contained in:
@@ -46,7 +46,7 @@ class MandaCorreos{
|
||||
if($tipo & self::JEFE){
|
||||
$correosJefe_rs = $db->querySingle("SELECT DISTINCT jefe.usuario_correo
|
||||
FROM usuario jefe
|
||||
where :id_fac = ANY(jefe.facultad_id_array) AND rol_id = 11
|
||||
where :id_fac = facultad_id AND rol_id = 11
|
||||
and jefe.usuario_correo is not null and jefe.usuario_correo != ''",
|
||||
[':id_fac' => $facultad] );
|
||||
foreach($correosJefe_rs as $correo){
|
||||
@@ -59,7 +59,7 @@ class MandaCorreos{
|
||||
$correosProf_rs = $db->querySingle("SELECT DISTINCT prof.usuario_correo
|
||||
FROM horario_profesor hs
|
||||
inner join usuario prof on prof.usuario_id =hs.usuario_id
|
||||
where :id_fac = ANY(hs.facultad_id_array) and prof.usuario_id = :id_prof
|
||||
where :id_fac = hs.facultad_id and prof.usuario_id = :id_prof
|
||||
and prof.usuario_correo is not null and prof.usuario_correo != ''",
|
||||
[':id_prof'=>$prof_id, ':id_fac' => $facultad] );
|
||||
foreach($correosProf_rs as $correo){
|
||||
|
||||
@@ -182,7 +182,7 @@ try{
|
||||
|
||||
//claves de carreras en el periodo
|
||||
$arreglo_claves = array_map(function ($item) {
|
||||
return $item['clave_carrera'];
|
||||
return intval($item['clave_carrera']);
|
||||
}, $carreras_rs);
|
||||
|
||||
//print_r($selectedData); exit();
|
||||
@@ -191,6 +191,9 @@ try{
|
||||
|
||||
//Recorre SGU y genera hash
|
||||
foreach( $selectedData as $row ){
|
||||
//if ($debug)
|
||||
// echo trim($row["HoraInicio"]."|".($row["NombreMateria"])."|".(trim($row["ClaveProfesor"])==""?"000000":trim($row["ClaveProfesor"]))."|".$row["IdEspacio"]."|".$per["periodo_id"]."|".$row["Carrera"])."[{$row["ClaveCarrera"]}]|{$row["EsMateriaPorReposicion"]}*";
|
||||
|
||||
if(!$row["EsMateriaPorReposicion"]){
|
||||
$carrera = $row["ClaveCarrera"];
|
||||
if(is_null($carrera) || empty($carrera))
|
||||
@@ -245,12 +248,15 @@ try{
|
||||
|
||||
//$areacomun = array();
|
||||
foreach($sguHash as $sgu){
|
||||
if(in_array($sgu["data"]["ClaveCarrera"] , $arreglo_claves) /*&& !in_array($sgu["data"]["ClaveMateria"], $areacomun)*/){
|
||||
//print_r($sgu["data"]);
|
||||
//echo $sgu["data"]["NombreMateria"]. "[".intval($sgu["data"]["ClaveCarrera"])."] =".in_array( intval($sgu["data"]["ClaveCarrera"]) , $arreglo_claves)." ";
|
||||
if(in_array( intval($sgu["data"]["ClaveCarrera"]) , $arreglo_claves) /*&& !in_array($sgu["data"]["ClaveMateria"], $areacomun)*/){
|
||||
$horarios_sgu[] = $sgu;
|
||||
}
|
||||
}
|
||||
//echo "<br><hr><br>";
|
||||
|
||||
//print_r($horarios_sgu);exit();
|
||||
//print_r($horarios_sgu["hash"]);
|
||||
unset($sguHash);
|
||||
$elementos_sgu_total = array_merge($elementos_sgu_total, $horarios_sgu);
|
||||
|
||||
|
||||
@@ -92,11 +92,11 @@ function duracionMinutos($fechahora_i, $fechahora_f){
|
||||
|
||||
$query = "";
|
||||
|
||||
if($user->rol["rol_id"] == 9){//es coordinador
|
||||
if($user->rol["rol_id"] == 7){//es coordinador
|
||||
$query .= "NULL, ";
|
||||
}else{//supervisor
|
||||
$query .= ":facultad, ";
|
||||
$repoParams[":facultad"] = $user->facultad["facultad_id"];
|
||||
}else{//supervisor
|
||||
$query .= "NULL, ";
|
||||
}
|
||||
if(isset($_POST["prof"]) ){
|
||||
$query .= ":prof,";
|
||||
@@ -159,13 +159,13 @@ function duracionMinutos($fechahora_i, $fechahora_f){
|
||||
include("import/html_header.php");
|
||||
html_header("Reposiciones de clase", "Sistema de gestión de checador");
|
||||
?>
|
||||
<?= "<!-- $user -->" ?>
|
||||
<?= "<!-- $user -->" ?>
|
||||
<main class="container content marco content-margin" id="local-app">
|
||||
|
||||
<section id="message"></section>
|
||||
|
||||
|
||||
<?php if($user->periodo_id!= ""){ ?>
|
||||
<?php /*if($user->periodo_id!= ""){ */ ?>
|
||||
<form action="solicitudes_autorizar.php" id="asistencia" method="post" onsubmit="return validaFechas()">
|
||||
<div class="form-box">
|
||||
<input type="hidden" name="facultad" value="5">
|
||||
@@ -546,7 +546,9 @@ function duracionMinutos($fechahora_i, $fechahora_f){
|
||||
|
||||
<p class="aprobar-block">Una vez realizada la acción no se puede deshacer.</p>
|
||||
<p>
|
||||
<?php if($user->acceso == "w"){ ?>
|
||||
<button type="button" class="btn btn-primary btn-enviar aprobar-block" id="submitBtn" ><?php echo $ICO["aceptar"];?> Aprobar</button>
|
||||
<?php } ?>
|
||||
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal" aria-label="Close">Cerrar</button>
|
||||
</p>
|
||||
|
||||
@@ -600,7 +602,7 @@ function duracionMinutos($fechahora_i, $fechahora_f){
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
//}//periodo existe
|
||||
?>
|
||||
</main>
|
||||
<? include "import/html_footer.php"; ?>
|
||||
|
||||
Reference in New Issue
Block a user