PHP Classes

File: aksara/Modules/Auth/Views/index.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Modules/Auth/Views/index.php  >  Download  
File: aksara/Modules/Auth/Views/index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Initial commit for update 4.2.8

1. Core improvements;
2. Menu generator improvements;
3. Validation for file upload improvements;
4. Adds the failed login attempts blocking with customizable attempt count and blocking time;
5. Login page improvements, removing the login component due to the easy customization;
6. Removing unused JS plugins;
7. Routing machine preparation for maps rendering;
8. Preparing the market addons to be able to auto update the installed modules and themes;
9. Changes for uploader plugin with Aksara custom uploader since the previous version used to be paid version (fileuploader by innostudio);
10. Improve the carousel slideshow CMS that previously missing the order when uploaded file is skipping the first slide;
Initial commit for update 4.2.8

Change the phrase
Date: 5 days ago
Size: 4,739 bytes
 

Contents

Class file image Download
<div class="container-fluid pt-5 pb-5">
    <div class="row">
        <div class="<?php echo (get_setting('frontend_registration') ? 'col-md-8 offset-md-2' : 'col-md-4 offset-md-4'); ?>">
            <div class="card-group">
                <div class="card shadow">
                    <div class="card-body">
                        <form action="<?php echo current_page(); ?>" method="POST" class="--validate-form" enctype="multipart/form-data">
                            <div class="form-group">
                                <p class="text-center text-muted">
                                    <i class="mdi mdi-account-circle-outline mdi-5x text-muted"></i>
                                </p>
                            </div>
                            <div class="form-group pb-2">
                                <p class="text-center text-muted">
                                    <?php echo phrase('please_enter_your_account_information_to_sign_in'); ?>
</p>
                            </div>
                            <div class="form-group">
                                <div class="input-group flex-nowrap">
                                    <div class="input-group-prepend">
                                        <span class="input-group-text" id="addon-wrapping">
                                            <i class="mdi mdi-account-outline" style="width:22px"></i>
                                        </span>
                                    </div>
                                    <input type="text" name="username" class="form-control" id="username_input" placeholder="<?php echo phrase('enter_your_username_or_email'); ?>" />
                                </div>
                            </div>
                            <div class="form-group relative">
                                <div class="input-group flex-nowrap">
                                    <div class="input-group-prepend">
                                        <span class="input-group-text" id="addon-wrapping">
                                            <i class="mdi mdi-fingerprint" style="width:22px"></i>
                                        </span>
                                    </div>
                                    <input type="password" name="password" class="form-control" id="password_input" placeholder="<?php echo phrase('enter_password'); ?>" autocomplete="new-password" />
                                </div>
                                <i class="mdi mdi-2x password-peek text-muted mdi-eye-outline absolute top right mt-2 mr-2" data-parent=".form-group" data-peek=".form-control" style="z-index:3"></i>
                            </div>
                           
                            <?php
                               
if($years)
                                {
                                   
$option = null;
                                   
                                    foreach(
$years as $key => $val)
                                    {
                                       
$option .= '<option value="' . $val->value . '"' . ($val->selected ? ' selected' : null) . '>' . $val->label . '</option>';
                                    }
                                   
                                    echo
'
                                        <div class="form-group">
                                            <div class="input-group flex-nowrap">
                                                <div class="input-group-prepend">
                                                    <span class="input-group-text" id="addon-wrapping">
                                                        <i class="mdi mdi-calendar-check" style="width:22px"></i>
                                                    </span>
                                                </div>
                                                <select name="year" class="form-control" placeholder="'
. phrase('choose_year') . '" id="year_input">
                                                    '
. $option . '
                                                </select>
                                            </div>
                                        </div>
                                    '
;
                                }
                           
?>

                            <div class="--validation-callback mb-0"></div>
                           
                            <div class="row">
                                <div class="col-7">
                                    <label class="mt-2">
                                        <a href="<?php echo current_page('forgot'); ?>" class="--xhr">
                                            <?php echo phrase('forgot_password'); ?>
</a>
                                    </label>
                                </div>
                                <div class="col-5">
                                    <button type="submit" class="btn btn-primary btn-block">
                                        <i class="mdi mdi-check"></i>
                                        <?php echo phrase('sign_in'); ?>
</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <?php if(get_setting('frontend_registration')){ ?>
<div class="card shadow">
                    <div class="card-body d-flex align-items-center justify-content-center">
                        <div>
                            <p class="lead text-center text-muted">
                                <?php echo phrase('do_not_have_an_account'); ?>
</p>
                            <?php if(get_setting('google_client_id') && get_setting('google_client_secret')) { ?>
<p class="lead text-center">
                                <a href="<?php echo base_url('auth/google'); ?>" class="btn btn-outline-danger btn-block text-left">
                                    <i class="mdi mdi-google"></i>
                                    <?php echo phrase('sign_in_with_google'); ?>
</a>
                            </p>
                            <?php } ?>
<?php if(get_setting('facebook_app_id') && get_setting('facebook_app_secret')) { ?>
<p class="lead text-center">
                                <a href="<?php echo base_url('auth/facebook'); ?>" class="btn btn-outline-primary btn-block text-left">
                                    <i class="mdi mdi-facebook"></i>
                                    <?php echo phrase('sign_in_with_facebook'); ?>
</a>
                            </p>
                            <?php } ?>
<p class="lead text-center">
                                <a href="<?php echo base_url('auth/register'); ?>" class="btn btn-outline-info btn-block text-left --xhr">
                                    <i class="mdi mdi-account-plus"></i>
                                    <?php echo phrase('register_an_account'); ?>
</a>
                            </p>
                        </div>
                    </div>
                </div>
                <?php } ?>
</div>
        </div>
    </div>
</div>

For more information send a message to info at phpclasses dot org.