FreeSTAR-Status-Engine/admin/login-form.php

32 lines
1.7 KiB
PHP
Raw Normal View History

2017-11-23 18:09:36 -05:00
<?php
Template::render_header(_("Login"));
2017-11-23 18:09:36 -05:00
?>
<div class="text-center">
2017-12-30 18:41:58 -05:00
<h1><?php echo _("Login");?></h1>
2017-11-23 18:09:36 -05:00
</div>
<div id="login-form" class="center">
<?php if (isset($message)){?>
<p class="alert alert-danger"><?php echo $message?></p>
<?php }else{?>
2017-12-30 18:41:58 -05:00
<p class="alert alert-info"><?php echo _("Please login to continue.");?></p>
2017-11-23 18:09:36 -05:00
<?php }?>
<form action="<?php echo WEB_URL;?>/admin/" method="post">
2017-11-23 18:09:36 -05:00
<div class="form-group">
2017-12-30 18:41:58 -05:00
<label for="email"><?php echo _("Email");?></label>
2018-01-18 16:59:34 -05:00
<input placeholder="<?php echo _("Email");?>" class="form-control" name="email" id="email" type="email" tabindex="1" value="<?php echo htmlspecialchars((isset($_POST['email'])?$_POST['email']:''),ENT_QUOTES);?>" required>
2017-11-23 18:09:36 -05:00
</div>
<div class="form-group" style="margin-bottom: 8px">
2017-12-30 18:41:58 -05:00
<label for="pass"><?php echo _("Password");?></label>
2018-01-18 16:59:34 -05:00
<input placeholder="<?php echo _("Password");?>" class="form-control" name="pass" id="pass" type="password" tabindex="2" required>
2017-11-23 18:09:36 -05:00
<div style="padding-top: 8px; position: relative;">
<a href="<?php echo WEB_URL;?>/admin/?do=lost-password" class="pull-right noselect" tabindex="5"><?php echo _("Forgotten password?");?></a>
2017-12-30 18:41:58 -05:00
<input name="remember" id="remember" type="checkbox" tabindex="3"> <label class="lbl-login noselect" style="color: black;" for="remember"><?php echo _("Remember me");?></label>
2017-11-23 18:09:36 -05:00
</div>
</div>
<div class="form-group clearfix">
2017-12-30 18:41:58 -05:00
<button type="submit" class="btn btn-success pull-right" tabindex="4"><?php echo _("Login");?></button>
2017-11-23 18:09:36 -05:00
</div>
</form>
</div>
<?php
Template::render_footer();