예제 #1
0
            <?php 
$i = 0;
foreach ($curso->mostrar() as $cu) {
    $i++;
    ?>
<option value="<?php 
    echo $cu['CodCurso'];
    ?>
" <?php 
    echo $i == 1 || $CodCurso == $cu['CodCurso'] ? 'selected="selected"' : '';
    ?>
 rel="<?php 
    echo $cu['caArea'];
    ?>
"><?php 
    echo eliminarEspaciosDobles($cu['Nombre']);
    ?>
</option><?php 
}
?>
            </select>
        </div>


        <div class="box-header"><h2><i class="icon-user"></i><span class="break"></span><?php 
echo $idioma['Alumnos'];
?>
</h2></div>
        <div class="box-content">
        	<div id="cargandoralumnos"></div>
        	<input type="search" placeholder="<?php 
예제 #2
0
<?php

include_once "../login/check.php";
if (!empty($_POST) && isset($_POST)) {
    $CodCurso = $_POST['CodCurso'];
    if (isset($_POST['CodAlumno'])) {
        $CodAlumno = $_POST['CodAlumno'];
    }
    include_once "../class/tmp_alumno.php";
    $tmp_alumno = new tmp_alumno();
    /*?><option></option><?php*/
    foreach ($tmp_alumno->mostrarDatosAlumnos($CodCurso, 0) as $al) {
        ?>
<option value="<?php 
        echo $al['CodAlumno'];
        ?>
" <?php 
        echo $al['CodAlumno'] == $CodAlumno ? 'selected="selected"' : '';
        ?>
 ><?php 
        echo ucwords(eliminarEspaciosDobles($al['Paterno']));
        ?>
 <?php 
        echo ucwords(eliminarEspaciosDobles($al['Materno']));
        ?>
 <?php 
        echo ucwords(eliminarEspaciosDobles($al['Nombres']));
        ?>
</option> <?php 
    }
}