<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>SL-Login</title>
		
		<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
		<script type="text/javascript" src="../jquery-ui-1.11.2.custom/jquery-ui.js"></script>
		<link href="../jquery-ui-1.11.2.custom/jquery-ui.css" rel="stylesheet" />
		
		<script type="text/javascript" src="sl_ui.js"></script>
		
		<link rel="stylesheet" type="text/css" href="sl_ui.css" />
	</head>
	
	<body>
		<?php
			require_once("../DomainManager.php");
			$domain_list = domainmanager::readDomainList();
			
			require_once("../functions.php");
			$lang = VIC_Functions::language();
			
			// Multilanguage - Variablendeffinition
			if ($lang == "de")
			{
				$_h1 = 'Spielleiter Login';
				$_td_1 = 'Dom&auml;ne';
				$_td_3 = 'Passwort';
				
			}
			else
			{
				$_h1 = 'Storyteller Login';
				$_td_1 = 'Domain';
				$_td_3 = 'Password';
			}
		?>
		
		<form action="sl_login_re.php?language=<?php echo $lang?>" method= "post">
	
			<h1><?php echo $_h1;?></h1>

			<table>
				<tbody>
					<tr>
						<td><?php echo $_td_1;?></td>
						<td>	
							<?php 
								require_once ("../functions.php");
								$domain = VIC_Functions::domainlist();
							?>
						</td>
					</tr>
					<tr>
						<td><?php echo $_td_3;?></td>
						<td><input type="password" name="password_sl" /></td>
					</tr>				
				</tbody>
			</table>

			<input class="button" type="submit" name="login_sl" value="Login" />
			<?php
			
			// Button "Back to Mainpage"
				if ($lang == "de")
				{
					echo '<a href="../index.php?language='.$lang.'" class="button">Zur&uuml;ck zur Hauptseite</a>';
				}
				else
				{
					echo '<a href="../index.php?language='.$lang.'" class="button">Back to Mainpage</a>';
				}
			// Button "Forgot password"
			if ($lang == "de")
				{
					echo '<a href="forgotPassword.php?language='.$lang.'" class="button">Passwort vergessen</a>';
				}
				else
				{
					echo '<a href="forgotPassword.php?language='.$lang.'" class="button">Forgot password</a>';
				}
			?>
		</form>
	</body>
</html>