Viewing file: userinfo.php (2.86 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* UserInfo.php
*
* This page is for users to view their account information
* with a link added for them to edit the information.
*
* Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)
* Last Updated: August 26, 2004
*/
include("include/session.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="noI firefox" xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Editar Cuenta</title>
<!-- Meta Tags -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- CSS -->
<link rel="stylesheet" href="../css/dynamic.css" type="text/css">
<link rel="stylesheet" href="../css/creation.css" type="text/css">
</head><body id="creation">
<?php
/* Requested Username error checking */
$req_user = trim($_GET['user']);
if(!$req_user || strlen($req_user) == 0 ||
!eregi("^([0-9a-z])+$", $req_user) ||
!$database->usernameTaken($req_user)){
die("Usuario no registrado");
}
/* Logged in user viewing own account */
if(strcmp($session->username,$req_user) == 0){
echo "<h1>Mi cuenta</h1>";
}
/* Visitor not viewing own account */
else{
echo "<h1>Información Usuario</h1>";
}
/* Display requested user information */
$req_user_info = $database->getUserInfo($req_user);
?>
<div id="container" class="clearfix">
<img src="../images/sidePlan1.png" alt="" name="sidePlan" width="201" height="479" id="sidePlan">
<div id="nav">
<h1 class="logo color1"><a title="Editar cuenta de Usuario">Wufoo</a></h1>
</div>
<form id="payment" class="wufoo leftLabel plan1" action="process.php" method="post">
<ul class="fundamentals">
<li class="first section">
<h3>Mi Cuenta: !</h3>
<div></div>
</li>
<li class="complex">
<label class="desc" for="email"> Usuario<span class="req"></span>
<strong>Digita el password actual .</strong></label>
<div>
<span class="left">
<label><?php echo "<b>".$req_user_info['username']."</b><br>"; ?></label>
</span></div>
</li>
<li class="complex">
<label class="desc" for="password">Em@il <span class="req">*</span>
<strong>Digita el password nuevo.</strong></label>
<div>
<span class="left">
<label><?php echo "<b>".$req_user_info['email']."</b><br>"; ?></label>
</span></div>
</li>
<li class="buttons">
<div>
<?php if(strcmp($session->username,$req_user) == 0){
echo "<br><a href=\"useredit.php\"></a><br>";
}
/* Link back to main */
echo "<br>Regresar a [<a href=\"../index.php\">Menu principal</a>]<br>";
?></div>
<input type="hidden" name="subedit" value="1">
</li>
</ul>
<!--paymentSummary-->
</form>
<div class="footer">
<i class="c1">·</i>
Copyright © 2010
<i class="c1">·</i><strong>Secretaria de Ambiente </strong><b>.</b>
<i class="c1">·</i>Todos los derechos reservados <i class="c1">·</i></div>
</div><!--container-->
</body></html>
|