<?php
// $Id: user.html.php,v 1.3 2004/02/12 10:47:42 saka_car Exp $
/**
* Content code
* @package Mambo Open Source
* @Copyright (C) 2000 - 2003 Miro International Pty Ltd
* @ All rights reserved
* @ Mambo Open Source is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 1.3 $
**/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

class HTML_user {

	function frontpage() {
?>
	<table cellpadding="5" cellspacing="0" border="0" width="100%">
		<tr>
			<td class="contentheading"><?php echo _WELCOME; ?></td>
		</tr>
		<tr>
			<td><?php echo _WELCOME_DESC; ?></td>
		</tr>
	</table>
<?php
	}

	function userEdit($row, $option,$submitvalue)
	{
?>
		<form action="index.php" method="post" name="EditUser">
		<table cellpadding="5" cellspacing="0" border="0" width="100%">
		<tr>
      <td class="componentheading" colspan="5"><?php echo _EDIT_TITLE; ?></td>
    </tr>
    <tr>
      <td width=85><?php echo _YOUR_NAME; ?></td>
      <td><input class="inputbox" type="text" name="name" value="<?php echo $row->name;?>" /></td>
    </tr>
    <tr>
      <td><?php echo _EMAIL; ?></td>
      <td><input class="inputbox" type="text" name="email" value="<?php echo $row->email;?>" size="30" /></td>
    <tr>
      <td><?php echo _UNAME; ?></td>
      <td><input class="inputbox" type="text" name="username" value="<?php echo $row->username;?>" /></td>
    </tr>
    <tr>
      <td><?php echo _PASS; ?></td>
      <td><input class="inputbox" type="password" name="password" value="" /></td>
    </tr>
    <tr>
      <td><?php echo _VPASS; ?></td>
      <td><input class="inputbox" type="password" name="verifyPass" /></td>
    </tr>
    <tr>
      <td colspan="2">
        <input class="button" type="submit" name="submit" value="<?php echo $submitvalue; ?>" />
      </td>
    </tr>
  </table>
	<input type="hidden" name="id" value="<?php echo $row->id;?>" />
	<input type="hidden" name="option" value="<?php echo $option;?>">
	<input type="hidden" name="task" value="saveUserEdit" />
</form>
<?php
	}

	function confirmation() {
		?>
	<table>
		<tr>
			<td class="componentheading"><?php echo _SUBMIT_SUCCESS; ?></td>
		</tr>
		<tr>
			<td><?php echo _SUBMIT_SUCCESS_DESC; ?></td>
		</tr>
	</table>
<?php
	}
}
?>
