PHP_SMART_HOME_V3/app/views/templates/part/loginForm.phtml

25 lines
978 B
PHTML
Raw Normal View History

2020-05-16 15:18:27 +00:00
<div class="modal-container">
<div class="modal">
<h4 class="mb-4">Login</h4>
<form method="post">
<div class="field">
<div class="label">Name:</div>
<input class="input" type="text" name="username" placeholder="Jméno.."/>
</div>
<div class="field">
<div class="label">Password:</div>
<input class="input" type="password" name="password" placeholder="Heslo.."/>
</div>
<div class="field">
<div class="label">Remember me:</div>
<input class="" type="checkbox" name="remember" value="true"/>
</div>
2020-10-31 14:10:05 +00:00
<?php if (!empty ($_SESSION['msg'])): ?>
2020-11-18 20:42:02 +00:00
<label class="alert"><?php echo $_SESSION['msg']; ?></label><br/><br/>
2020-10-31 14:10:05 +00:00
<?php unset ($_SESSION['msg']); ?>
<?php endif; ?>
2020-05-16 15:18:27 +00:00
<input type="submit" class="button" name="login" value="Login"/>
</form>
</div>
</div>