PHP Classes

File: lib/compile/2736fab291f04e69b62d490c3c09361f5b82461a.bladec

Recommend this page to a friend!
  Classes of Jorge Castro   Security One Mysql   lib/compile/2736fab291f04e69b62d490c3c09361f5b82461a.bladec   Download  
File: lib/compile/2736fab291f04e69b62d490c3c09361f5b82461a.bladec
Role: Example script
Content type: text/plain
Description: Example script
Class: Security One Mysql
Implement a login page for users in a MySQL table
Author: By
Last change:
Date: 1 month ago
Size: 1,257 bytes
 

Contents

Class file image Download
<?php echo $this->runChild("_head",['title'=>"Login Screen"]); ?>
<body>
<form class="form-signin" method="post">
 <div class="text-center mb-4">
 <img class="mb-4" src="<?php echo static::e($logo); ?>" alt="">
 <h1 class="h3 mb-3 font-weight-normal"><?php echo $title; ?></h1>
 <p><?php echo $subtitle; ?></p>
 </div>

 <div class="form-label-group">
 <input type="text" id="inputEmail" name="user" class="form-control" placeholder="user" required autofocus value="<?php echo static::e($user); ?>">
 <label for="inputEmail">User</label>
 </div>

 <div class="form-label-group">
 <input type="password" id="inputPassword" name="password" class="form-control" placeholder="Password" required value="<?php echo static::e($password); ?>">
 <label for="inputPassword">Password</label>
 </div>
 <?php if($useCookie): ?>
<div class="checkbox mb-3">
 <label>
 <input type="checkbox" name="remember" value="1"> Remember me
 </label>
 </div>
 <?php endif; ?>
<input type="hidden" name="returnUrl" value="<?php echo static::e($returnUrl); ?>" />
 <button class="btn btn-lg btn-primary btn-block" name="button" value="login" type="submit">Sign in</button>
 <p class="mt-5 mb-3 text-muted text-center"><?php echo static::e($message); ?></p>


</form>
</body>
</html>