|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/logicswapweb/aplicaciones/admon/clientes/ |
Upload File : |
<?php session_start();
if(!$usr_)
header("Location: ../contenido.php");
$cliente = (array_key_exists('id', $_REQUEST)) ? $_REQUEST['id']: NULL;
$pagina = (array_key_exists('pagina', $_REQUEST)) ? $_REQUEST['pagina']: NULL;
include('fnc/cliente.php');
$usuario = new Cliente();
$valor = $usuario->get_cliente($cliente);
$nombres=ucfirst(strtolower($valor['nombres']));
$apellidos=ucfirst(strtolower($valor['apellidos']));
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Joserodonez.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="js/validaciones.js"></script>
<script>
if (history.forward(1)){location.replace(history.forward(1))}
function fecha(){
var ind = document.getElementById("dia").selectedIndex;
if(ind==0){
alert('Debes seleccionar tu dia de nacimiento!');
document.getElementById("dia").focus();
return false;
}
var ind = document.getElementById("mes").selectedIndex;
if(ind==0){
alert('Debes seleccionar tu mes de nacimiento!');
document.getElementById("mes").focus();
return false;
}
var ind = document.getElementById("anio").value;
if(ind.length<4){
alert('Debes ingresar un a�o valido de tu nacimiento!');
document.getElementById("anio").focus();
return false;
}
var fech = new Date();
var ano = fech.getFullYear();
if(parseInt(ind,10)>ano-10){
alert('Debes ser mayor de 10 a�os de edad para registrarte!');
document.getElementById("anio").focus();
return false;
}
return true;
}
function frm_Submit() {
if (!validar_email(frm1.email.value)) {
frm1.email.focus();
alert('Debes ingresar un mail valido !');
return false;
}
var temp = frm1.nombres.value.length;
if (frm1.nombres.value.length<4 || temp==undefined) {
frm1.nombres.focus();
alert('Debes ingresar por lo menos un nombre, y sin espacios al comienzo !');
return false;
}
if (!sin_espacios_inicial(frm1.nombres.value)) {
frm1.nombres.focus();
alert('Debes ingresar un nombre sin espacios al comienzo !');
return false;
}
temp = frm1.nombres.value.length;
if (frm1.apellidos.value.length<4 ) {
frm1.apellidos.focus();
alert('Debes ingresar por lo menos un apellido, y sin espacios al comienzo !');
return false;
}
if (!sin_espacios_inicial(frm1.apellidos.value)){
frm1.apellidos.focus();
alert('Debes ingresar un apellido sin espacios al comienzo !');
return false;
}
if(!fecha()){
return false;
}
if(!confirm("Confirma que desea modificar los datos de este usuario!")){
return false;
}
return true;
}
</script>
<link href="css/fuentes.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="546" border="0" cellpadding="0" cellspacing="1" align="left">
<tr valign="top" bgcolor="#FFFFFF">
<td width="100%" height="30" bgcolor="#F9F9F9"><div align="left" class="vinculo"><a href="../contenido.php" style="width: 40; cursor:hand" title="Indice de Aplicaciones">Beginning</a> | <a href="index.php">Usuarios Web </a> | <span class="nombreColum_red">Modificar Usuario</span></div></td>
</tr>
<tr>
<td colspan="3" valign="top">
<table cellpadding="0" cellspacing="1" bordercolor="#0099cc" bgcolor="#0099cc" width="100%">
<tr>
<td class="nombreColum"><span class="filatitulo"><a onClick="javascript: document.location.href= 'index.php?ini_line=<?=$pagina?>'" title="Volver" style="cursor:hand; width:40"><img src="../img/atras.gif" style="cursor:hand "></a> </span>Datos del
Usuario <?=$nombres." ".$apellidos?> </td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff">
<tr>
<td width="30%" valign="top"><div align="left"> </div></td>
<td width="70%" align="right"><font color="#0099CC" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong></strong></font></td>
</tr>
<form action="fnc/main.php" method="post" enctype="multipart/form-data" name="frm1" id="frm1" onSubmit="return frm_Submit();" target="_fraUsr">
<tr>
<td valign="top"><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> <strong>Nombres</strong></font></div></td>
<td><input name="nombres" type="text" size="40" maxlength="150" value="<?=$nombres?>"></td>
</tr>
<tr>
<td valign="top"><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> <strong>Apellidos</strong> </font></div></td>
<td><input name="apellidos" type="text" id="apellidos" size="40" maxlength="150" value="<?=$apellidos?>"></td>
</tr>
<tr>
<td valign="top"><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> <strong>e-mail</strong></font></div></td>
<td><input name="email" type="text" id="email" onKeyPress="return restringir(event, 32);" size="40" maxlength="150" value="<?=$valor['email']?>"></td>
</tr>
<tr>
<td valign="top"><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> <strong>Fecha de Nacimiento</strong></font></div></td>
<td><select name="dia" id="dia">
<option value="00">Dia</option>
<? for($i=1;$i<=31;$i++){
if(substr($valor['fecha_nmto'],8)=="$i"){
echo "<option value=\"$i\" selected>$i</option>";
}else{
echo "<option value=\"$i\">$i</option>";
}
}
?>
</select>
<select name="mes" id="mes">
<option value="00">Mes</option>
<option value="1" <? if(substr(substr($valor['fecha_nmto'],5),0,2)==1) echo "selected";?> >Enero</option>
<option value="2"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==2) echo "selected";?>>Febrero</option>
<option value="3"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==3) echo "selected";?>>Marzo</option>
<option value="4"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==4) echo "selected";?>>Abril</option>
<option value="5"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==5) echo "selected";?>>Mayo</option>
<option value="6"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==6) echo "selected";?>>Junio</option>
<option value="7"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==7) echo "selected";?>>Julio</option>
<option value="8"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==8) echo "selected";?>>Agosto</option>
<option value="9"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==9) echo "selected";?>>Septiembre</option>
<option value="10"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==10) echo "selected";?>>Octubre</option>
<option value="11"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==11) echo "selected";?>>Noviembre</option>
<option value="12"<? if(substr(substr($valor['fecha_nmto'],5),0,2)==12) echo "selected";?>>Diciembre</option>
</select>
<input name="anio" type="text" id="anio" style="text-align:center " size="6" maxlength="4" onKeyPress="return solo_numeros(event);" value="<?=substr($valor['fecha_nmto'],0,4)?>">
<span class="style11">(ej:1975)</span>
<input name="tarea" type="hidden" id="tarea" value="mod_cliente">
</td>
</tr>
<tr>
<td valign="top"><font size="2" face="Arial, Helvetica, sans-serif"> <strong>Teléfono</strong></font></td>
<td><input name="telefono" type="text" id="telefono" onKeyPress="return solo_numeros(event);" size="40" maxlength="20" value="<?=$valor['telefono']?>"></td>
</tr>
<tr>
<td valign="top"><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> <strong>Dirección</strong></font></div></td>
<td><input name="direccion" type="text" id="direccion" size="40" maxlength="200" value="<?=$valor['direccion']?>"></td>
</tr>
<tr>
<td valign="top"><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> <strong>Ciudad</strong></font></div></td>
<td><input name="ciudad" type="text" id="ciudad" size="40" maxlength="100" value="<?=$valor['ciudad']?>"></td>
</tr>
<tr>
<td valign="top"><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> <strong>Pais</strong></font></div></td>
<td><input name="pais" type="text" id="pais" size="40" maxlength="100" value="<?=$valor['pais']?>"></td>
</tr>
<tr>
<td valign="top"><div align="left"><font size="2" face="Arial, Helvetica, sans-serif"> </font></div></td>
<td><iframe name="_fraUsr" height="0" width="0" src=""></iframe></td>
</tr>
<tr align="center">
<td colspan="3"><input type="submit" name="enviar" value="Modificar" class="buttonverde"> <input type="button" onClick = "javascript: document.location.href ='index.php?ini_line=<?=$pagina?>'" name="volver" value="Cancelar" class="buttonverde">
<input type="hidden" name="pagina" value="<?=$pagina?>">
<input type="hidden" name="cliente" value="<?=$cliente?>">
</td>
</tr>
</form>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>