INDEX:
 <body>
 <table width="902" height="809" border="1">
  <tr>
   <td height="274" colspan="5"><img src="banner.jpg" width="1010" height="331" /></td>

  </tr>

   <tr>
    <td width="254"><div align="center"><strong><a
 href="index.php">Inicio</a></strong></div></td>
   <td width="312"><div align="center"><strong>Consultas</strong></div></td>
   <td width="312"><div align="center"><strong>Contactos</strong></div></td>
   <td width="626"><div align="center"><strong>Noticias</strong></div></td>
   <td width="626"><div align="center"><strong>Mas</strong></div></td>

  <tr>
   <td width="254" height="445">
   <table width="200" height="90" border="0">
  <form method="post" action="menu.php">
    <tr>
     <td width="104">Usuario </td>
     <td width="144"><label for="textfield10"></label>
       <input type="text" name="txtUsser" id="textfield10" /></td>
    </tr>
    <tr>
     <td>Contraseña</td>
     <td><label for="textfield11"></label>
       <input type="text" name="txtPass" id="textfield11" /></td>
    </tr>

    <input type="submit" name="button" id="button" value="Entrar" />
   </form>
   </table>

   <p>&nbsp;</p></td>
   <td width="626" colspan="4">La vida de las instituciones está ligada a las obras de los hombres
 que les dieron origen. Esta verdad se refleja en el testimonio personal que ofrece el
 ingenieroROGER AMURUZ GALLEGOS, Presidente Ejecutivo del Grupo IDAT, y Presidente
 Fundador de la Universidad Tecnológica del Perú, UTP, la más grande e influyente organización
 educativa del país. Al mismo tiempo, la que más ha contribuido en el conocimiento y formación
 de profesionales calificados en las nuevas tecnologías de la información. He aquí la historia
 contada por su principal protagonista.

 Al cumplir IDAT, este 31 de octubre, 25 años de vida institucional, recuerdo que antes de venir a
 Lima, en 1968, cuando me encontraba en cuarto de secundaria, ya tenía e se germen educativo.
 Por entonces tenían 20 alumnos que iban a postular al Instituto Pedagógico de Puerto
 Maldonado, y yo les daba clases preparatorias de Matemáticas.



 En 1980, con una visión mucho más profesional formamos el Instituto Tecnológico IDAT, de
 mando medio, para tres años de estudio con las carreras de Administración y Contabilidad. Este
 instituto era chico hasta 1984, aunque ya teníamos algo más de 400 alumnos. En 1985 se
 introduce en el Perú, en una forma dinámica y masiva, el estudio de la Computación, y así
<?php
session_start();
include("conexion.php");
if(isset($_POST['txtUsser']) && !empty($_POST['txtUsser']) && isset($_POST['txtPass']) &&
!empty($_POST['txtPass']))
{
   $con = mysql_connect($host, $user, $password) or die("Problemas con Server");
         mysql_select_db($db, $con) or die("Ploblemas con BD");
   $seleccion = mysql_query("SELECT Usuario, Clave FROM Registros WHERE Usuario =
'$_POST[txtUsser]'", $con);
   $sesion = mysql_fetch_array($seleccion);
   if($_POST['txtPass'] == $sesion['Clave'])
   {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>

<body background="fondo.jpg" link="#FF0000" vlink="#000091" alink="#FFFF26">
<center>
<table width="800" border="0">
 <tr>
  <td colspan="5"><div align="center"><img src="banner.jpg" width="800" height="250"
/></div></td>
 </tr>
 <tr bgcolor="#808000">
<td width="200"><div align="center"><strong><a
href="index.php">Inicio</a></strong></div></td>
  <td width="200"><div align="center"><strong>Contactos</strong></div></td>
  <td width="200"><div align="center"><strong>Consultas</strong></div></td>
  <td width="200"><div align="center"><strong>Noticias</strong></div></td>
  <td width="200"><div align="center"><strong>Mas</strong></div></td>
 </tr>
 <tr>
        <td colspan="5"> &nbsp;
    <div align="center">
      <table width="200">
        <tr>
         <td colspan="2"><div align="center">
          <h1><strong>Menu</strong></h1>
         </div></td>
        </tr>
        <tr>
         <td align="center"><a href="listado.php"><h2>Administrar</h2></a></td>
        </tr>
        <tr>
         <td align="center"><a href="ver.php"><h2>Consultar</h2></a></td>
        </tr>
      </table>
  &nbsp;
  </div></td>
      </tr>

  <tr bgcolor="#808000">
   <td colspan="5"><div align="center"><strong><em></em></strong></div></td>
  </tr>
</table>
</center>
</body>
</html>
<?Php
   }else{
?>
<script type="text/javascript">
          window.alert("Usuario o Clave incorrecta")
</script>
<?Php
          header("Location : index.php");
   }
}else{
?>
<script type="text/javascript">
          window.alert("Llene los campos")
</script>
<?Php
          header("Location : index.php");
}
?>
CONSULTAR:
<?php
            if(isset($_POST['chkRegistro']))
            {
            include("conexion.php");
                        $conexion = mysql_connect($host, $user, $password) or die("Problemas con Server");
                        mysql_select_db($db, $conexion) or die("Ploblemas con BD");// Selecciona la base de datos
                        $Id=$_POST['chkRegistro'];
                        $sql=mysql_query("SELECT * FROM Matriculas WHERE Id=$Id");
                        $Registro = mysql_fetch_array($sql);
?>
<html>
            <head >
            <title>Actualizar Registros</title>
  </head>

<body text="#000000" background="fondo.jpg">
<center>
 <h1> Actualizar Matricula</h1></center>
<form id="form1" name="form1" method="post" action="actualizar.php">
<table width="35%" border="0" cellpadding="2" cellspacing="2" bgcolor="#999933" align="center">
           <tr>
           <?php echo "<input name='txtId' type='hidden' value='$Registro[0]'>";?>
           </tr>
  <tr>
           <td align="right">Dni</td>
                      <td><?php echo "<input name='txtDni' type='text' size='30' value='$Registro[1]'>";?></td>
           </tr>
  <tr>
           <td align="right">Apellidos</td>
     <td><?php echo "<input name='txtApellidos' type='text' size='30' value='$Registro[2]'>";?></td>
           </tr>
           <tr>
           <td align="right">Nombres</td>
     <td><?php echo "<input name='txtNombres' type='text' size='30' value='$Registro[3]'>";?></td>
           </tr>
  <tr>
           <td align="right">Email</td>
     <td><?php echo "<input name='txtEmail' type='text' size='30' value='$Registro[4]'>";?></td>
           </tr>
  <tr>
           <td align="right">Especialidad</td>
     <td><?php echo "<input name='txtEspecialidad' type='text' size='30' value='$Registro[5]'>";?></td>
           </tr>
  <tr>
           <td align="right">Turno</td>
     <td><?php echo "<input name='txtTurno' type='text' size='30' value='$Registro[6]'>";?></td>
           </tr>
  <tr>
           <td align="right">Semestre</td>
     <td><?php echo "<input name='txtSemestre' type='text' size='30' value='$Registro[7]'>";?></td>
           </tr>
  <tr>
           <td colspan="2" align="center">
           <input type="submit" name="Submit" value="Actualizar" />
                      </td>
           </tr>
</table>
</form>
</body>
</html>
<?Php
           }else{
?>
<script type="text/javascript">
           window.alert("Seleccione un Registro")
</script>
<?Php
                      header("refresh:0; url = listado.php");
           }

?>
ADMINISTRAR
ACTUALIZAR MATRICULA

  <?php
           include("conexion.php");

           $Id=$_POST['txtId'];
           $strDni=$_POST['txtDni'];
           $strApellidos=$_POST['txtApellidos'];
           $strNombres=$_POST['txtNombres'];
           $strEmail=$_POST['txtEmail'];
           $strEspecialidad=$_POST['txtEspecialidad'];
           $strTurno=$_POST['txtTurno'];
           $strSemestre=$_POST['txtSemestre'];


           $conexion = mysql_connect($host, $user, $password) or die("Problemas con Server");
           mysql_select_db($db, $conexion) or die("Ploblemas con BD");// Selecciona la base de datos

           if(isset($strDni) && !empty($strDni) &&
             isset($strApellidos) && !empty($strApellidos) &&
             isset($strNombres) && !empty($strNombres) &&
             isset($strEmail) && !empty($strEmail) &&
             isset($strEspecialidad) && !empty($strEspecialidad) &&
             isset($strTurno) && !empty($strTurno) &&
             isset($strTurno) && !empty($strTurno))
           {
                      $Sql="UPDATE Matriculas SET Dni='$strDni',
                                                                                      Apellidos='$strApellidos',
                                                                                      Nombres='$strNombres',
                                                                                      Email='$strEmail',

  Especialidad='$strEspecialidad',
                                                                                      Turno='$strTurno',
                                                                                      Semestre='$strSemestre'
                                                                                      WHERE Id='$Id'";
                     mysql_query($Sql);
                     header ("Location: listado.php");
           }else{
                     echo "Es necesario que llene todos los campos";

           }
  ?>
Documentacion

Documentacion

  • 1.
    INDEX: <body> <tablewidth="902" height="809" border="1"> <tr> <td height="274" colspan="5"><img src="banner.jpg" width="1010" height="331" /></td> </tr> <tr> <td width="254"><div align="center"><strong><a href="index.php">Inicio</a></strong></div></td> <td width="312"><div align="center"><strong>Consultas</strong></div></td> <td width="312"><div align="center"><strong>Contactos</strong></div></td> <td width="626"><div align="center"><strong>Noticias</strong></div></td> <td width="626"><div align="center"><strong>Mas</strong></div></td> <tr> <td width="254" height="445"> <table width="200" height="90" border="0"> <form method="post" action="menu.php"> <tr> <td width="104">Usuario </td> <td width="144"><label for="textfield10"></label> <input type="text" name="txtUsser" id="textfield10" /></td> </tr> <tr> <td>Contraseña</td> <td><label for="textfield11"></label> <input type="text" name="txtPass" id="textfield11" /></td> </tr> <input type="submit" name="button" id="button" value="Entrar" /> </form> </table> <p>&nbsp;</p></td> <td width="626" colspan="4">La vida de las instituciones está ligada a las obras de los hombres que les dieron origen. Esta verdad se refleja en el testimonio personal que ofrece el ingenieroROGER AMURUZ GALLEGOS, Presidente Ejecutivo del Grupo IDAT, y Presidente Fundador de la Universidad Tecnológica del Perú, UTP, la más grande e influyente organización educativa del país. Al mismo tiempo, la que más ha contribuido en el conocimiento y formación de profesionales calificados en las nuevas tecnologías de la información. He aquí la historia contada por su principal protagonista. Al cumplir IDAT, este 31 de octubre, 25 años de vida institucional, recuerdo que antes de venir a Lima, en 1968, cuando me encontraba en cuarto de secundaria, ya tenía e se germen educativo. Por entonces tenían 20 alumnos que iban a postular al Instituto Pedagógico de Puerto Maldonado, y yo les daba clases preparatorias de Matemáticas. En 1980, con una visión mucho más profesional formamos el Instituto Tecnológico IDAT, de mando medio, para tres años de estudio con las carreras de Administración y Contabilidad. Este instituto era chico hasta 1984, aunque ya teníamos algo más de 400 alumnos. En 1985 se introduce en el Perú, en una forma dinámica y masiva, el estudio de la Computación, y así
  • 2.
    <?php session_start(); include("conexion.php"); if(isset($_POST['txtUsser']) && !empty($_POST['txtUsser'])&& isset($_POST['txtPass']) && !empty($_POST['txtPass'])) { $con = mysql_connect($host, $user, $password) or die("Problemas con Server"); mysql_select_db($db, $con) or die("Ploblemas con BD"); $seleccion = mysql_query("SELECT Usuario, Clave FROM Registros WHERE Usuario = '$_POST[txtUsser]'", $con); $sesion = mysql_fetch_array($seleccion); if($_POST['txtPass'] == $sesion['Clave']) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body background="fondo.jpg" link="#FF0000" vlink="#000091" alink="#FFFF26"> <center> <table width="800" border="0"> <tr> <td colspan="5"><div align="center"><img src="banner.jpg" width="800" height="250" /></div></td> </tr> <tr bgcolor="#808000">
  • 3.
    <td width="200"><div align="center"><strong><a href="index.php">Inicio</a></strong></div></td> <td width="200"><div align="center"><strong>Contactos</strong></div></td> <td width="200"><div align="center"><strong>Consultas</strong></div></td> <td width="200"><div align="center"><strong>Noticias</strong></div></td> <td width="200"><div align="center"><strong>Mas</strong></div></td> </tr> <tr> <td colspan="5"> &nbsp; <div align="center"> <table width="200"> <tr> <td colspan="2"><div align="center"> <h1><strong>Menu</strong></h1> </div></td> </tr> <tr> <td align="center"><a href="listado.php"><h2>Administrar</h2></a></td> </tr> <tr> <td align="center"><a href="ver.php"><h2>Consultar</h2></a></td> </tr> </table> &nbsp; </div></td> </tr> <tr bgcolor="#808000"> <td colspan="5"><div align="center"><strong><em></em></strong></div></td> </tr> </table> </center> </body> </html> <?Php }else{ ?> <script type="text/javascript"> window.alert("Usuario o Clave incorrecta") </script> <?Php header("Location : index.php"); } }else{ ?> <script type="text/javascript"> window.alert("Llene los campos") </script> <?Php header("Location : index.php"); } ?>
  • 5.
    CONSULTAR: <?php if(isset($_POST['chkRegistro'])) { include("conexion.php"); $conexion = mysql_connect($host, $user, $password) or die("Problemas con Server"); mysql_select_db($db, $conexion) or die("Ploblemas con BD");// Selecciona la base de datos $Id=$_POST['chkRegistro']; $sql=mysql_query("SELECT * FROM Matriculas WHERE Id=$Id"); $Registro = mysql_fetch_array($sql); ?> <html> <head > <title>Actualizar Registros</title> </head> <body text="#000000" background="fondo.jpg"> <center> <h1> Actualizar Matricula</h1></center> <form id="form1" name="form1" method="post" action="actualizar.php"> <table width="35%" border="0" cellpadding="2" cellspacing="2" bgcolor="#999933" align="center"> <tr> <?php echo "<input name='txtId' type='hidden' value='$Registro[0]'>";?> </tr> <tr> <td align="right">Dni</td> <td><?php echo "<input name='txtDni' type='text' size='30' value='$Registro[1]'>";?></td> </tr> <tr> <td align="right">Apellidos</td> <td><?php echo "<input name='txtApellidos' type='text' size='30' value='$Registro[2]'>";?></td> </tr> <tr> <td align="right">Nombres</td> <td><?php echo "<input name='txtNombres' type='text' size='30' value='$Registro[3]'>";?></td> </tr> <tr> <td align="right">Email</td> <td><?php echo "<input name='txtEmail' type='text' size='30' value='$Registro[4]'>";?></td> </tr> <tr> <td align="right">Especialidad</td> <td><?php echo "<input name='txtEspecialidad' type='text' size='30' value='$Registro[5]'>";?></td> </tr> <tr> <td align="right">Turno</td> <td><?php echo "<input name='txtTurno' type='text' size='30' value='$Registro[6]'>";?></td> </tr> <tr> <td align="right">Semestre</td> <td><?php echo "<input name='txtSemestre' type='text' size='30' value='$Registro[7]'>";?></td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" name="Submit" value="Actualizar" /> </td> </tr> </table> </form> </body> </html> <?Php }else{ ?> <script type="text/javascript"> window.alert("Seleccione un Registro") </script> <?Php header("refresh:0; url = listado.php"); } ?>
  • 6.
  • 7.
    ACTUALIZAR MATRICULA <?php include("conexion.php"); $Id=$_POST['txtId']; $strDni=$_POST['txtDni']; $strApellidos=$_POST['txtApellidos']; $strNombres=$_POST['txtNombres']; $strEmail=$_POST['txtEmail']; $strEspecialidad=$_POST['txtEspecialidad']; $strTurno=$_POST['txtTurno']; $strSemestre=$_POST['txtSemestre']; $conexion = mysql_connect($host, $user, $password) or die("Problemas con Server"); mysql_select_db($db, $conexion) or die("Ploblemas con BD");// Selecciona la base de datos if(isset($strDni) && !empty($strDni) && isset($strApellidos) && !empty($strApellidos) && isset($strNombres) && !empty($strNombres) && isset($strEmail) && !empty($strEmail) && isset($strEspecialidad) && !empty($strEspecialidad) && isset($strTurno) && !empty($strTurno) && isset($strTurno) && !empty($strTurno)) { $Sql="UPDATE Matriculas SET Dni='$strDni', Apellidos='$strApellidos', Nombres='$strNombres', Email='$strEmail', Especialidad='$strEspecialidad', Turno='$strTurno', Semestre='$strSemestre' WHERE Id='$Id'"; mysql_query($Sql); header ("Location: listado.php"); }else{ echo "Es necesario que llene todos los campos"; } ?>