2 function CONTENIDO_usuario_registrar(){
4 if($_SESSION['post-post']) {
5 if($_SESSION['regsuccess']){
6 echo "<h3>Registrado.</h3>";
7 echo "<p><b>'".$_SESSION['reguname']."'</b> ha sido agregado a la base de datos.</p>";
9 echo "<h3>Registro fallido</h3>";
10 echo "<p>Lo sentimos pero el registro para el usuario <b>".$_SESSION['reguname']."</b> a fallado.</p>";
12 $_SESSION['post-post'] = false;
15 <h3
>Registros de Instructores
</h3
>
17 if($form->num_errors
> 0){
18 echo "$form->num_errors error(s) found";
21 <form action
="process.php" method
="POST">
23 <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
>
24 <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
>
25 <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
>
26 <tr
><td
>Nombre
:</td
><td
><input type
="text" name
="nombre" maxlength
="100" value
=""></td
></tr
>
27 <tr
><td
>Encargado
:</td
><td
><input type
="text" name
="encargado" maxlength
="100" value
=""></td
></tr
>
28 <tr
><td
>Catedrático
:</td
><td
><input type
="text" name
="catedratico" maxlength
="100" value
=""></td
></tr
>
32 <option value
="0">Asistente de Catedrático
33 <option value
="1">Asistente de Taller
34 <option value
="2">Encargado de Taller
35 <option value
="3">Instructor de Materia
38 <tr
><td
>Departamento
:</td
>
40 <select name
="departamento">
41 <option value
="0">Dpto
. Electrónica
42 <option value
="1">Dpto
. Informática
45 <tr
><td colspan
="2" align
="right">
46 <input type
="hidden" name
="subjoin" value
="1">
47 <input type
="submit" value
="Registrar"></td
></tr
>