5 include_once("include/session.php");
6 if(isset($_SESSION['regsuccess'])){
7 if($_SESSION['regsuccess']){
8 echo "<h3>Registrado.</h3>";
9 echo "<p><b>'".$_SESSION['reguname']."'</b> ha sido agregado a la base de datos.</p>";
11 echo "<h3>Registro fallido</h3>";
12 echo "<p>Lo sentimos pero el registro para el usuario <b>".$_SESSION['reguname']."</b> a fallado.</p>";
15 unset($_SESSION['regsuccess']);
16 unset($_SESSION['regsuname']);
18 <h3
>Registros de Instructores
</h3
>
20 if($form->num_errors
> 0){
21 echo "$form->num_errors error(s) found";
24 <form action
="process.php" method
="POST">
26 <tr
><td
>Carné
:</td
><td
><input type
="text" name
="user" maxlength
="30" value
="<? echo $form->value("user
"); ?>"></td
><td
><?
echo $form->error("user"); ?
></td
></tr
>
27 <tr
><td
>Clave
:</td
><td
><input type
="password" name
="pass" maxlength
="30" value
="<? echo $form->value("pass
"); ?>"></td
><td
><?
echo $form->error("pass"); ?
></td
></tr
>
28 <tr
><td
>Email
:</td
><td
><input type
="text" name
="email" maxlength
="50" value
="<? echo $form->value("email
"); ?>"></td
><td
><?
echo $form->error("email"); ?
></td
></tr
>
29 <tr
><td
>Nombre
:</td
><td
><input type
="text" name
="nombre" maxlength
="100" value
=""></td
></tr
>
30 <tr
><td
>Encargado
:</td
><td
><input type
="text" name
="encargado" maxlength
="100" value
=""></td
></tr
>
31 <tr
><td
>Catedrático
:</td
><td
><input type
="text" name
="catedratico" maxlength
="100" value
=""></td
></tr
>
35 <option value
="0">Asistente de Catedrático
36 <option value
="1">Asistente de Taller
37 <option value
="2">Encargado de Taller
38 <option value
="3">Instructor de Materia
41 <tr
><td
>Departamento
:</td
>
43 <select name
="departamento">
44 <option value
="0">Dpto
. Electrónica
45 <option value
="1">Dpto
. Informática
48 <tr
><td colspan
="2" align
="right">
49 <input type
="hidden" name
="subjoin" value
="1">
50 <input type
="submit" value
="Registrar"></td
></tr
>