Location: PHPKode > projects > O - OpenSource GroupWare > osgw/users/user_info.php
<?php
/**************************************************************************
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   @Authors:	Ryan Thompson(hide@address.com)
***************************************************************************/

include("./data.php");
$service['add_header'] = TRUE;
include("../config.inc.php");
include($here. "/class.preferences.php");
$prefs = new preferences;
echo $layout->page_header;
echo $layout->service_header($text['service_name'], $prefs->nav_buttons(), $text['user_information']);

if(isset($_POST['update_user_info']))
{
	if($user->update_user_data($_POST))
	{
		echo $updated_user_data;
	}
}

$sql = "SELECT * FROM o_users WHERE user_id='". $user->user_id ."'";
$db->query($sql);
$db->fetch_results();
?>
<br />
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
<table style="width:500px" align="center" border="0" class="light" cellpadding="2" cellspacing="0">
<tr>
<td class="input_header" width="35%">User ID:</td>
<td> <?php echo $db->record['user_id'];?></td>
</tr><tr>
<td class="input_header">Username:</td>
<td> <?php echo $db->record['username'];?></td>
</tr><tr>
<td class="input_header">First Name:</td>
<td><input type="text" id="dark" name="firstname" value="<?php echo $db->record['firstname'];?>" size="25"></td>
</tr><tr>
<td class="input_header">Last Name:</td>
<td><input type="text" name="lastname" value="<?php echo $db->record['lastname'];?>" size="25"></td>
</tr><tr>
<td class="input_header">Email Address:</td>
<td><input type="text" name="email" value="<?php echo $db->record['email'];?>" size="50"></td>
</tr><tr>
<td class="input_header">Website:</td>
<td><input type="text" name="website" value="<?php echo $db->record['website'];?>" size="50"></td>
</tr><tr>
<td class="input_header">ICQ:</td>
<td><input type="text" name="icq" value="<?php echo $db->record['icq'];?>" size="11"></td>
</tr><tr>
<td class="input_header">MSN:</td>
<td><input type="text" name="msn" value="<?php echo $db->record['msn'];?>" size="11"></td>
</tr><tr>
<td class="input_header">Yahoo:</td>
<td><input type="text" name="yahoo" value="<?php echo $db->record['yahoo'];?>" size="11"></td>
</tr><tr>
<td class="input_header">AIM:</td>
<td><input type="text" name="aim" value="<?php echo $db->record['aim'];?>" size="11"></td>
</tr><tr>
<td><input type="submit" value="Save Settings" name="update_user_info" class="button1"></form></td>
<td><input type="reset" value="Cancel" name="cancel" class="button1" onclick="location.href='<?php echo $_SERVER['PHP_SELF']. "?x=". $_GET['x']?>'"></td>
</tr>
</table>

<?php echo $layout->create_footer()?>
Return current item: O - OpenSource GroupWare