All
This commit is contained in:
@@ -88,13 +88,19 @@ if($user->periodo_id!= ""){
|
||||
$repEdo_rs = $db->query('SELECT * FROM fs_estado_reposicion' );
|
||||
|
||||
$repoParams = array();
|
||||
$query = "NULL,";//carrera, prof
|
||||
$query = "NULL,";//jefe carrera
|
||||
/*if($user->jefe_carrera){
|
||||
$query .= ":jefe, ";
|
||||
$repoParams[":jefe"] = $user->user["id"];
|
||||
}else{
|
||||
$query .= "NULL, ";
|
||||
}*/
|
||||
if($user->rol["rol_id"] == 9){//es coordinador
|
||||
$query .= ":facultad, ";
|
||||
$repoParams[":facultad"] = $user->facultad["facultad_id"];
|
||||
}else{//supervisor
|
||||
$query .= "NULL, ";
|
||||
}
|
||||
if((isset($_POST["prof"]) && is_numeric($_POST["prof"])) ){
|
||||
$query .= ":prof,";
|
||||
$repoParams[":prof"] = filter_input(INPUT_POST, "prof", FILTER_SANITIZE_NUMBER_INT);//limpia texto
|
||||
@@ -540,6 +546,7 @@ if($user->periodo_id!= ""){
|
||||
}
|
||||
?>
|
||||
</main>
|
||||
<? include "import/html_footer.php"; ?>
|
||||
</body>
|
||||
|
||||
<?php
|
||||
@@ -605,7 +612,6 @@ if($user->periodo_id!= ""){
|
||||
|
||||
$('#modal_aprobar').on('show.bs.modal', function (event) {
|
||||
var button = $(event.relatedTarget); // Button that triggered the modal
|
||||
console.log("Abre:"+button.data("tipo"));
|
||||
var id = button.parents("tr").data("id");
|
||||
var edo = button.data('tipo');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user