<?php include_once "../../login/check.php"; if (!empty($_POST)) { include_once "../../class/cursomateria.php"; include_once "../../class/materias.php"; $cursomateria = new cursomateria(); $materias = new materias(); $CodCurso = $_POST['CodCurso']; ?> <option value=""><?php echo $idioma['Seleccionar']; ?> </option><?php if ($CodCurso == "") { $curso = $materias->mostrarMaterias(''); } else { $curso = $cursomateria->mostrarMateriasOrden($CodCurso); } foreach ($curso as $curm) { $ma = array_shift($materias->mostrarMateria($curm['CodMateria'])); ?> <option value="<?php echo $curm['CodMateria']; ?> "><?php echo $ma['Nombre']; ?> </option> <?php }
<?php include_once "../../login/check.php"; if (!empty($_POST)) { include_once "../../class/materias.php"; $materias = new materias(); $materiasAll = $materias->mostrarMaterias("noall"); ?> <select name="materias" size="<?php echo count($materiasAll) + 1; ?> " class="span12"><?php foreach ($materiasAll as $ma) { ?> <option value="<?php echo $ma['CodMateria']; ?> "><?php echo $ma['Nombre']; ?> </option> <?php } ?> </select> <input type="submit" id="guardar" class="btn" value="<?php echo $idioma['Añadir']; ?> >>"/> <?php }
</div> </div> <div class="sortable row-fluid"> <div class="span3"> <div class="box-header"><?php echo $idioma['Materias']; ?> </div> <div class="box-content"> <input type="search" name="sMateria" class="span12" placeholder="<?php echo $idioma['BuscarMateriaPor']; ?> "/> <select name="Materia" class="span12"> <?php foreach ($materia->mostrarMaterias() as $m) { ?> <option value="<?php echo $m['CodMateria']; ?> " ><?php echo $m['Nombre']; ?> </option> <?php } ?> </select> </div> </div>
<?php include_once "../../login/check.php"; include_once "../../class/materias.php"; $materias = new materias(); $mat = $materias->mostrarMaterias('all'); if (count($mat)) { ?> <a href="#" class="btn btn-mini btn-success" id="exportarexcel"><?php echo $idioma['ExportarExcel']; ?> </a> <table class="table table-bordered table-striped table-hover table-condensed"> <thead> <tr> <th><small>N</small></th> <th><small><?php echo $idioma['Nombre']; ?> </small></th> <th><small><?php echo $idioma['Abreviado']; ?> </small></th> <th><small><?php echo $idioma['NombreAlterno']; ?> 1</small></th> <th><small><?php echo $idioma['NombreAlterno']; ?>