Example #1
0
    public static function sendForm($errors = array())
    {
        ?>
        <div class="block">
            <div class="block-title">
                Podaj login:
            </div>
            <div class="block-contents">
                
                <?php 
        if (!empty($errors)) {
            ?>
                <div class="errors-block">
                    <?php 
            foreach ($errors as $error) {
                ?>
                    <div class="inner-error-block">
                        <p><?php 
                echo $error[2];
                ?>
</p>
                    </div>
                    <?php 
            }
            ?>
                </div>       
                <?php 
        }
        ?>
                
                
                <form action="<?php 
        echo View::genRelativeLink("form");
        ?>
" method="post">
                    <fieldset>
                        <table>
                            <tr>
                                <td><label>Login:</label></td><td><input type="text" name="login" /></td>
                            </tr>
                            <tr style="display:none;">
                                <td><label>Hasło:</label></td><td><input type="password" name="password" /></td>
                            </tr>


                        </table>
                        <div class="login-bottom">
                            <div class="left" style="display:none;"><a href="index.php">Strona główna</a> </div>

                            <div class="right"><input type="submit" name="wyslij" value="ok" /> </div>
                        </div>
                    </fieldset>

                    </form>
            </div>
        </div>
<?php 
    }