Merged
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -10,10 +10,6 @@ composer.phar
|
|||||||
/concept/
|
/concept/
|
||||||
/backup/
|
/backup/
|
||||||
/.vscode/
|
/.vscode/
|
||||||
<<<<<<< HEAD
|
|
||||||
/export/
|
|
||||||
=======
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
/log/
|
/log/
|
||||||
|
|
||||||
/include/.env
|
/include/.env
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ try {
|
|||||||
]
|
]
|
||||||
),
|
),
|
||||||
// 'query' => $db->getLastQuery(),
|
// 'query' => $db->getLastQuery(),
|
||||||
'reposiciones' => /*$db->query(
|
'reposiciones' => $db->query(
|
||||||
'SELECT ' . implode(', ', $columns) . <<<SQL
|
'SELECT ' . implode(', ', $columns) . <<<SQL
|
||||||
, reposicion_hora + horario_view.duracion as reposicion_fin, registro_fecha_ideal
|
, reposicion_hora + horario_view.duracion as reposicion_fin, registro_fecha_ideal
|
||||||
FROM horario_view
|
FROM horario_view
|
||||||
@@ -110,7 +110,7 @@ try {
|
|||||||
'bloque_horario_id' => $_GET['bloque_horario_id'],
|
'bloque_horario_id' => $_GET['bloque_horario_id'],
|
||||||
'id_espacio_sgu' => $ruta['id_espacio_sgu'],
|
'id_espacio_sgu' => $ruta['id_espacio_sgu'],
|
||||||
]
|
]
|
||||||
)*/ [],
|
),
|
||||||
],
|
],
|
||||||
$ruta,
|
$ruta,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -62,13 +62,8 @@
|
|||||||
<!-- {{ store.filters }} -->
|
<!-- {{ store.filters }} -->
|
||||||
<?php include "import/periodo.php" ?>
|
<?php include "import/periodo.php" ?>
|
||||||
<div class="form-box marco">
|
<div class="form-box marco">
|
||||||
<<<<<<< HEAD
|
|
||||||
<? if (!$user->facultad['facultad_id']) { ?>
|
<? if (!$user->facultad['facultad_id']) { ?>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
=======
|
|
||||||
<div class="form-group row">
|
|
||||||
<? if (!$user->facultad['facultad_id']) { ?>
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<label for="dlFacultad" class="col-4 col-form-label">Facultad</label>
|
<label for="dlFacultad" class="col-4 col-form-label">Facultad</label>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<div id="dlFacultad" class="datalist datalist-select mb-1 w-100">
|
<div id="dlFacultad" class="datalist datalist-select mb-1 w-100">
|
||||||
@@ -91,7 +86,6 @@
|
|||||||
<input type="hidden" id="facultad_id" name="id">
|
<input type="hidden" id="facultad_id" name="id">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<<<<<<< HEAD
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<!-- Checkbox para descargar todo -->
|
<!-- Checkbox para descargar todo -->
|
||||||
@@ -104,10 +98,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
=======
|
|
||||||
<? } ?>
|
|
||||||
</div>
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|
||||||
<div class="form-group row" v-if="store.bloques_horario.data.length > 0">
|
<div class="form-group row" v-if="store.bloques_horario.data.length > 0">
|
||||||
<label for="dlBloqueHorarios" class="col-4 col-form-label">Bloque horarios</label>
|
<label for="dlBloqueHorarios" class="col-4 col-form-label">Bloque horarios</label>
|
||||||
@@ -536,12 +526,8 @@
|
|||||||
<strong>{{clase_vista.justificador_facultad}}</strong>
|
<strong>{{clase_vista.justificador_facultad}}</strong>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
el día {{clase_vista.registro_fecha_justificacion?.slice(0, 10)}} a
|
el día {{clase_vista.registro_fecha_justificacion?.slice(0, 10)}} a
|
||||||
las
|
las
|
||||||
=======
|
|
||||||
el día {{clase_vista.registro_fecha_justificacion?.slice(0, 10)}} a las
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
{{clase_vista.registro_fecha_justificacion?.slice(11, 16)}}
|
{{clase_vista.registro_fecha_justificacion?.slice(11, 16)}}
|
||||||
</span>
|
</span>
|
||||||
<div v-if="clase_vista.justificacion">
|
<div v-if="clase_vista.justificacion">
|
||||||
@@ -637,12 +623,8 @@
|
|||||||
Justificar <strong :class="`text-${store.current.justificada.estado_color}`"
|
Justificar <strong :class="`text-${store.current.justificada.estado_color}`"
|
||||||
class="text-uppercase">
|
class="text-uppercase">
|
||||||
{{store.current.justificada.nombre}}</strong> del día <span
|
{{store.current.justificada.nombre}}</strong> del día <span
|
||||||
<<<<<<< HEAD
|
|
||||||
class="text-muted">{{store.current.justificada.registro_fecha_ideal}}</span>
|
class="text-muted">{{store.current.justificada.registro_fecha_ideal}}</span>
|
||||||
a
|
a
|
||||||
=======
|
|
||||||
class="text-muted">{{store.current.justificada.registro_fecha_ideal}}</span> a
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
las <span
|
las <span
|
||||||
class="text-muted">{{store.current.justificada.horario_hora?.slice(0,5)}}</span>
|
class="text-muted">{{store.current.justificada.horario_hora?.slice(0,5)}}</span>
|
||||||
para el profesor <span
|
para el profesor <span
|
||||||
@@ -700,22 +682,14 @@
|
|||||||
<p class="lead">
|
<p class="lead">
|
||||||
Selecciona los bloques que deseas justificar, puedes seleccionar varios bloques
|
Selecciona los bloques que deseas justificar, puedes seleccionar varios bloques
|
||||||
<small>
|
<small>
|
||||||
<<<<<<< HEAD
|
|
||||||
Todos los profesores que tengan clases en los bloques seleccionados serán
|
Todos los profesores que tengan clases en los bloques seleccionados serán
|
||||||
justificados
|
justificados
|
||||||
=======
|
|
||||||
Todos los profesores que tengan clases en los bloques seleccionados serán justificados
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</small>
|
</small>
|
||||||
</p>
|
</p>
|
||||||
<form>
|
<form>
|
||||||
<div class="form-group row" v-if="store.periodo">
|
<div class="form-group row" v-if="store.periodo">
|
||||||
<<<<<<< HEAD
|
|
||||||
<label for="fecha-justificación" class="col-sm-4 col-form-label barra-right">Fecha
|
<label for="fecha-justificación" class="col-sm-4 col-form-label barra-right">Fecha
|
||||||
de la
|
de la
|
||||||
=======
|
|
||||||
<label for="fecha-justificación" class="col-sm-4 col-form-label barra-right">Fecha de la
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
justificación</label>
|
justificación</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input type="date" class="form-control" id="fecha-justificación"
|
<input type="date" class="form-control" id="fecha-justificación"
|
||||||
|
|||||||
@@ -5,11 +5,7 @@
|
|||||||
class Mailer{
|
class Mailer{
|
||||||
private const FROM = "academia@lasalle.mx";
|
private const FROM = "academia@lasalle.mx";
|
||||||
private const FROM_NAME = "Vicerrectoría Académica";
|
private const FROM_NAME = "Vicerrectoría Académica";
|
||||||
<<<<<<< HEAD
|
|
||||||
private const FROM_PASS = "D1s3c4nt3S1l1c4#$";//4c4d3m14S3gur4## Foy25193 D1s3c4nt3S1l1c4#$
|
|
||||||
=======
|
|
||||||
private const FROM_PASS = "4c4d3m14S3gur4##";//Foy25193
|
private const FROM_PASS = "4c4d3m14S3gur4##";//Foy25193
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
private const FOOTER = "<p style='margin-top:5em; color:#aaa;font-style:italics'><small>Este es un correo automatizado, esta cuenta no recibe correos.<small></p>";
|
private const FOOTER = "<p style='margin-top:5em; color:#aaa;font-style:italics'><small>Este es un correo automatizado, esta cuenta no recibe correos.<small></p>";
|
||||||
//private $lista_to, $asunto, $texto;
|
//private $lista_to, $asunto, $texto;
|
||||||
|
|
||||||
@@ -99,8 +95,4 @@ class Mailer{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
}
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|||||||
@@ -1,24 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'class/c_login.php';
|
require_once 'class/c_login.php';
|
||||||
<<<<<<< HEAD
|
|
||||||
require_once 'include/bd_pdo.php';
|
|
||||||
|
|
||||||
$user = Login::get_user();
|
|
||||||
|
|
||||||
$user->access();
|
|
||||||
if($user->acceso == null){
|
|
||||||
header('Location: main.php?error=1');
|
|
||||||
}else{
|
|
||||||
$user->print_to_log('Dias_festivos');
|
|
||||||
}
|
|
||||||
if(isset($_GET['facultad'])){
|
|
||||||
$fac = $_GET['facultad'];
|
|
||||||
}else if($user->admin){
|
|
||||||
$fac = null;
|
|
||||||
}else{
|
|
||||||
$fac = $user->facultad['facultad_id'];
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
if (!isset($_SESSION['user'])){
|
if (!isset($_SESSION['user'])){
|
||||||
die(header('Location: index.php'));
|
die(header('Location: index.php'));
|
||||||
}
|
}
|
||||||
@@ -73,38 +54,11 @@ $write = true;
|
|||||||
$fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inicio, periodo_fecha_fin FROM periodo WHERE CURRENT_DATE < periodo_fecha_fin order by id_periodo_sgu");
|
$fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inicio, periodo_fecha_fin FROM periodo WHERE CURRENT_DATE < periodo_fecha_fin order by id_periodo_sgu");
|
||||||
|
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<<<<<<< HEAD
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Días Festivos</title>
|
|
||||||
<link rel="stylesheet" href="css/jquery-ui.css">
|
|
||||||
<link rel="stylesheet" href="css/calendar.css">
|
|
||||||
<link rel="stylesheet" href="css/toggle.css" type="text/css">
|
|
||||||
<?php
|
|
||||||
include 'import/html_css_files.php';
|
|
||||||
?>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<?php
|
|
||||||
include "import/html_header.php";
|
|
||||||
html_header(
|
|
||||||
"DÍAS FESTIVOS",
|
|
||||||
"Gestión de Checador "
|
|
||||||
);
|
|
||||||
$user->access();
|
|
||||||
$fs_dias_festivos = query("SELECT * FROM fs_diasfestivos(:facultad, null, null, null) ORDER BY diasfestivos_dia", [':facultad' => $fac], false);
|
|
||||||
$fs_periodos = query("SELECT * FROM fs_periodos(null, null) WHERE estado = 'Activo'", null, false);
|
|
||||||
$fs_dias_festivos_generales = query("SELECT * FROM fs_diasfestivos(null, null) ORDER BY diasfestivos_dia", null, false);
|
|
||||||
?>
|
|
||||||
<main class="content marco">
|
|
||||||
=======
|
|
||||||
<title>Días festivos</title>
|
<title>Días festivos</title>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@@ -140,17 +94,12 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
|
|
||||||
<section id="message"></section>
|
<section id="message"></section>
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<?php if($user->admin){ ?>
|
<?php if($user->admin){ ?>
|
||||||
<div class="col-12 text-right">
|
<div class="col-12 text-right">
|
||||||
<button type="button" class="btn btn-outline-secondary" data-toggle="modal" data-target="#modal" data-tipo="1"><span class="ing-mas ing-fw"></span> Agregar Día Festivo</button>
|
<button type="button" class="btn btn-outline-secondary" data-toggle="modal" data-target="#modal" data-tipo="1"><span class="ing-mas ing-fw"></span> Agregar Día Festivo</button>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div id="message"></div>
|
<div id="message"></div>
|
||||||
<<<<<<< HEAD
|
|
||||||
<!-- Tabla -->
|
|
||||||
<?php if($fs_dias_festivos || $fs_dias_festivos_generales){ ?>
|
|
||||||
=======
|
|
||||||
<form action="días_festivos.php" method="post" class="">
|
<form action="días_festivos.php" method="post" class="">
|
||||||
<div class="form-box">
|
<div class="form-box">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@@ -182,7 +131,6 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
<!-- Tabla -->
|
<!-- Tabla -->
|
||||||
<?php
|
<?php
|
||||||
if(count($dias_arr) > 0){ ?>
|
if(count($dias_arr) > 0){ ?>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<div class="row mt-3">
|
<div class="row mt-3">
|
||||||
<div class="col-12 table-responsive">
|
<div class="col-12 table-responsive">
|
||||||
<table class="table table-sm table-striped table-white">
|
<table class="table table-sm table-striped table-white">
|
||||||
@@ -190,30 +138,12 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Día</th>
|
<th>Día</th>
|
||||||
<th>Periodo</th>
|
<th>Periodo</th>
|
||||||
<<<<<<< HEAD
|
|
||||||
<th>Nivel</th>
|
|
||||||
<?php if($user->admin){ ?>
|
<?php if($user->admin){ ?>
|
||||||
<th>Facultad</th>
|
|
||||||
=======
|
|
||||||
<?php if($user->admin){ ?>
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<th>Acciones</th>
|
<th>Acciones</th>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<<<<<<< HEAD
|
|
||||||
<?php foreach($fs_dias_festivos as $dia){ ?>
|
|
||||||
<tr data-id="<?= $dia['diasfestivos_id'] ?>" id="<?= $dia['diasfestivos_id'] ?>" data-periodo="1">
|
|
||||||
<td class="text-center"><?php $day = explode("-", $dia['diasfestivos_dia']);
|
|
||||||
echo $day['2']."-".$day['1']."-".$day['0'];
|
|
||||||
?></td>
|
|
||||||
<td class="text-center"><?= $dia['periodo_nombre'] ?></td>
|
|
||||||
<td class="text-center"><?= $dia['nivel_nombre'] ?></td>
|
|
||||||
<?php if($user->admin){ ?>
|
|
||||||
<td class="text-center"><?= $dia['facultad_nombre'] ?></td>
|
|
||||||
<td class="text-center icono-acciones">
|
|
||||||
=======
|
|
||||||
<?php foreach($dias_arr as $dia){ ?>
|
<?php foreach($dias_arr as $dia){ ?>
|
||||||
<tr data-id="<?= $dia['diasfestivos_id'] ?>" id="<?= $dia['diasfestivos_id'] ?>" data-periodo="1">
|
<tr data-id="<?= $dia['diasfestivos_id'] ?>" id="<?= $dia['diasfestivos_id'] ?>" data-periodo="1">
|
||||||
<td class="text-center text-nowrap align-middle">
|
<td class="text-center text-nowrap align-middle">
|
||||||
@@ -232,33 +162,13 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
</td>
|
</td>
|
||||||
<?php if($user->admin){ ?>
|
<?php if($user->admin){ ?>
|
||||||
<td class="text-center icono-acciones align-middle">
|
<td class="text-center icono-acciones align-middle">
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<a href="#" data-toggle="modal" data-target="#modal" data-tipo="2" title="Editar"><span class="ing-editar ing-fw"></span></a>
|
<a href="#" data-toggle="modal" data-target="#modal" data-tipo="2" title="Editar"><span class="ing-editar ing-fw"></span></a>
|
||||||
<a href="#" data-toggle="modal" data-target="#modal_confirm" title="Borrar"><span class="ing-basura ing-fw"></span></a>
|
<a href="#" data-toggle="modal" data-target="#modal_confirm" title="Borrar"><span class="ing-basura ing-fw"></span></a>
|
||||||
</td>
|
</td>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<<<<<<< HEAD
|
|
||||||
<?php foreach($fs_dias_festivos_generales as $dia){ ?>
|
|
||||||
<tr data-id="<?= $dia['diasfestivos_id'] ?>" id="<?= $dia['diasfestivos_id'] ?>" data-periodo="0">
|
|
||||||
<td class="text-center"><?php $day = explode("-", $dia['diasfestivos_dia']);
|
|
||||||
echo $day['2']."-".$day['1']."-".$day['0'];
|
|
||||||
?></td>
|
|
||||||
<td class="text-center">Todos</td>
|
|
||||||
<td class="text-center">Todos</td>
|
|
||||||
<?php if($user->admin){ ?>
|
|
||||||
<td class="text-center">Todas</td>
|
|
||||||
<td class="text-center icono-acciones">
|
|
||||||
<a href="#" data-toggle="modal" data-target="#modal" data-tipo="2" title="Editar"><span class="ing-editar ing-fw"></span></a>
|
|
||||||
<a href="#" data-toggle="modal" data-target="#modal_confirm" title="Borrar"><span class="ing-basura ing-fw"></span></a>
|
|
||||||
</td>
|
|
||||||
<?php } ?>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
=======
|
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -287,25 +197,6 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
<form action="" method="post" id="formaModal" onsubmit="return valida_campos()">
|
<form action="" method="post" id="formaModal" onsubmit="return valida_campos()">
|
||||||
<input type="hidden" name="id" id="id">
|
<input type="hidden" name="id" id="id">
|
||||||
<div class="form-box">
|
<div class="form-box">
|
||||||
<<<<<<< HEAD
|
|
||||||
<div class="form-group row">
|
|
||||||
<label for="periodo" class="col-3 col-form-label">Periodo *</label>
|
|
||||||
<div class="col-8">
|
|
||||||
<div class="datalist datalist-select mb-1 w-100">
|
|
||||||
<div class="datalist-input" id="fac">Mostrar todos</div>
|
|
||||||
<span class="ing-buscar icono"></span>
|
|
||||||
<ul style="display:none">
|
|
||||||
<li data-id="0" class="pl4-">Todos</li>
|
|
||||||
<?php foreach($fs_periodos as $periodo){ ?>
|
|
||||||
<li data-id="<?= $periodo['id'] ?>" class="pl4-"> <?php echo $periodo['periodo']." ".$periodo['facultad']." - ".$periodo['nivel']; ?></li>
|
|
||||||
<?php } ?>
|
|
||||||
</ul>
|
|
||||||
<input type="hidden" id="periodo" name="periodo" value="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
=======
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<div class="form-group row" id="rangoDiv">
|
<div class="form-group row" id="rangoDiv">
|
||||||
<label for="rango" class="col-3 col-form-label">Rango</label>
|
<label for="rango" class="col-3 col-form-label">Rango</label>
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
@@ -318,19 +209,13 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
<input id="diaFestivo" name="diaFestivo" type="text" class="form-control date-picker" placeholder="dd/mm/aaaa" maxlength="10" required="required" readonly="">
|
<input id="diaFestivo" name="diaFestivo" type="text" class="form-control date-picker" placeholder="dd/mm/aaaa" maxlength="10" required="required" readonly="">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-1 diaFestivoRango">
|
<div class="col-1 diaFestivoRango">
|
||||||
<<<<<<< HEAD
|
|
||||||
-
|
|
||||||
=======
|
|
||||||
<span class="ing-menos pt-2"></span>
|
<span class="ing-menos pt-2"></span>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 diaFestivoRango" id="diaFestivoRango">
|
<div class="col-4 diaFestivoRango" id="diaFestivoRango">
|
||||||
<input id="diaFestivoFin" name="diaFestivoFin" type="text" class="form-control date-picker" placeholder="dd/mm/aaaa" maxlength="10" required="required" readonly="">
|
<input id="diaFestivoFin" name="diaFestivoFin" type="text" class="form-control date-picker" placeholder="dd/mm/aaaa" maxlength="10" required="required" readonly="">
|
||||||
</div>
|
</div>
|
||||||
<div class="invalid-feedback">Debe seleccionar una fecha</div>
|
<div class="invalid-feedback">Debe seleccionar una fecha</div>
|
||||||
</div>
|
</div>
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
<div class="form-group row" id="periodos">
|
<div class="form-group row" id="periodos">
|
||||||
<label for="periodos" class="col-3 col-form-label">Periodos</label>
|
<label for="periodos" class="col-3 col-form-label">Periodos</label>
|
||||||
@@ -349,7 +234,6 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<div class="offset-4 col-8">
|
<div class="offset-4 col-8">
|
||||||
<button type="submit" class="btn btn-outline-primary" id="submitBtn" data-tipo="1">
|
<button type="submit" class="btn btn-outline-primary" id="submitBtn" data-tipo="1">
|
||||||
@@ -367,11 +251,7 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<div class="modal fade" id="modal_confirm" tabindex="-1" role="dialog" aria-labelledby="modal" aria-hidden="true">
|
|
||||||
=======
|
|
||||||
<div class="modal fade" id="modal_confirm" tabindex="-1" role="dialog" aria-labelledby="modal_confirm" aria-hidden="true">
|
<div class="modal fade" id="modal_confirm" tabindex="-1" role="dialog" aria-labelledby="modal_confirm" aria-hidden="true">
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
@@ -393,19 +273,13 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
<script src="js/jquery.min.js"></script>
|
<script src="js/jquery.min.js"></script>
|
||||||
<script src="js/jquery-ui.js"></script>
|
<script src="js/jquery-ui.js"></script>
|
||||||
<script src="js/bootstrap/bootstrap.min.js"></script>
|
<script src="js/bootstrap/bootstrap.min.js"></script>
|
||||||
<<<<<<< HEAD
|
|
||||||
<script src="js/datalist.js"></script>
|
|
||||||
=======
|
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<script src="js/datepicker-es.js"></script>
|
<script src="js/datepicker-es.js"></script>
|
||||||
<script src="js/toggle.js"></script>
|
<script src="js/toggle.js"></script>
|
||||||
<?php
|
<?php
|
||||||
require_once 'js/messages.php';
|
require_once 'js/messages.php';
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
$(document).on( "click", ".btn-reset", function(event){
|
$(document).on( "click", ".btn-reset", function(event){
|
||||||
var forma = $(this).parents("form");
|
var forma = $(this).parents("form");
|
||||||
forma.find("input[type=text]").val("");
|
forma.find("input[type=text]").val("");
|
||||||
@@ -413,7 +287,6 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('.diaFestivoRango').hide();
|
$('.diaFestivoRango').hide();
|
||||||
});
|
});
|
||||||
@@ -455,12 +328,6 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
changeMonth: true,
|
changeMonth: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<?php if(!$fs_dias_festivos && !$fs_dias_festivos_generales){ ?>
|
|
||||||
triggerMessage("No se encontraron días festivos", "Error");
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
=======
|
|
||||||
<?php if(count($dias_arr) == 0){ ?>
|
<?php if(count($dias_arr) == 0){ ?>
|
||||||
triggerMessage("No se encontraron días festivos", "Error");
|
triggerMessage("No se encontraron días festivos", "Error");
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
@@ -483,32 +350,21 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
$('#modal .date-picker').change(function(){
|
$('#modal .date-picker').change(function(){
|
||||||
actualizaPeriodos($(this).val());
|
actualizaPeriodos($(this).val());
|
||||||
});
|
});
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
$('#modal').on('show.bs.modal', function (event){
|
$('#modal').on('show.bs.modal', function (event){
|
||||||
var button = $(event.relatedTarget);
|
var button = $(event.relatedTarget);
|
||||||
var tipo = button.data('tipo');
|
var tipo = button.data('tipo');
|
||||||
var modal = $(this);
|
var modal = $(this);
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
$("#formaModal .text-danger").removeClass("text-danger");
|
$("#formaModal .text-danger").removeClass("text-danger");
|
||||||
$("#diaFestivoFin").removeClass("is-invalid");
|
$("#diaFestivoFin").removeClass("is-invalid");
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
if(tipo==1){//agregar
|
if(tipo==1){//agregar
|
||||||
$('#modalLabel').html("Agregar Día Festivo");
|
$('#modalLabel').html("Agregar Día Festivo");
|
||||||
$('#submitBtn').data('tipo', 1);
|
$('#submitBtn').data('tipo', 1);
|
||||||
$('#diaFestivo').datepicker("setDate", today);
|
$('#diaFestivo').datepicker("setDate", today);
|
||||||
$('#diaFestivoFin').datepicker("setDate", today);
|
$('#diaFestivoFin').datepicker("setDate", today);
|
||||||
<<<<<<< HEAD
|
|
||||||
setDatalistFirst("#periodo");
|
|
||||||
$('#rangoDiv').show();
|
|
||||||
$('#dia').removeClass('col-9');
|
|
||||||
$('#dia').addClass('col-4');
|
|
||||||
=======
|
|
||||||
$('#rangoDiv').show();
|
$('#rangoDiv').show();
|
||||||
$('#dia').removeClass('col-9');
|
$('#dia').removeClass('col-9');
|
||||||
$('#dia').addClass('col-4');
|
$('#dia').addClass('col-4');
|
||||||
actualizaPeriodos($("#diaFestivo").val());
|
actualizaPeriodos($("#diaFestivo").val());
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#modalLabel').html("Editar Día Festivo");
|
$('#modalLabel').html("Editar Día Festivo");
|
||||||
@@ -526,15 +382,7 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
success:function(result){
|
success:function(result){
|
||||||
console.log(result);
|
console.log(result);
|
||||||
$('#id').val(result['diasfestivos_id']);
|
$('#id').val(result['diasfestivos_id']);
|
||||||
<<<<<<< HEAD
|
|
||||||
if(!result['periodo_id']){
|
|
||||||
setDatalist('#periodo', 0);
|
|
||||||
}else{
|
|
||||||
setDatalist('#periodo', result['periodo_id']);
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
var date = new Date(result['diasfestivos_dia']);
|
var date = new Date(result['diasfestivos_dia']);
|
||||||
date.setDate(date.getDate() + 1);
|
date.setDate(date.getDate() + 1);
|
||||||
$('#diaFestivo').datepicker("setDate", date);
|
$('#diaFestivo').datepicker("setDate", date);
|
||||||
@@ -546,11 +394,8 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
|
|
||||||
function valida_campos(){
|
function valida_campos(){
|
||||||
var error=false;
|
var error=false;
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
$("#modal .text-danger").removeClass("text-danger");
|
$("#modal .text-danger").removeClass("text-danger");
|
||||||
$("#diaFestivoFin").removeClass("is-invalid");
|
$("#diaFestivoFin").removeClass("is-invalid");
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
if($("#diaFestivo").val()==""){
|
if($("#diaFestivo").val()==""){
|
||||||
$("#diaFestivo").addClass("is-invalid");
|
$("#diaFestivo").addClass("is-invalid");
|
||||||
error=true;
|
error=true;
|
||||||
@@ -566,13 +411,10 @@ $fs_periodos = $db->query("SELECT periodo_id, periodo_nombre, periodo_fecha_inic
|
|||||||
$('#diaFestivoFin').addClass("is-invalid");
|
$('#diaFestivoFin').addClass("is-invalid");
|
||||||
error=true;
|
error=true;
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
if($("#modal .form-check-input:checked").length<=0){
|
if($("#modal .form-check-input:checked").length<=0){
|
||||||
$("#modal .form-check-input").siblings().addClass("text-danger");
|
$("#modal .form-check-input").siblings().addClass("text-danger");
|
||||||
error=true;
|
error=true;
|
||||||
}
|
}
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
if(error){
|
if(error){
|
||||||
return false;
|
return false;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
<<<<<<< HEAD
|
|
||||||
require_once "/saa_dsk/www/vendor/autoload.php";
|
|
||||||
=======
|
|
||||||
require_once "/usr/share/nginx/html/paad/vendor/autoload.php";
|
require_once "/usr/share/nginx/html/paad/vendor/autoload.php";
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||||
$dotenv->load();
|
$dotenv->load();
|
||||||
use \SeinopSys\PostgresDb;
|
use \SeinopSys\PostgresDb;
|
||||||
|
|||||||
@@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
# The standard connection URI format, documented at
|
# The standard connection URI format, documented at
|
||||||
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
||||||
<<<<<<< HEAD
|
|
||||||
db-uri = "postgres://postgres:4ud1t0rf4lt4$$@localhost:5432/paad"
|
|
||||||
=======
|
|
||||||
db-uri = "postgres://postgres:4ud1t0rf4lt4$$@localhost:5432/paad_pruebas"
|
db-uri = "postgres://postgres:4ud1t0rf4lt4$$@localhost:5432/paad_pruebas"
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|
||||||
# The database role to use when no client authentication is provided.
|
# The database role to use when no client authentication is provided.
|
||||||
# Should differ from authenticator
|
# Should differ from authenticator
|
||||||
@@ -21,8 +17,4 @@ jwt-secret-is-base64 = false
|
|||||||
server-port = 3000
|
server-port = 3000
|
||||||
|
|
||||||
# the location root is /api
|
# the location root is /api
|
||||||
<<<<<<< HEAD
|
|
||||||
server-host = "*"
|
server-host = "*"
|
||||||
=======
|
|
||||||
server-host = "*"
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ if ($error) $errorDesc = "El usuario y/o contraseña son incorrectos.";
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<title>.: Administrador de checador :.</title>
|
<title>.: Administrador de checador (Pruebas) :.</title>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<link rel="icon" type="image/png" href="imagenes/favicon.png" />
|
<link rel="icon" type="image/png" href="imagenes/favicon.png" />
|
||||||
|
|||||||
@@ -99,13 +99,8 @@ const store = reactive({
|
|||||||
},
|
},
|
||||||
printEstados() {
|
printEstados() {
|
||||||
if (store.filters.estados.length > 0)
|
if (store.filters.estados.length > 0)
|
||||||
<<<<<<< HEAD
|
|
||||||
document.querySelector('#estados').innerHTML = store.filters.estados.map((estado) => `<span class="mx-2 badge badge-${store.estados.getEstado(estado).estado_color}">
|
document.querySelector('#estados').innerHTML = store.filters.estados.map((estado) => `<span class="mx-2 badge badge-${store.estados.getEstado(estado).estado_color}">
|
||||||
<i class="${store.estados.getEstado(estado).estado_icon}"></i> ${store.estados.getEstado(estado).nombre}
|
<i class="${store.estados.getEstado(estado).estado_icon}"></i> ${store.estados.getEstado(estado).nombre}
|
||||||
=======
|
|
||||||
document.querySelector('#estados').innerHTML = store.filters.estados.map((estado) => `<span class="mx-2 badge badge-${store.estados.getEstado(estado).estado_color}">
|
|
||||||
<i class="${store.estados.getEstado(estado).estado_icon}"></i> ${store.estados.getEstado(estado).nombre}
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</span>`).join('');
|
</span>`).join('');
|
||||||
else
|
else
|
||||||
document.querySelector('#estados').innerHTML = `Todos los registros`;
|
document.querySelector('#estados').innerHTML = `Todos los registros`;
|
||||||
@@ -213,10 +208,7 @@ const store = reactive({
|
|||||||
params['fecha_inicio'] = fecha_inicio;
|
params['fecha_inicio'] = fecha_inicio;
|
||||||
if (fecha_fin)
|
if (fecha_fin)
|
||||||
params['fecha_fin'] = fecha_fin;
|
params['fecha_fin'] = fecha_fin;
|
||||||
<<<<<<< HEAD
|
|
||||||
params['periodo_id'] = store.filters.todos_los_periodos ? 1 : 0;
|
params['periodo_id'] = store.filters.todos_los_periodos ? 1 : 0;
|
||||||
=======
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
const paramsUrl = new URLSearchParams(params).toString();
|
const paramsUrl = new URLSearchParams(params).toString();
|
||||||
try {
|
try {
|
||||||
const res = await fetch(`action/action_auditoria.php?${paramsUrl}`, {
|
const res = await fetch(`action/action_auditoria.php?${paramsUrl}`, {
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ const check = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
['scroll', 'resize'].forEach(e => window.addEventListener(e, check))
|
['scroll', 'resize'].forEach(e => window.addEventListener(e, check))
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
const links = document.querySelectorAll('a');
|
const links = document.querySelectorAll('a');
|
||||||
@@ -40,4 +38,3 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|||||||
@@ -87,13 +87,9 @@ if($user->periodo_id!= ""){
|
|||||||
$repEdo_rs = $db->query('SELECT * FROM fs_estado_reposicion' );
|
$repEdo_rs = $db->query('SELECT * FROM fs_estado_reposicion' );
|
||||||
|
|
||||||
$repoParams = array();
|
$repoParams = array();
|
||||||
<<<<<<< HEAD
|
|
||||||
$query = "";
|
|
||||||
=======
|
|
||||||
$asigParams = array();
|
$asigParams = array();
|
||||||
$query = "";
|
$query = "";
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
if($user->rol["rol_id"] == 9){//es coordinador
|
if($user->rol["rol_id"] == 9){//es coordinador
|
||||||
$query .= ":facultad, ";
|
$query .= ":facultad, ";
|
||||||
$repoParams[":facultad"] = $user->facultad["facultad_id"];
|
$repoParams[":facultad"] = $user->facultad["facultad_id"];
|
||||||
@@ -107,12 +103,8 @@ if($user->periodo_id!= ""){
|
|||||||
}else{
|
}else{
|
||||||
$query .= "NULL,";
|
$query .= "NULL,";
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
$query .= ":f_ini, :f_fin, :edo, ";
|
|
||||||
=======
|
|
||||||
$query .= ":f_ini, :f_fin, ";
|
$query .= ":f_ini, :f_fin, ";
|
||||||
$queryAsig = ":f_ini, :f_fin,";
|
$queryAsig = ":f_ini, :f_fin,";
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|
||||||
|
|
||||||
$date = DateTime::createFromFormat('d/m/Y', $fecha_ini);
|
$date = DateTime::createFromFormat('d/m/Y', $fecha_ini);
|
||||||
@@ -123,12 +115,9 @@ if($user->periodo_id!= ""){
|
|||||||
$repoParams[":f_ini"] = $fecha_ini_db;
|
$repoParams[":f_ini"] = $fecha_ini_db;
|
||||||
$repoParams[":f_fin"] = $fecha_fin_db;
|
$repoParams[":f_fin"] = $fecha_fin_db;
|
||||||
$repoParams[":edo"] = 1;//se sobreescribe
|
$repoParams[":edo"] = 1;//se sobreescribe
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
$asigParams[":f_ini"] = $fecha_ini_db;
|
$asigParams[":f_ini"] = $fecha_ini_db;
|
||||||
$asigParams[":f_fin"] = $fecha_fin_db;
|
$asigParams[":f_fin"] = $fecha_fin_db;
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@@ -207,10 +196,6 @@ if($user->periodo_id!= ""){
|
|||||||
<button type="submit" class="btn btn-outline-primary mr-2" id="btn-buscar"><span class="ing-buscar ing-fw"></span> Buscar</button>
|
<button type="submit" class="btn btn-outline-primary mr-2" id="btn-buscar"><span class="ing-buscar ing-fw"></span> Buscar</button>
|
||||||
<button type="button" class="btn btn-outline-danger" onclick="window.location.href = window.location.href"><span class="ing-borrar ing-fw"></span> Limpiar</button>
|
<button type="button" class="btn btn-outline-danger" onclick="window.location.href = window.location.href"><span class="ing-borrar ing-fw"></span> Limpiar</button>
|
||||||
</div>
|
</div>
|
||||||
<<<<<<< HEAD
|
|
||||||
</form>
|
|
||||||
|
|
||||||
=======
|
|
||||||
|
|
||||||
<p class="text-right">
|
<p class="text-right">
|
||||||
<button class="btn btn-secondary" id="exportar"><span class="ing-descargar"></span>Descargar xls</button>
|
<button class="btn btn-secondary" id="exportar"><span class="ing-descargar"></span>Descargar xls</button>
|
||||||
@@ -219,7 +204,6 @@ if($user->periodo_id!= ""){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<ul class="nav nav-tabs d-print-none mb-4" id="myTab" role="tablist">
|
<ul class="nav nav-tabs d-print-none mb-4" id="myTab" role="tablist">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="tab1-tab" data-toggle="tab" href="#tab1" role="tab" aria-controls="calendario" aria-selected="true">Nuevas reposiciones</a>
|
<a class="nav-link" id="tab1-tab" data-toggle="tab" href="#tab1" role="tab" aria-controls="calendario" aria-selected="true">Nuevas reposiciones</a>
|
||||||
@@ -240,18 +224,6 @@ if($user->periodo_id!= ""){
|
|||||||
foreach($repEdo_rs as $redo){ ?>
|
foreach($repEdo_rs as $redo){ ?>
|
||||||
<div class="tab-pane fade" id="tab<?php echo $i;?>" role="tabpanel" aria-labelledby="tab<?php echo $i;?>-tab">
|
<div class="tab-pane fade" id="tab<?php echo $i;?>" role="tabpanel" aria-labelledby="tab<?php echo $i;?>-tab">
|
||||||
<?php
|
<?php
|
||||||
<<<<<<< HEAD
|
|
||||||
$repoParams[":edo"]=$redo["estado_reposicion_id"];
|
|
||||||
if($user->rol["rol_id"] == 7){//es supervisor
|
|
||||||
$repoParams[":sup"] = $user->user["id"];
|
|
||||||
$reposiciones_rs = $db->query('SELECT * FROM fs_reposicion_solicitud(NULL, '.$query.'0, NULL, :sup) ', $repoParams );
|
|
||||||
}else{
|
|
||||||
$reposiciones_rs = $db->query('SELECT * FROM fs_reposicion_solicitud(NULL, '.$query.'0, NULL) ', $repoParams );
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<h4 class="mb-4" <?php echo "style='color:".$redo["estado_color"]."'>".$redo["estado_nombre"]; ?> </h4>
|
|
||||||
=======
|
|
||||||
|
|
||||||
$tablaArr = [];
|
$tablaArr = [];
|
||||||
|
|
||||||
@@ -298,7 +270,6 @@ if($user->periodo_id!= ""){
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<h4 class="mb-4" <?php echo "style='color:".$redo["estado_color"]."'";?> > <?php echo $redo["estado_nombre"]; ?> </h4>
|
<h4 class="mb-4" <?php echo "style='color:".$redo["estado_color"]."'";?> > <?php echo $redo["estado_nombre"]; ?> </h4>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|
||||||
<table class="table table-sm table-striped table-white">
|
<table class="table table-sm table-striped table-white">
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
@@ -314,19 +285,6 @@ if($user->periodo_id!= ""){
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
<<<<<<< HEAD
|
|
||||||
if(isset($reposiciones_rs)){
|
|
||||||
foreach($reposiciones_rs as $reposicion){
|
|
||||||
?>
|
|
||||||
<tr data-id="<?php echo $reposicion["reposicion_solicitud_id"]; ?>" data-edo="<?php echo $reposicion["estado_reposicion_id"];?>" id="id<?php echo $reposicion["reposicion_solicitud_id"]; ?>">
|
|
||||||
<td class="align-middle">
|
|
||||||
<?php if($reposicion["estado_reposicion_id"]<3){ ?>
|
|
||||||
<div class="wizard <?php if(intval($reposicion["estado_reposicion_id"])==2) echo "active";?> d-flex mx-auto">
|
|
||||||
<div class="w-50 h-100"></div>
|
|
||||||
<div class=""></div>
|
|
||||||
</div>
|
|
||||||
<?php } else if($reposicion["estado_reposicion_id"]==3){?>
|
|
||||||
=======
|
|
||||||
if(isset($tablaArr)){
|
if(isset($tablaArr)){
|
||||||
foreach($tablaArr as $reposicion){
|
foreach($tablaArr as $reposicion){
|
||||||
?>
|
?>
|
||||||
@@ -338,7 +296,6 @@ if($user->periodo_id!= ""){
|
|||||||
<div class=""></div>
|
<div class=""></div>
|
||||||
</div>
|
</div>
|
||||||
<?php } else if($reposicion["estado"]==3){?>
|
<?php } else if($reposicion["estado"]==3){?>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<div class="text-success text-center pt-1">
|
<div class="text-success text-center pt-1">
|
||||||
<span class="ing-autorizar ing-lg"></span>
|
<span class="ing-autorizar ing-lg"></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -349,15 +306,11 @@ if($user->periodo_id!= ""){
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="align-middle">
|
<td class="align-middle">
|
||||||
<<<<<<< HEAD
|
|
||||||
<?php if($reposicion["es_reposicion"]) echo "Resposición"; else echo "Cambio"; ?>
|
|
||||||
=======
|
|
||||||
<?php switch($reposicion["tipo"]){
|
<?php switch($reposicion["tipo"]){
|
||||||
case 1: echo "Resposición"; break;
|
case 1: echo "Resposición"; break;
|
||||||
case 2: echo "Cambio"; break;
|
case 2: echo "Cambio"; break;
|
||||||
case 3: echo "Asignación"; break;
|
case 3: echo "Asignación"; break;
|
||||||
}?>
|
}?>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</td>
|
</td>
|
||||||
<td><?php
|
<td><?php
|
||||||
echo $reposicion["profesor_clave"]." - ".$reposicion["profesor_nombre"];
|
echo $reposicion["profesor_clave"]." - ".$reposicion["profesor_nombre"];
|
||||||
@@ -365,16 +318,6 @@ if($user->periodo_id!= ""){
|
|||||||
<br>
|
<br>
|
||||||
<small>
|
<small>
|
||||||
<?php echo $reposicion["materia_nombre"]; ?>
|
<?php echo $reposicion["materia_nombre"]; ?>
|
||||||
<<<<<<< HEAD
|
|
||||||
(<?php
|
|
||||||
echo $reposicion["horario_grupo"];
|
|
||||||
?>)
|
|
||||||
</small>
|
|
||||||
</td>
|
|
||||||
<td class="text-center align-middle text-nowrap"><?php
|
|
||||||
$fechaI = date("d/m/Y", strtotime($reposicion["fecha_clase"]));
|
|
||||||
echo $fechaI."<br>".substr($reposicion["horario_hora"],0, 5);
|
|
||||||
=======
|
|
||||||
<?php
|
<?php
|
||||||
if($reposicion["horario_grupo"]!="")
|
if($reposicion["horario_grupo"]!="")
|
||||||
echo "(".$reposicion["horario_grupo"].")";
|
echo "(".$reposicion["horario_grupo"].")";
|
||||||
@@ -388,7 +331,6 @@ if($user->periodo_id!= ""){
|
|||||||
}else{
|
}else{
|
||||||
echo " - ";
|
echo " - ";
|
||||||
}
|
}
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center align-middle text-nowrap"><?php
|
<td class="text-center align-middle text-nowrap"><?php
|
||||||
@@ -409,26 +351,6 @@ if($user->periodo_id!= ""){
|
|||||||
<td class="text-center align-middle icono-acciones text-nowrap">
|
<td class="text-center align-middle icono-acciones text-nowrap">
|
||||||
<?php if (duracionMinutos($reposicion["fecha_nueva"], date("Y-m-d H:i:00")) < 0){ ?>
|
<?php if (duracionMinutos($reposicion["fecha_nueva"], date("Y-m-d H:i:00")) < 0){ ?>
|
||||||
<?php //no se cumple la fecha de la reposicion, es jefe de carrera
|
<?php //no se cumple la fecha de la reposicion, es jefe de carrera
|
||||||
<<<<<<< HEAD
|
|
||||||
if((!$user->jefe_carrera || $user->admin || !$coordinador) && $reposicion["estado_reposicion_id"] == 1){?>
|
|
||||||
<a href="#" data-toggle="modal" data-target="#modal_aprobar" data-tipo="2" title="Aprobar"><?php echo $ICO["ver"];?></a>
|
|
||||||
<?php } //no se cumple la fecha de la reposicion, no es jefe de carrera
|
|
||||||
else if(($supervisor || $user->admin) && $reposicion["estado_reposicion_id"] == 2){?>
|
|
||||||
<a href="#" data-toggle="modal" data-target="#modal_aprobar" data-tipo="3" title="Autorizar" ><?php echo $ICO["ver"];?></a>
|
|
||||||
<?php } else { ?>
|
|
||||||
<a href="#" data-toggle="modal" data-target="#modal_aprobar" data-tipo="1" title="Ver detalle"><?php echo $ICO["ver"];?></a>
|
|
||||||
<?php } ?>
|
|
||||||
<?php
|
|
||||||
}else{ //fecha ya pasó?>
|
|
||||||
<a href="#" data-toggle="modal" data-target="#modal_aprobar" data-tipo="1" title="Ver detalle"><span class="text-danger"><?php echo $ICO["ver"];?></span></a>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if($reposicion["estado_reposicion_id"]<4){
|
|
||||||
if(
|
|
||||||
(($user->jefe_carrera || $user->admin || $coordinador) && $reposicion["estado_reposicion_id"] == 1)/* nueva */
|
|
||||||
|| (($user->admin || $coordinador || $supervisor) && $reposicion["estado_reposicion_id"] == 2)/* aprobado facultad */
|
|
||||||
=======
|
|
||||||
if((!$user->jefe_carrera || $user->admin || !$coordinador) && $reposicion["estado"] == 1){?>
|
if((!$user->jefe_carrera || $user->admin || !$coordinador) && $reposicion["estado"] == 1){?>
|
||||||
<a href="#" data-toggle="modal" data-target="#modal_aprobar" data-estado="2" data-tipo="<?php echo $reposicion["tipo"];?>" title="Aprobar"><?php echo $ICO["ver"];?></a>
|
<a href="#" data-toggle="modal" data-target="#modal_aprobar" data-estado="2" data-tipo="<?php echo $reposicion["tipo"];?>" title="Aprobar"><?php echo $ICO["ver"];?></a>
|
||||||
<?php } //no se cumple la fecha de la reposicion, no es jefe de carrera
|
<?php } //no se cumple la fecha de la reposicion, no es jefe de carrera
|
||||||
@@ -447,7 +369,6 @@ if($user->periodo_id!= ""){
|
|||||||
if(
|
if(
|
||||||
(($user->jefe_carrera || $user->admin || $coordinador) && $reposicion["estado"] == 1)/* nueva */
|
(($user->jefe_carrera || $user->admin || $coordinador) && $reposicion["estado"] == 1)/* nueva */
|
||||||
|| (($user->admin || $coordinador || $supervisor) && $reposicion["estado"] == 2)/* aprobado facultad */
|
|| (($user->admin || $coordinador || $supervisor) && $reposicion["estado"] == 2)/* aprobado facultad */
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
){
|
){
|
||||||
?>
|
?>
|
||||||
<a href="#" data-toggle="modal" data-target="#modal_confirm" title="Cancelar"><span class="text-danger"><?php echo $ICO["cancelar"];?></span></a>
|
<a href="#" data-toggle="modal" data-target="#modal_confirm" title="Cancelar"><span class="text-danger"><?php echo $ICO["cancelar"];?></span></a>
|
||||||
@@ -483,10 +404,7 @@ if($user->periodo_id!= ""){
|
|||||||
<form action="./action/reposicion_autoriza.php" method="post" id="formaModal">
|
<form action="./action/reposicion_autoriza.php" method="post" id="formaModal">
|
||||||
<input type="hidden" name="id" id="id">
|
<input type="hidden" name="id" id="id">
|
||||||
<input type="hidden" name="edo" id="edo" value="">
|
<input type="hidden" name="edo" id="edo" value="">
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
<input type="hidden" name="tipo" id="tipo" value="">
|
<input type="hidden" name="tipo" id="tipo" value="">
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6 col-sm-4 barra-right text-right">
|
<div class="col-6 col-sm-4 barra-right text-right">
|
||||||
@@ -621,8 +539,6 @@ if($user->periodo_id!= ""){
|
|||||||
<input type="hidden" id="salon" name="salon" value="">
|
<input type="hidden" id="salon" name="salon" value="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
<div class="row" id="supervisor" style="display: none;">
|
<div class="row" id="supervisor" style="display: none;">
|
||||||
<div class="col-6 col-sm-4 barra-right text-right">
|
<div class="col-6 col-sm-4 barra-right text-right">
|
||||||
@@ -632,7 +548,6 @@ if($user->periodo_id!= ""){
|
|||||||
<p class="rep-sup"></p>
|
<p class="rep-sup"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row mt-4">
|
<div class="row mt-4">
|
||||||
@@ -653,11 +568,7 @@ if($user->periodo_id!= ""){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<div class="form-group row mt-3">
|
|
||||||
=======
|
|
||||||
<div class="form-group row mt-3" id="submitGroup">
|
<div class="form-group row mt-3" id="submitGroup">
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<div class="col-12 text-center">
|
<div class="col-12 text-center">
|
||||||
|
|
||||||
<p class="aprobar-block">Una vez realizada la acción no se puede deshacer.</p>
|
<p class="aprobar-block">Una vez realizada la acción no se puede deshacer.</p>
|
||||||
@@ -668,8 +579,6 @@ if($user->periodo_id!= ""){
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
<div class="form-group row mt-3" id="loadingGroup" style="display:none">
|
<div class="form-group row mt-3" id="loadingGroup" style="display:none">
|
||||||
<div class="col-12 text-center">
|
<div class="col-12 text-center">
|
||||||
<div class="spinner-border text-primary" role="status">
|
<div class="spinner-border text-primary" role="status">
|
||||||
@@ -677,7 +586,6 @@ if($user->periodo_id!= ""){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -810,114 +718,14 @@ if($user->periodo_id!= ""){
|
|||||||
$('#modal_aprobar').on('show.bs.modal', function (event) {
|
$('#modal_aprobar').on('show.bs.modal', function (event) {
|
||||||
var button = $(event.relatedTarget); // Button that triggered the modal
|
var button = $(event.relatedTarget); // Button that triggered the modal
|
||||||
var id = button.parents("tr").data("id");
|
var id = button.parents("tr").data("id");
|
||||||
<<<<<<< HEAD
|
|
||||||
var edo = button.data('tipo');
|
|
||||||
=======
|
|
||||||
var edo = button.data('estado');
|
var edo = button.data('estado');
|
||||||
var tipo = button.data('tipo');
|
var tipo = button.data('tipo');
|
||||||
$("#loadingGroup").hide();
|
$("#loadingGroup").hide();
|
||||||
$("#submitGroup").show();
|
$("#submitGroup").show();
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|
||||||
//1 ver, 2 aprobar, 3 autorizar
|
//1 ver, 2 aprobar, 3 autorizar
|
||||||
$("#edo").val(edo);
|
$("#edo").val(edo);
|
||||||
$("#id").val(id);
|
$("#id").val(id);
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
url: './action/reposicion_select.php',
|
|
||||||
type: 'POST',
|
|
||||||
dataType: 'json',
|
|
||||||
data: { id: id},
|
|
||||||
success: function(result) {
|
|
||||||
if(result["error"]!= "" && result["error"] !== undefined){
|
|
||||||
triggerMessage(result["error"], "Error");
|
|
||||||
$('#modal_aprobar').modal("hide");
|
|
||||||
}else{
|
|
||||||
$("#dlSalon").val("");
|
|
||||||
$("#modal_aprobar .rep-prof").text(result["profesor_nombre"]);
|
|
||||||
$("#modal_aprobar .rep-fac").text(result["facultad"]);
|
|
||||||
$("#modal_aprobar .rep-carr").text(result["carrera"]);
|
|
||||||
$("#modal_aprobar .rep-gpo").text(result["grupo"]);
|
|
||||||
$("#modal_aprobar .rep-mat").text(result["materia_desc"]);
|
|
||||||
$("#modal_aprobar .rep-ciclo").text(result["ciclo"]);
|
|
||||||
$("#modal_aprobar .rep-bloque").text(result["bloque"]);
|
|
||||||
if(result["tipo"])
|
|
||||||
$("#modal_aprobar .rep-tipo").text("Reposición");
|
|
||||||
else
|
|
||||||
$("#modal_aprobar .rep-tipo").text("Cambio");
|
|
||||||
$("#modal_aprobar .rep-aula").text(result["aula_desc"])
|
|
||||||
$("#modal_aprobar .rep-aula").data("aula",result["aula"]);
|
|
||||||
$("#modal_aprobar .rep-falta").text(result["fecha_clase"]);
|
|
||||||
$("#modal_aprobar .rep-fecha").text(result["fecha_nueva"]+" de "+result["hora_ini"]+":"+result["min_ini"]+" a "+result["hora_fin"]+":"+result["min_fin"]);
|
|
||||||
if(result["salon"] =="" || result["salon"] === undefined){
|
|
||||||
$('#salon').prop("selectedIndex", 0);
|
|
||||||
}else{
|
|
||||||
$('#salon').val(result["salon"]);
|
|
||||||
}
|
|
||||||
$("#modal_aprobar .rep-salon").text(result["salon_desc"]);
|
|
||||||
$("#modal_aprobar .rep-comentarios").text(result["comentario"]);
|
|
||||||
$('#modal_aprobar .rep-alumnos').text(result["alumnos"]);
|
|
||||||
|
|
||||||
if(result["estado"] == 4){//cancelada
|
|
||||||
$('#modal_aprobar .rep-motivo').text(result["motivo_cancelacion"]);
|
|
||||||
$("#cancelada-block").show();
|
|
||||||
}else{
|
|
||||||
$("#cancelada-block").hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(edo == 1){// 1 ver
|
|
||||||
$("#modalLabel").text("Detalle de reposición");
|
|
||||||
$(".aprobar-block").hide();
|
|
||||||
|
|
||||||
/*if(parseInt($("#modal_aprobar .rep-aula").data("aula")) != 1){//tipo aula 1 (salon normal) - ver
|
|
||||||
$("#salon-ver").hide();
|
|
||||||
$("#salon-editar").show();
|
|
||||||
}else{
|
|
||||||
$("#salon-ver").show();
|
|
||||||
$("#salon-editar").hide();
|
|
||||||
}*/
|
|
||||||
$("#salon-ver").show();
|
|
||||||
$("#salon-editar").hide();
|
|
||||||
|
|
||||||
}else{
|
|
||||||
$("#modalLabel").text("Aprobar reposición");
|
|
||||||
$(".aprobar-block").show();
|
|
||||||
|
|
||||||
if(edo == 2 && parseInt($("#modal_aprobar .rep-aula").data("aula")) == 1){//tipo aula 1 (salon normal) - ver
|
|
||||||
$("#salon-ver").show();
|
|
||||||
$("#salon-editar").hide();
|
|
||||||
}else if(edo == 3 && parseInt($("#modal_aprobar .rep-aula").data("aula")) != 1){//aprobar (con salón especial)
|
|
||||||
$("#salon-ver").show();
|
|
||||||
$("#salon-editar").hide();
|
|
||||||
}else{
|
|
||||||
$("#salon-ver").hide();
|
|
||||||
$("#salon-editar").show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(result["aula_supervisor"]){//Solo supervisor
|
|
||||||
<?php if($supervisor){ ?>
|
|
||||||
$("#salon-editar").attr("disabled", false);
|
|
||||||
<?php }else{?>
|
|
||||||
$("#salon-editar").attr("disabled", true);
|
|
||||||
<?php } ?>
|
|
||||||
}else{// Facultad
|
|
||||||
<?php if(!$supervisor){ ?>
|
|
||||||
$("#salon-editar").attr("disabled", false);
|
|
||||||
<?php }else{?>
|
|
||||||
$("#salon-editar").attr("disabled", true);
|
|
||||||
<?php } ?>
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
error: function(jqXHR, textStatus, errorThrown ){
|
|
||||||
triggerMessage(errorThrown, "Error");
|
|
||||||
}
|
|
||||||
});//ajax
|
|
||||||
=======
|
|
||||||
$("#tipo").val(tipo);
|
$("#tipo").val(tipo);
|
||||||
|
|
||||||
var action_pag;
|
var action_pag;
|
||||||
@@ -1128,7 +936,6 @@ if($user->periodo_id!= ""){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
});
|
});
|
||||||
/*
|
/*
|
||||||
$(".btn-borrar").click(function(){
|
$(".btn-borrar").click(function(){
|
||||||
@@ -1163,11 +970,8 @@ if($user->periodo_id!= ""){
|
|||||||
var edo = parseInt($("#edo").val());
|
var edo = parseInt($("#edo").val());
|
||||||
console.log(edo)
|
console.log(edo)
|
||||||
if((edo == 3 && valida()) || edo == 2){
|
if((edo == 3 && valida()) || edo == 2){
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
$("#loadingGroup").show();
|
$("#loadingGroup").show();
|
||||||
$("#submitGroup").hide();
|
$("#submitGroup").hide();
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
$("#formaModal").submit();
|
$("#formaModal").submit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -407,18 +407,11 @@ if(!is_null($user->periodo_id)){
|
|||||||
<div class="datalist-input">Salón</div>
|
<div class="datalist-input">Salón</div>
|
||||||
<span class="ing-buscar icono"></span>
|
<span class="ing-buscar icono"></span>
|
||||||
<ul style="display:none">
|
<ul style="display:none">
|
||||||
<<<<<<< HEAD
|
|
||||||
<li data-id="1">Salón</li>
|
|
||||||
<li data-id="2">Sala de cómputo</li>
|
|
||||||
<li data-id="3">Salón/Taller de la facultad</li>
|
|
||||||
<li data-id="4">Virtual</li>
|
|
||||||
=======
|
|
||||||
<?php
|
<?php
|
||||||
$tipoaula_rs = $db->query('select * from tipoaula t order by t.tipoaula_id ');
|
$tipoaula_rs = $db->query('select * from tipoaula t order by t.tipoaula_id ');
|
||||||
foreach($tipoaula_rs as $ta){ ?>
|
foreach($tipoaula_rs as $ta){ ?>
|
||||||
<li data-id="<?php echo $ta["tipoaula_id"];?>"><?php echo $ta["tipoaula_nombre"];?></li>
|
<li data-id="<?php echo $ta["tipoaula_id"];?>"><?php echo $ta["tipoaula_nombre"];?></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</ul>
|
</ul>
|
||||||
<input type="hidden" id="aula" name="aula" value="1">
|
<input type="hidden" id="aula" name="aula" value="1">
|
||||||
</div>
|
</div>
|
||||||
@@ -469,18 +462,12 @@ if(!is_null($user->periodo_id)){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<div class="form-group row mt-3">
|
|
||||||
=======
|
|
||||||
<div class="form-group row mt-3" id="submitGroup">
|
<div class="form-group row mt-3" id="submitGroup">
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<div class="offset-4 col-8">
|
<div class="offset-4 col-8">
|
||||||
<button type="submit" class="btn btn-outline-primary materia-block" id="submitBtn" data-tipo="1"><?php echo $ICO["aceptar"];?> Guardar</button>
|
<button type="submit" class="btn btn-outline-primary materia-block" id="submitBtn" data-tipo="1"><?php echo $ICO["aceptar"];?> Guardar</button>
|
||||||
<button type="reset" class="btn btn-outline-danger" data-dismiss="modal"><?php echo $ICO["cancelar"];?> Cancelar</button>
|
<button type="reset" class="btn btn-outline-danger" data-dismiss="modal"><?php echo $ICO["cancelar"];?> Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
<div class="form-group row mt-3" id="loadingGroup" style="display:none">
|
<div class="form-group row mt-3" id="loadingGroup" style="display:none">
|
||||||
<div class="col-12 text-center">
|
<div class="col-12 text-center">
|
||||||
<div class="spinner-border text-primary" role="status">
|
<div class="spinner-border text-primary" role="status">
|
||||||
@@ -488,7 +475,6 @@ if(!is_null($user->periodo_id)){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -783,13 +769,10 @@ if(!is_null($user->periodo_id)){
|
|||||||
}else{
|
}else{
|
||||||
$('#formaModal').prop("action", "./action/reposicion_insert.php");
|
$('#formaModal').prop("action", "./action/reposicion_insert.php");
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
if(!error){
|
if(!error){
|
||||||
$("#loadingGroup").show();
|
$("#loadingGroup").show();
|
||||||
$("#submitGroup").hide();
|
$("#submitGroup").hide();
|
||||||
}
|
}
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
return !error;
|
return !error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -976,12 +959,9 @@ if(!is_null($user->periodo_id)){
|
|||||||
var button = $(event.relatedTarget); // Button that triggered the modal
|
var button = $(event.relatedTarget); // Button that triggered the modal
|
||||||
var tipo = button.data('tipo'); // 1 alta, 2 edicion
|
var tipo = button.data('tipo'); // 1 alta, 2 edicion
|
||||||
var modal = $(this);
|
var modal = $(this);
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
$("#loadingGroup").hide();
|
$("#loadingGroup").hide();
|
||||||
$("#submitGroup").show();
|
$("#submitGroup").show();
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
|
|
||||||
$("#modal .is-invalid").removeClass("is-invalid");
|
$("#modal .is-invalid").removeClass("is-invalid");
|
||||||
//$(this).find(".form-control:first-child").focus();
|
//$(this).find(".form-control:first-child").focus();
|
||||||
|
|||||||
@@ -198,26 +198,6 @@ try{
|
|||||||
"per"=>$per["periodo_id"]
|
"per"=>$per["periodo_id"]
|
||||||
);
|
);
|
||||||
}else{//reposición
|
}else{//reposición
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
if(in_array($row["ClaveCarrera"] , $arreglo_claves)){
|
|
||||||
//busca yyyy-mm-dd hh:mm:ss en la cadena
|
|
||||||
if (preg_match("/\d{4}-\d{2}-\d{2} de \d{2}:\d{2}:\d{2}/", $row["Observaciones"], $matches)) {
|
|
||||||
$fecha_orig = str_replace(" de", "", $matches[0]);
|
|
||||||
$fecha_nueva = $row["FechaStr"]." ".$row["HoraInicio"];
|
|
||||||
$hora_fin_nueva = $row["HoraFin"];
|
|
||||||
if($debug){
|
|
||||||
echo "<br>SELECT * FROM fi_reposicion_sgu('$fecha_orig', '".$hora_fin_nueva."','".$fecha_nueva."' ,'".$row["ClaveProfesor"]."', ".$per["periodo_id"].", ".$row["IdEspacio"].")";
|
|
||||||
}else{
|
|
||||||
$db->query('SELECT * FROM fi_reposicion_sgu(:fecha_orig, :hora_fin, :fecha_rep, :prof, :per, :salon)',
|
|
||||||
[":fecha_orig"=>$fecha_orig, ":hora_fin"=>$hora_fin_nueva, ":fecha_rep"=>$fecha_nueva, ":prof"=>$row["ClaveProfesor"], ":per"=>$per["periodo_id"], ":salon"=>$row["IdEspacio"] ]);
|
|
||||||
$log_desc .="SELECT * FROM fi_reposicion_sgu($fecha_orig, ".$fecha_nueva.", ".$row["ClaveProfesor"].", ".$per["periodo_id"].") ## ";
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
if($debug)
|
|
||||||
echo "No se encontró fecha y hora en: ".$row["Observaciones"]."<br>";
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
try{
|
try{
|
||||||
if(in_array($row["ClaveCarrera"] , $arreglo_claves)){
|
if(in_array($row["ClaveCarrera"] , $arreglo_claves)){
|
||||||
//busca yyyy-mm-dd hh:mm:ss en la cadena
|
//busca yyyy-mm-dd hh:mm:ss en la cadena
|
||||||
@@ -239,7 +219,6 @@ try{
|
|||||||
}
|
}
|
||||||
}catch(Exception $e){
|
}catch(Exception $e){
|
||||||
echo "ERROR Reposición<br>".$e->getMessage();
|
echo "ERROR Reposición<br>".$e->getMessage();
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -308,13 +287,6 @@ try{
|
|||||||
//Update fecha_fin
|
//Update fecha_fin
|
||||||
$log_desc = "";
|
$log_desc = "";
|
||||||
foreach($elementos_no_en_sgu as $row){
|
foreach($elementos_no_en_sgu as $row){
|
||||||
<<<<<<< HEAD
|
|
||||||
if($debug){
|
|
||||||
echo "<br>SELECT * FROM fu_horario_deshabilita(".$row["horario_id"].");";
|
|
||||||
}else{
|
|
||||||
$db->query('SELECT * FROM fu_horario_deshabilita(:horario)', [":horario"=>$row["horario_id"]]);
|
|
||||||
$log_desc .="SELECT * FROM fu_horario_deshabilita(".$row["horario_id"].") ## ";
|
|
||||||
=======
|
|
||||||
try{
|
try{
|
||||||
if($debug){
|
if($debug){
|
||||||
echo "<br>SELECT * FROM fu_horario_deshabilita(".$row["horario_id"].");";
|
echo "<br>SELECT * FROM fu_horario_deshabilita(".$row["horario_id"].");";
|
||||||
@@ -324,7 +296,6 @@ try{
|
|||||||
}
|
}
|
||||||
}catch(Exception $e){
|
}catch(Exception $e){
|
||||||
echo "ERROR horario deshabilita<br>".$e->getMessage();
|
echo "ERROR horario deshabilita<br>".$e->getMessage();
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!$debug && !empty($log_desc)){
|
if(!$debug && !empty($log_desc)){
|
||||||
|
|||||||
@@ -199,19 +199,6 @@ $periodos = $db
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<script>
|
<script>
|
||||||
<<<<<<< HEAD
|
|
||||||
async function borrarMateria(id) {
|
|
||||||
const url = `https://paad.lci.ulsa.mx/postgrest/materia?materia_id=eq.${id}`;
|
|
||||||
|
|
||||||
const options = {
|
|
||||||
method: 'DELETE',
|
|
||||||
};
|
|
||||||
const response = await fetch(url, options)
|
|
||||||
.then(response => response.json())
|
|
||||||
|
|
||||||
console.log(`Materia borrada: ${id}`);
|
|
||||||
|
|
||||||
=======
|
|
||||||
async function copiar_seleccionados() {
|
async function copiar_seleccionados() {
|
||||||
// en mi clipboard quiero (join con ,)
|
// en mi clipboard quiero (join con ,)
|
||||||
const materias_seleccionadas = Array.from(document.querySelectorAll("input[name='materia_id']:checked"))
|
const materias_seleccionadas = Array.from(document.querySelectorAll("input[name='materia_id']:checked"))
|
||||||
@@ -221,19 +208,15 @@ $periodos = $db
|
|||||||
await navigator.clipboard.writeText(materias_seleccionadas);
|
await navigator.clipboard.writeText(materias_seleccionadas);
|
||||||
// mostrar mensaje de éxito
|
// mostrar mensaje de éxito
|
||||||
alert("Copiado al portapapeles");
|
alert("Copiado al portapapeles");
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<?php foreach ($materias as $materia) { ?>
|
<?php foreach ($materias as $materia) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
<input type="checkbox" name="materia_id" id="materia_id"
|
<input type="checkbox" name="materia_id" id="materia_id"
|
||||||
value="<?= $materia["materia_id"] ?>">
|
value="<?= $materia["materia_id"] ?>">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
<?= $materia["materia_id"] ?>
|
<?= $materia["materia_id"] ?>
|
||||||
<small>
|
<small>
|
||||||
(
|
(
|
||||||
@@ -255,14 +238,6 @@ $periodos = $db
|
|||||||
</small>
|
</small>
|
||||||
<?= $materia["facultad_nombre"] ?>
|
<?= $materia["facultad_nombre"] ?>
|
||||||
</td>
|
</td>
|
||||||
<<<<<<< HEAD
|
|
||||||
<td>
|
|
||||||
<button
|
|
||||||
onclick="borrarMateria(<?= $materia['materia_id'] ?>)">Borrar</button>
|
|
||||||
<button>Editar</button>
|
|
||||||
</td>
|
|
||||||
=======
|
|
||||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user