<!DOCTYPE html>
<!--// $Id$ //-->
<html>
<head>
    <meta name="GENERATOR" content="LMS {$layout.lmsv}">
	{include file="language.html"}
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link href="{ConfigHelper::getConfig('phpui.style', 'css/style.css')}" rel="stylesheet" type="text/css">
    <link href="img/lms-net.gif" rel="shortcut icon">
    <title>{t a=LMS::SOFTWARE_NAME}Welcome to $a{/t} {$layout.lmsv}</title>
	<style>
		body {
			justify-content: center;
			align-items: center;
			height: 100%;
			display: flex;
			padding: 0;
		}

		body > div {
			display: flex;
			flex-direction: column;
			align-items: center;
		}

		.login-logo-container {
			padding: 1em;
			display: flex;
			justify-content: center;
		}

		.login-logo-container > img {
			width: 10em;
		}

		.login-box-container {
			padding: 2em;
			display: flex;
			flex-direction: column;
			align-items: center;
			margin: 1em;
		}

		.lms-ui-dberrors {

		}
	</style>
</head>
<body class="lms-ui-login-form">
<div>
	<div class="login-logo-container">
		<img src="{ConfigHelper::getConfig('phpui.login_form_logo', 'img/logo.png')}" alt="">
	</div>
	<div class="login-box-container loginform light">
		<span class="bold text-center">
			{t a=LMS::SOFTWARE_NAME}$a version{/t} {$layout.lmsv}{if $layout.lmsvr} ({$layout.lmsvr}){/if}<br><br>
			&copy; 2001-{$smarty.now|date_format:"Y"} LMS Developers
		</span>
		<br>
		{if $error}<span class="lms-ui-alert bold">{$error}</span>{else}&nbsp;{/if}
		<br>
		<form method="post" name="smspasswordform" action="{$target}">
			<INPUT type="submit" class="hiddenbtn">
			<table>
				<tr>
					<td class="text-right bold">
						{t a=$retries}SMS password ($a retries left):{/t}
					</td>
					<td>
						<input class="bold" type="TEXT" name="smspasswordform[passwd]" size="10" accesskey="l" autofocus>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td colspan="2" class="text-center">
						{button type="submit" label="Login"}
					</td>
				</tr>
			</table>
		</form>
		<br>
		<br>
		<a href="doc/html/{substr(Localisation::getCurrentUiLanguage(), 0, 2)}/"><span class="blend">{trans("Documentation")}</span></a><br>
		<a href="{LMS::SOFTWARE_URL}"><span class="blend">{trans("LMS Project Homepage")}</span></a>
	</div>
	{if $layout.dberrors}
		{include file="dberrors.html"}
	{/if}
</div>
<script>

	document.forms['smspasswordform'].elements['smspasswordform[passwd]'].focus();

</script>
</body>
</html>
