<h1><?php echo __('em.l.titre'); ?></h1>

<div align="center">
    <form method="post" name="login" id="login" action="<?php echo php_self(); ?>">
        <?php echo ZAuth::get_fingerprint(); ?>

        <?php
        if (get_perror('login') || get_perror('password')) {
            ?>
            <div class="err text-error">
                <?php echo get_perror('login'); ?>
                <?php echo get_perror('password'); ?>
            </div>
            <?php
        }
        ?>

        <table style="margin-top: 15px;">
            <tr>
                <td><?php echo __('com.txt.login'); ?></td>
                <td><input type="text" name="login" id="login" value="<?php echo p('login'); ?>"/></td>
            </tr>
            <tr>
                <td><?php echo __('com.txt.mdp'); ?></td>
                <td><input type="password" name="password" id="password" value="<?php echo p('password'); ?>"/></td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="padding: 10px;">
                    <input type="submit" name="submit" id="submit" class="btn btn-primary" value="Me loguer"/>
                    <br/>
                    <small>
                        <?php
                        if (MDP_OUBLIE) {
                            echo href(__('com.txt.mdp_oublie.long'), array('controleur' => 'EspaceMembre', 'action' => 'MotDePassePerdu'));
                        }
                        if (INSCRIPTION) {
                            ?>
                            <br/>
                            <?php echo href(__('com.action.inscription.long'), array('controleur' => 'EspaceMembre', 'action' => 'Inscription')); ?>
                            <?php } ?>
                    </small>
                </td>
            </tr>
        </table>

    </form>
</div>