<?php
// $Id: login.html.php,v 1.7 2003/12/08 18:07:09 rcastley 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.7 $
**/

class loginHTML {
	function loginpage ( $database ){
	?>
	<form action="<?php echo sefRelToAbs("index.php?option=login"); ?>" method="post" name="loginForm" id="loginForm">
        <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="componentheading">User Login</td>
          </tr>
          <tr>
            <td><strong>Username</strong> <br /> <input name="username" type="text" class="inputbox" size="20" /></td>
            <td colspan="2" align="left"><?php echo _LOGIN_TEXT; ?></td>
          </tr>
          <tr>
            <td  colspan="2"><strong>Password</strong> <br /> <input name="passwd" type="password" class="inputbox" size="20" /></td>
          </tr>
          <tr>
            <td colspan="2"> 
			  <input type="submit" name="submit" class="button" value="Login" />
			  <input type="hidden" name="op2" value="login" />
			  <input type="hidden" name="lang" value="<?php global $mosConfig_lang; echo $mosConfig_lang; ?>" />
              <noscript>
              !Warning! Javascript must be enabled for proper operation of the
              Administrator</noscript>
            </td>
          </tr>
        </table>
	</form>
<?php  
  	}
	
	function logoutpage( $database, $my ){
		?>
		<form action="<?php echo sefRelToAbs("../index.php?option=login"); ?>" method="post" name="loginForm" id="loginForm">
        	<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
          	<tr>
              <td valign="top" class="sectionname"><p><?php echo _ALREADY_LOGIN; ?></p>
              <p><a href="index.php?option=logout"><?php echo _LOGOUT; ?></a></p></td>
			</tr>
        	</table>
		</form>
	<?php
	}
}
?>