Viewing file: index.php (4 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* UserEdit.php
*
* This page is for users to edit their account information
* such as their password, email address, etc. Their
* usernames can not be edited. When changing their
* password, they must first confirm their current password.
*
* Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)
* Last Updated: August 26, 2004
*/
include("../usuarios/include/session.php");
?>
<?php
/**
* User has submitted form without errors and user's
* account has been edited successfully.
*/
if(isset($_SESSION['useredit'])){
unset($_SESSION['useredit']);
echo "<h1>Cuenta editada satisfactoriamente!</h1>";
echo "<p><b>$session->username</b>, tu cuenta ha sido actualizada satisfactoriamente. "
."<a href=\"index.php\">Inicio</a>.</p>";
}
else{
?>
<?php
/**
* If user is not logged in, then do not display anything.
* If user is logged in, then display the form to edit
* account information, with the current email address
* already in the field.
*/
if($session->logged_in){
?>
<?php include("inicio.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Crear Capeta</title>
<style type="text/css">
@import url('assets/css/contact.css');
@import url('assets/css/lay.css');
.style1 {color: #FFFFFF}
</style>
</head>
<body>
<div id="contact">
<div id="top">
<h1>Crear Carpetas</h1>
</div>
<div id="center">
<div id="contact_form">
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="contactForm">
<div class="error" id="error">Ha ocurrido un error en el registro y no se ha podido realizar</div>
<div class="success" id="success">El Registro es Exitoso!<br />Gracias por registrar.</div>
<span class="input">
<label for="name"><b>Nombre:</b> </label>
<input type="text" id="name" name="name" />
<div class="warning" id="nameError">Este campo no puede estar vacio!</div>
</span>
<span class="input">
<label for="sales"><b>Tipo:</b> </label>
<select id="sales" name="sales">
<option value="conceptos">Conceptos</option>
<option value="resoluciones">Autos</option>
<option value="resoluciones">Resoluciones</option>
<option value="directivas">Directivas</option>
<option value="circulares">Circulares</option>
</select>
</span><span class="input">
<label for="security_code"><b>Validación:</b> </label>
<input name="tmptxt" type="text" style="width:100px">
<br> <img src="captcha.php" width="100" height="30">
<div class="warning" id="security_codeError">El codigo de validación no coincide!</div>
</span>
<span class="input">
<input name="action" type="hidden" value="checkdata">
<div class="warning" id="phoneError">Digite solo numeros!</div>
</span>
<span id="submit" class="input">
<label for="submit"></label>
<p id="ajax_loader" style="text-align:center;"><img src="assets/img/contact/ajax-loader.gif" /></p>
<input name="action" type="hidden" value="checkdata">
<input id="send" type="submit" value="CREAR" name="registro" />
<input id="send" onClick="location.href='../index.php'" value=" SALIR" name="SALIR" />
</span>
</form>
</div>
</div>
<div id="bot"><!--bottom--></div>
</div>
<?php
}
}
?>
<div class="footer" align="center">
<i class="c1">·</i>
Copyright © 2011
<i>·</i><strong>Secretaria de Ambiente </strong><b>.</b>
<i>·</i>Todos los derechos reservados <i class="c1">·</i></div>
</body>
</html>
|