<?php require_once('Connections/conexion.php'); ?>
<?php
$cedula=$_POST["cedula"];
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_Recordset1 = "-1";
if (isset($_GET['cedula'])) {
$colname_Recordset1 = $_GET['cedula'];
}
mysql_select_db($database_conexion, $conexion);
$query_Recordset1 = sprintf("SELECT * FROM docentes WHERE cedula = $cedula", GetSQLValueString($colname_Recordset1, "int"));
$Recordset1 = mysql_query($query_Recordset1, $conexion) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento sin título</title>
</head>
<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><label for="textfield">Cedula</label></td>
<td><input name="textfield" type="text" id="textfield" value="<?php echo $row_Recordset1['cedula']; ?>"></td>
<td><label for="textfield">Nombre</label></td>
<td><input name="textfield" type="text" id="textfield" value="<?php echo $row_Recordset1['nombre']; ?>"></td>
</tr>
<tr>
<td><label for="textfield">Apellido</label></td>
<td><input name="textfield" type="text" id="textfield" value="<?php echo $row_Recordset1['apellido1']; ?>"></td>
<td><label for="textfield">Apellido 2</label></td>
<td><input name="textfield" type="text" id="textfield" value="<?php echo $row_Recordset1['apellido2']; ?>"></td>
</tr>
<tr>
<td><label for="textfield">Email</label></td>
<td><input name="textfield" type="text" id="textfield" value="<?php echo $row_Recordset1['email']; ?>"></td>
<td><label for="textfield">Confirmar Email</label></td>
<td><input type="text" name="textfield" id="textfield"></td>
</tr>
<tr>
<td>Contraseña</td>
<td><input type="text" name="textfield" id="textfield"></td>
<td>Confirmar contraseña</td>
<td><input type="text" name="textfield" id="textfield"></td>
</tr>
<tr>
<td>Departamento</td>
<td><select title="<?php echo $row_Recordset1['departamento']; ?>"></select></td>
<td>Ciudad</td>
<td><select title="<?php echo $row_Recordset1['ciudad']; ?>"></select></td>
</tr>
<tr>
<td>Institucion</td>
<td colspan="3"><select title="<?php echo $row_Recordset1['institucion']; ?>"></select></td>
</tr>
</tbody>
</table>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><label for="textfield">Grado</label></td>
<td><input name="textfield" type="text" id="textfield" value="<?php echo $row_Recordset1['grado']; ?>"></td>
<td><label for="textfield">Area</label></td>
<td><input name="textfield" type="text" id="textfield" value="<?php echo $row_Recordset1['area']; ?>"></td>
<td><label for="textfield">Licencia</label></td>
<td><input name="textfield" type="text" id="textfield" value="<?php echo $row_Recordset1['licencia']; ?>"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><input type="button" name="button" id="button" value="Enviar"></td>
</tr>
</tbody>
</table>
<p> </p>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>