document.forms[form]['result'].value = t-n; } } </script> <div class="container"> <div class="page-header"> <h2>SMS <small> Envío de mensajes</small></h2> <?php if (strlen($unidad) > 1) { $t0 = mysqli_query($db_con, "select Tutor from FTUTORES where unidad='{$unidad}'"); if (mysqli_num_rows($t0) > 0) { $t1 = mysqli_fetch_row($t0); ?> <h4 class="text-info">Tutor/a: <?php echo nomprofesor($t1[0]); ?> </h4> <?php } ?> <h4 class="text-info">Grupo: <?php echo $unidad; ?> </h4> <?php } ?> </div> <br> <div class="row">
<thead> <tr> <th>Profesor</th><th width="62">Número</th> </tr> </thead> <tbody> <?php $tot0 = ''; $tot1 = mysqli_query($db_con, "create table fech_temp select informa, count(*) as numeros from {$b_d}.Fechoria group by informa"); $tot0 = mysqli_query($db_con, "select informa, numeros from {$b_d}.fech_temp order by numeros desc"); while ($total0 = mysqli_fetch_array($tot0)) { ?> <tr> <td><?php echo nomprofesor($total0[0]); ?> </td> <td> <?php echo $total0[1]; ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php
<tr> <th class="col-sm-4">Asignatura</th> <th class="col-sm-8">Profesor/a</th> </tr> </thead> <tbody> <?php while ($row = mysqli_fetch_array($result)) { ?> <tr> <td><?php echo $row[0]; ?> </td> <td><?php echo nomprofesor($row[1]); ?> </td> </tr> <?php } ?> <?php mysqli_free_result($result); ?> </tbody> </table> </div> <?php } ?>
<a href="//<?php echo $config['dominio']; ?> /intranet/admin/noticias/noticia.php?id=<?php echo $row['id']; ?> "><?php echo $row['slug']; ?> </a> </h5> <p> <small> <span class="fa fa-user fa-fw"></span> <?php echo nomprofesor($profesor); ?> · <span class="fa fa-clock-o fa-fw"></span> <?php echo strftime('%e %b, %H:%M', strtotime($row['timestamp'])); ?> h · <span class="fa fa-tag fa-fw"></span> <?php echo $row['clase'] ? $row['clase'] : 'Sin categoría'; ?> </small> </p> </div> <?php }
<div class="form-group"> <?php $result = mysqli_query($db_con, "SELECT DISTINCT prof FROM horw WHERE prof NOT LIKE '' ORDER BY prof ASC"); ?> <?php if (mysqli_num_rows($result)) { ?> <select class="form-control" id="profeso" name="profeso"> <?php while ($row = mysqli_fetch_array($result)) { ?> <option value="<?php echo $row['prof']; ?> "><?php echo nomprofesor($row['prof']); ?> </option> <?php } ?> </select> <?php } else { ?> <select class="form-control" id="profeso" name="profeso" disabled></select> <?php } ?> <?php mysqli_free_result($result);
?> <?php if (empty($profesor)) { echo '<div align="center">'; echo '<legend>Selecciona un profesor</legend>'; if ($_POST['submit']) { $continuar = ""; } echo "<div class='form-group col-md-10 col-md-offset-1'>\n<SELECT name='profesor' id='idprofe' onChange='submit()' class='form-control'>"; echo "<OPTION>"; echo "</OPTION>"; // Datos del Profesor que hace la consulta. No aparece el nombre del año de la nota. Se podría incluir. $profe = mysqli_query($db_con, "SELECT distinct prof, no_prof FROM horw order by prof asc"); while ($filaprofe = mysqli_fetch_array($profe)) { $n_p += 1; echo '<OPTION value="' . $filaprofe[1] . '_ ' . $filaprofe[0] . '">' . $filaprofe[1] . '_ ' . nomprofesor($filaprofe[0]) . '</OPTION>'; } echo "</select></div>"; echo "</div>"; } ?> <?php if (isset($registro)) { echo '<div align="left""><div class="alert alert-success alert-block fade in"> <button type="button" class="close" data-dismiss="alert">×</button> Las Faltas de Asistencia han sido registradas. </div></div>'; } if (isset($mens1)) { echo '<div align="left""><div class="alert alert-danger alert-block fade in"> <button type="button" class="close" data-dismiss="alert">×</button>' . $mens1 . '</div></div>';
if (isset($_POST['profeso'])) { $profeso = $_POST['profeso']; } elseif (isset($_GET['profeso'])) { $profeso = $_GET['profeso']; } else { $profeso = ""; } $profe = explode(", ", $profeso); include "../../menu.php"; ?> <div class="container"> <!-- TITULO DE LA PAGINA --> <div class="page-header"> <h2><?php echo nomprofesor($profe[1] . ' ' . $profe[0]); ?> <small>Consulta de horario</small></h2> </div> <!-- SCAFFOLDING --> <div class="row"> <div class="col-sm-12"> <div class="table-responsive"> <table class="table table-bordered table-striped"> <thead> <tr> <th> </th> <th>Lunes</th>
?> <?php while ($row2 = mysqli_fetch_array($result2)) { ?> <?php $grupo .= "<abbr class='text-warning'>" . $row2['a_grupo'] . "<abbr> "; ?> <?php } ?> <?php $asignatura = $row['asig']; ?> <?php $profesor .= nomprofesor($row['prof']) . "<br>"; ?> <?php } ?> <?php $profesor = substr($profesor, 0, -4); ?> <?php echo "<span class='text-danger'>{$asignatura}</span><br><span class='text-info'>{$profesor}</span><br>{$grupo}"; ?> </td> <?php } ?>
"><?php echo strlen($row['slug']) > 60 ? substr($row['slug'], 0, 60) . '...' : $row['slug']; ?> </a></td> <td><a class="link-msg" href="noticia.php?id=<?php echo $row['id']; ?> "><?php echo strftime('%d-%m-%G', strtotime($row['timestamp'])); ?> </a></td> <td><a class="link-msg" href="noticia.php?id=<?php echo $row['id']; ?> "><?php echo nomprofesor($row['contact']); ?> </a></td> <td class="text-center"> <span class="fa <?php echo strstr($row['pagina'], '1') == TRUE ? 'fa-check-square-o' : 'fa-square-o'; ?> fa-lg" data-bs="tooltip" title="<?php echo strstr($row['pagina'], '1') == TRUE ? 'Publicada en la intranet' : 'No publicada en la intranet'; ?> "></span> </td> <td class="text-center"> <span class="fa <?php echo strstr($row['pagina'], '2') == TRUE ? 'fa-check-square-o' : 'fa-square-o'; ?>
<div <?php echo $row_mens['recibidoprofe'] == 0 ? 'class="text-warning"' : ''; ?> > <?php $result_dest = mysqli_query($db_con, "SELECT nombre FROM departamentos WHERE idea='" . $row_mens['origen'] . "' LIMIT 1"); ?> <?php $row_dest = mysqli_fetch_array($result_dest); ?> <span class="pull-right text-muted"><em><?php echo strftime('%e %b', strtotime($row_mens['ahora'])); ?> </em></span> <strong><?php echo nomprofesor($row_dest['nombre']); ?> </strong> </div> <div <?php echo $row_mens['recibidoprofe'] == 0 ? 'class="text-warning"' : ''; ?> > <?php echo substr($row_mens['asunto'], 0, 96); ?> </div> </a> </li> <li class="divider"></li> <?php
$nom_dia = 'Lunes'; } if ($nu_dia == '2') { $nom_dia = 'Martes'; } if ($nu_dia == '3') { $nom_dia = 'Miércoles'; } if ($nu_dia == '4') { $nom_dia = 'Jueves'; } if ($nu_dia == '5') { $nom_dia = 'Viernes'; } $fecha_sp = formatea_fecha($h_hoy[4]); echo "<tr><td>" . nomprofesor($h_hoy[2]) . "</td><td >{$fecha_sp}</td><td >{$nom_dia}</td><td >{$h_hoy['3']}</td><td ><a href='guardias_admin.php?id={$h_hoy['0']}&borrar=1&profeso={$profeso}' data-bb='confirm-delete'><i class='fa fa-trash-o fa-fw fa-lg' title='Borrar' > </i></a>"; } echo "</table><br>"; } else { echo '<div align="center"><div class="alert alert-warning alert-block fade in"> <button type="button" class="close" data-dismiss="alert">×</button> <h5>ATENCIÓN:</h5> No hay datos sobre las Guardias del profesor. </div></div>'; } } ?> </div> </div> </div>
$bgcolor = "class='expulsion-centro'"; } if ($recibido == '1') { $comentarios1 = "<i class='fa fa-check' data-bs='tooltip' title='El Tutor ha recibido la notificación.'> </i>"; } elseif ($recibido == '0' and ($grave == 'grave' or $grave == 'muy grave' or $expulsionaula == '1' or $expulsion > '0' or $aula_conv > '0')) { $comentarios1 = "<i class='fa fa-exclamation-triangle' data-bs='tooltip' title='El Tutor NO ha recibido la notificación.'> </i>"; } else { $comentarios1 = ""; } echo "<tr>\n\t\t<td>"; $foto = "<span class='fa fa-user fa-fw fa-3x'></span>"; if (file_exists('../../xml/fotos/' . $claveal . '.jpg')) { $foto = "<img src='../../xml/fotos/{$claveal}.jpg' width='50'>"; } echo $foto . "</td>"; echo "<td>{$rowalumno}</td>\n\t\t<td>{$rowcurso}</td>\n\t\t<td nowrap>{$fecha}</td>\n\t\t<td>{$asunto}</td>\n\t\t<td>" . nomprofesor($informa) . "</td>\n\t\t<td {$bgcolor}>{$grave}</td>\n\t\t<td><center>{$rownumero}</center></td>\n\t\t<td>{$caducada}</td>\n\t\t<td nowrap>{$comentarios1} {$comentarios}</td><td nowrap>"; echo " <a href='detfechorias.php?id={$id}&claveal={$claveal}'><span class='fa fa-search fa-fw fa-lg' data-bs='tooltip' title='Detalles'></span></a>\n\t\t<a href='lfechorias2.php?clave={$claveal}'><span class='fa fa-history fa-fw fa-lg' data-bs='tooltip' title='Historial'></span></a>\n\t\t"; $ahora = mktime(); $tr_f = explode("-", $fecha); $antes = mktime(0, 0, 0, $tr_f[1], $tr_f[2], $tr_f[0]) + 172800; if ($_SESSION['profi'] == $row[6] or stristr($_SESSION['cargo'], '1') == TRUE) { if ($ahora < $antes) { echo "<a href='infechoria.php?id={$id}&nombre={$claveal}'><span class='fa fa-edit fa-fw fa-lg' data-bs='tooltip' title='Editar'></span></a>"; } echo "<a href='lfechorias.php?id= {$row['9']}&borrar=1' data-bb='confirm-delete'><span class='fa fa-trash-o fa-fw fa-lg' data-bs='tooltip' title='Eliminar'></span></a>"; } echo "</td>\n\t\t<td>"; //echo "$expulsion > $expulsionaula"; if (stristr($_SESSION['cargo'], '1')) { echo "<input type='checkbox' name='{$id}' value='1' {$marca} onChange='submit()' />"; }
if (!file_exists('../../xml/fotos/' . $row->CLAVEAL . '.jpg')) { $foto = "<span class=\"fa fa-user fa-3x fa-fw\"></span>"; } else { $foto = "<img src='../../xml/fotos/" . $row->CLAVEAL . ".jpg' width='55' height='64' />"; } echo $foto . " "; echo stripslashes($row->APELLIDOS) . " " . stripslashes($row->NOMBRE) . "</TD>\n <TD style='vertical-align:middle'>" . stripslashes($row->unidad) . "</TD>\n <TD style='vertical-align:middle'>{$row->FECHA}</TD><TD style='vertical-align:middle'>{$si}</TD><TD style='vertical-align:middle'>{$no}</TD><TD style='vertical-align:middle'>{$bola}</TD>"; echo "<td style='vertical-align:middle'><div class='btn-group'><a href='infocompleto.php?id={$row->ID}' class='btn btn-primary btn-mini'><i class='fa fa-search ' title='Ver Informe'> </i></a>"; $result0 = mysqli_query($db_con, "select tutor from FTUTORES where unidad = '{$row->unidad}'"); $row0 = mysqli_fetch_array($result0); $tuti = $row0[0]; if (stristr($_SESSION['cargo'], '1') == TRUE || nomprofesor($tuti) == nomprofesor($_SESSION['profi'])) { echo "<a href='informar.php?id={$row->ID}' class='btn btn-primary btn-mini'><i class='fa fa-pencil-square-o ' title='Rellenar Informe'> </i> </a>"; echo "<a href='borrar_informe.php?id={$row->ID}&del=1' class='btn btn-primary btn-mini' data-bb='confirm-delete'><i class='fa fa-trash-o ' title='Borrar Informe' > </i> </a>"; } else { $result_profe = mysqli_query($db_con, "SELECT materia FROM profesores WHERE profesor='" . nomprofesor($_SESSION['profi']) . "' and grupo = '" . stripslashes($row->unidad) . "'"); if (mysqli_num_rows($result_profe) && date('Y-m-d') <= $row->FECHA) { echo "<a href='informar.php?id={$row->ID}' class='btn btn-primary btn-mini'><i class='fa fa-pencil-square-o ' title='Rellenar Informe'> </i> </a>"; } } echo '</div></td></tr>'; } echo "</tbody></table><br />"; } else { echo '<div align="center"><div class="alert alert-warning alert-block fade in"> <button type="button" class="close" data-dismiss="alert">×</button> No hay Informes de Tareas disponibles con esos criterios.</div></div><hr>'; } ?> </div> </div>
<label for="tutor">Tutores/as de grupo</label> <?php $result = mysqli_query($db_con, "SELECT DISTINCT unidad, tutor FROM FTUTORES ORDER BY unidad ASC"); ?> <?php if (mysqli_num_rows($result)) { ?> <select class="form-control" id="tutor" name="tutor"> <?php while ($row = mysqli_fetch_array($result)) { ?> <option value="<?php echo $row['tutor'] . ' ==> ' . $row['unidad']; ?> "><?php echo $row['unidad'] . ' - ' . nomprofesor($row['tutor']); ?> </option> <?php } ?> </select> <?php } else { ?> <select class="form-control" id="tutor" name="tutor" disabled> <option value=""></option> </select> <?php } ?>
<fieldset> <legend>Destinatarios</legend> <?php $result = mysqli_query($db_con, "SELECT recibidoprofe, profesor from mens_profes where id_texto = '{$id}'"); $destinatarios = ''; while ($destinatario = mysqli_fetch_array($result)) { // Profesor $query = mysqli_query($db_con, "select nombre from departamentos where idea = '{$destinatario['1']}'"); if (mysqli_num_rows($query) > 0) { $row = mysqli_fetch_array($query); $nom_profesor = $row[0]; if ($destinatario[0] == '1') { $destinatarios .= '<span class="text-success">' . nomprofesor($nom_profesor) . '</span> | '; } else { $destinatarios .= '<span class="text-danger">' . nomprofesor($nom_profesor) . '</span> | '; } } else { $query2 = mysqli_query($db_con, "select nombre, apellidos from alma where claveal = '{$destinatario['1']}'"); $row2 = mysqli_fetch_array($query2); $nom_alumno = $row2[0] . " " . $row2[1]; if ($destinatario[0] == '1') { $destinatarios .= '<span class="text-success">' . $nom_alumno . '</span> | '; } else { $destinatarios .= '<span class="text-danger">' . $nom_alumno . '</span> | '; } } } echo trim($destinatarios, ' | '); ?> </fieldset>
?> <div class="table-responsive" style="height: 350px; overflow: scroll;"> <table class="table table-condensed table-hover table-striped"> <thead> <tr> <th>Profesor/a</th> <th style="width:20%">No leídos</th> </tr> </thead> <tbody> <?php while ($row = mysqli_fetch_array($result)) { ?> <tr style="font-size: 0.9em;"> <td nowrap><?php echo nomprofesor($row['nombre']); ?> </td> <td><?php echo $row['num']; ?> <a href='index.php?resetea_mensaje=1&idea_mensaje=<?php echo $row['profesor']; ?> '><i class='fa fa-refresh pull-right' data-bs='tooltip' title='Marcar todos los mensajes como leídos'> </i></a></td> </tr> <?php } ?> </tbody> </table>
$nulo = mysqli_num_rows($vacio); if ($nulo > 0) { $bola = "<i class='fa fa-check' title='confirmado' />"; } else { $bola = "<i class='fa fa-exclamation-triangle' title='No confirmado' />"; } echo "<tr><td nowrap style='vertical-align:middle'>"; $foto = ""; $foto = "<img src='../../xml/fotos/" . $row->CLAVEAL . ".jpg' width='55' height='64' />"; echo $foto . " "; echo "{$row->APELLIDOS} {$row->NOMBRE}</TD>\n <TD style='vertical-align:middle'>{$row->UNIDAD}</TD>\n <TD style='vertical-align:middle'>{$row->FECHA}</TD><TD style='vertical-align:middle'>{$si}</TD><TD style='vertical-align:middle'>{$no}</TD><TD style='vertical-align:middle'>{$bola}</TD>"; echo "<td style='vertical-align:middle'><div class='btn-group'><a href='infocompleto.php?id={$row->ID}' class='btn btn-primary btn-mini'><i class='fa fa-search ' title='Ver Informe'> </i></a>"; $result0 = mysqli_query($db_con, "select tutor from FTUTORES where unidad = '{$row->unidad}'"); $row0 = mysqli_fetch_array($result0); $tuti = $row0[0]; if (stristr($_SESSION['cargo'], '1') == TRUE || nomprofesor($tuti) == nomprofesor($_SESSION['profi'])) { echo "<a href='informar.php?id={$row->ID}' class='btn btn-primary btn-mini'><i class='fa fa-pencil-square-o ' title='Rellenar Informe'> </i> </a>"; echo "<a href='borrar_informe.php?id={$row->ID}&del=1' class='btn btn-primary btn-mini' data-bb='confirm-delete'><i class='fa fa-trash-o ' title='Borrar Informe' > </i> </a> \t"; } echo '</div></td></tr>'; } echo "</tbody></table><br />"; } else { echo '<div align="center"><div class="alert alert-warning alert-block fade in"> <button type="button" class="close" data-dismiss="alert">×</button> No hay Informes de Tareas disponibles con esos criterios.</div></div><hr>'; } ?> </div> </div> </div>
<th> Profesor </th> <th> # </th> <th> # </th> </thead> <?php $query_reg = mysqli_query($db_con, $sql_reg); while ($arr_reg = mysqli_fetch_array($query_reg)) { $sql1 = mysqli_query($db_con, "SELECT prof\nFROM `horw` \nWHERE c_asig = '25' and prof = '{$arr_reg['0']}'"); $num_gu = mysqli_num_rows($sql1); echo "<tr><td>" . nomprofesor($arr_reg[0]) . "</td><td class='col-sm-2' nowrap>{$arr_reg['1']} </td><td class='col-sm-2 text-muted' nowrap>{$num_gu}</td></tr>"; $num_gureg += $arr_reg[1]; $num_profreg += 1; } echo "</table>"; echo "</table>"; $media_reg = substr($num_gureg / $num_profreg, 0, 4); echo '<br /><table class="table table-striped table-bordered" align="center">'; echo "<tr><td class='text-info'><strong>Guardias totales en Aulas</strong></td><td class='text-warning'><strong>{$num_gureg}</strong></td></tr>"; echo "<tr><td class='text-info'><strong>Media de Guardias por Profesor</strong></td><td class='text-warning'><strong>{$media_reg}</strong></td></tr>"; echo "</table>"; ?> </div> </div>
<?php if (empty($profesor)) { ?> <div class="row"> <div class="col-md-4"></div> <div class="col-md-4"> <?php echo "<legend align='center'>Selecciona Tutor</legend>"; ?> <?php echo "<div class='form-group col-md-12'> \n<SELECT name='profesor' onchange='submit()' class='form-control'>\n <OPTION></OPTION>"; // Datos del Profesor que hace la consulta. No aparece el nombre del año de la nota. Se podría incluir. $profe = mysqli_query($db_con, "SELECT TUTOR FROM FTUTORES order by TUTOR asc"); if ($filaprofe = mysqli_fetch_array($profe)) { do { $opcion1 = printf('<OPTION value="' . $filaprofe[0] . '">' . nomprofesor($filaprofe[0]) . '</OPTION>'); echo "{$opcion1}"; } while ($filaprofe = mysqli_fetch_array($profe)); } echo "</select>\n </div>"; ?> </div> </div> </div> </div> </div> <?php } else { if (empty($today)) { $year = date("Y"); $month = date("m");
} } include "../../menu.php"; include "menu.php"; ?> <div class="container"> <!-- TITULO DE LA PAGINA --> <div class="page-header"> <h2>Tutoría de <?php echo $_SESSION['mod_tutoria']['unidad']; ?> <small>Resumen de la unidad</small></h2> <h4 class="text-info">Tutor/a: <?php echo nomprofesor($_SESSION['mod_tutoria']['tutor']); ?> </h4> </div> <!-- SCAFFOLDING --> <div class="row"> <div class="col-sm-12"> <?php include "inc_pendientes.php"; ?> </div>
<?php $grupo = ""; $asignatura = ""; $profesor = ""; ?> <?php while ($row = mysqli_fetch_array($result)) { ?> <?php $grupo .= "<abbr class='text-warning'>" . $row['a_grupo'] . "<abbr> "; ?> <?php $asignatura = $row['asig']; ?> <?php $profesor = nomprofesor($row['prof']); ?> <?php } ?> <?php echo "<span class='text-danger'>{$asignatura}</span><br><span class='text-info'>{$profesor}</span><br>{$grupo}"; ?> </td> <?php } ?> </tr> <?php } ?>