示例#1
0
<?php

include "cabecera.php";
include "BL/area_del_conocimiento_funciones.php";
include "BL/materias_funciones.php";
if (isset($_POST["materia"])) {
    insertar_materia($_POST["materia"], $_GET["malla"]);
    echo "<div align=center><h1>GUARDANDO, ESPERA...\n\t\t<meta http-equiv='Refresh' content='2;url=ficha_malla.php?malla=" . $_GET["malla"] . "'></font></h1></div>";
} else {
    if (isset($_GET["borrar"])) {
        eliminar_materia($_GET["borrar"]);
        echo "<div align=center><h1>Eliminando, ESPERA...\n\t\t<meta http-equiv='Refresh' content='2;url=ficha_malla.php?malla=" . $_GET["malla"] . "'></font></h1></div>";
    }
    $malla = area_consultar('id', $_GET["malla"]);
    $malla = $malla[0];
    echo "<div align=center>";
    echo "<br>";
    echo "<br>";
    echo " <h2>Malla curricular:<span class='blue'>" . $malla["Titulacion"] . "</span></h2>";
    echo "<form name=form action=" . $_SERVER['PHP_SELF'] . "?malla=" . $_GET["malla"] . " method='post'>";
    echo "<table class=tablas>\n\t<tr><th colspan=2><h4>Nueva Materia</th></tr>";
    echo "<tr><th>Materia</th><td><input type='text' name=materia></td></tr>";
    echo "</table><br><input type='submit' value='Guardar'>";
    echo "</form>";
    echo "<br> <br> ";
    echo "<table  class='tablas' cellspacing=1 cellspadding=1 align=center border=2>";
    echo "<tr>   \n\t\t\t<th>Malla Curricular</th>\n\t\t\t<th>opciones</th>\n\t</tr>";
    $resultado = materias_consultar('titulacion', $_GET["malla"]);
    foreach ($resultado as $row) {
        echo "<tr> ";
        echo "<td>" . $row['Materia'] . "</td>";
示例#2
0
<?php

include "cabecera.php";
include "BL/area_del_conocimiento_funciones.php";
if (isset($_POST["malla"])) {
    area_insertar(ucfirst($_POST["malla"]));
    echo "<div align=center><h1>GUARDANDO, ESPERA...\n\t\t<meta http-equiv='Refresh' content='2;url=mallas.php'></font></h1></div>";
} else {
    echo "<div align=center>";
    echo "<form name=form action=" . $_SERVER['PHP_SELF'] . " method='post'>";
    echo "<table class=tablas>\n\t<tr><th colspan=2><h4>Nueva Area del conocimiento</th></tr>";
    echo "<tr><th>Area del conocimiento</th><td><input type='text' name=malla></td></tr>";
    echo "</table><br><input type='submit' value='Guardar'>";
    echo "</form>";
    echo "<br> <br> ";
    echo "<table  class='tablas' cellspacing=1 cellspadding=1 align=center border=2>";
    echo "<tr>   \n\t\t\t<th>Area del conocimiento</th>\n\t\t\t<th>opciones</th>\n\t</tr>";
    $resultado = area_consultar('', '');
    foreach ($resultado as $row) {
        echo "<tr> ";
        echo "<td>" . $row['Titulacion'] . "</td>";
        echo "<td>  <a href=ficha_malla.php?malla=" . $row["id_Titulacion"] . "><img width=20   src=images/pencil.png></a></td>";
        echo "</tr>";
    }
    echo "</table></div>";
}
include "pie.php";