PHP Classes

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

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

Updates for this commit:
- Updating the default dependency of Bootstrap, now using Bootstrap version 5;
- Updating the minimum CI version to ^4.2.0;
- Secrete the Bootstrap framework as the required dependency, now you can create your own theme without concern to conflict with Bootstrap;
- Refine the Aksara core including its components;
- Fixing the feature that previously broken.
Date: 24 days ago
Size: 3,936 bytes
 

Contents

Class file image Download
<div class="card-group">
    <div class="card border-top-0 border-bottom-0 border-start-0">
        <div class="card-body">
            <form action="<?php echo current_page(); ?>" method="POST" class="--validate-form" enctype="multipart/form-data">
                <div class="mb-5">
                    <p class="text-center text-muted">
                        <i class="mdi mdi-account-circle-outline mdi-5x text-muted"></i>
                    </p>
                </div>
                <div class="mb-3">
                    <p class="text-center text-muted">
                        <?php echo phrase('please_enter_your_account_information_to_sign_in'); ?>
</p>
                </div>
                <div class="form-group mb-3">
                    <div class="input-group">
                        <span class="input-group-text">
                            <i class="mdi mdi-account" style="width:22px"></i>
                        </span>
                        <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 mb-3">
                    <div class="input-group">
                        <span class="input-group-text">
                            <i class="mdi mdi-fingerprint" style="width:22px"></i>
                        </span>
                        <input type="password" name="password" class="form-control" id="password_input" placeholder="<?php echo phrase('enter_password'); ?>" autocomplete="new-password" style="border-right:0" />
                        <span class="input-group-text bg-white" style="border-left:0">
                            <i class="mdi mdi-eye-outline" style="width:22px"></i>
                        </span>
                    </div>
                </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 mb-3">
                                <div class="input-group">
                                    <span class="input-group-text">
                                        <i class="mdi mdi-calendar-check" style="width:22px"></i>
                                    </span>
                                    <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">
                        <div class="d-grid">
                            <button type="submit" class="btn btn-primary">
                                <i class="mdi mdi-check"></i>
                                <?php echo phrase('sign_in'); ?>
</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <?php if(get_setting('frontend_registration')){ ?>
<div class="card border-top-0 border-end-0 border-bottom-0">
        <div class="card-body d-flex align-items-center justify-content-center">
            <div>
                <p class="lead text-center text-black-50">
                    <?php echo phrase('do_not_have_an_account'); ?>
</p>
                <?php if(get_setting('google_client_id') && get_setting('google_client_secret')) { ?>
<div class="d-grid mb-2">
                    <a href="<?php echo base_url('auth/google'); ?>" class="btn btn-outline-danger">
                        <i class="mdi mdi-google"></i>
                        <?php echo phrase('sign_in_with_google'); ?>
</a>
                </div>
                <?php } ?>
<?php if(get_setting('facebook_app_id') && get_setting('facebook_app_secret')) { ?>
<div class="d-grid mb-2">
                    <a href="<?php echo base_url('auth/facebook'); ?>" class="btn btn-outline-primary">
                        <i class="mdi mdi-facebook"></i>
                        <?php echo phrase('sign_in_with_facebook'); ?>
</a>
                </div>
                <?php } ?>
<div class="d-grid">
                    <a href="<?php echo base_url('auth/register'); ?>" class="btn btn-outline-success --xhr">
                        <i class="mdi mdi-account-plus"></i>
                        <?php echo phrase('register_an_account'); ?>
</a>
                </div>
            </div>
        </div>
    </div>
    <?php } ?>
</div>

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