Location: PHPKode > projects > Stratos > stratos-1.0rc1/plugins/QuickAuth/views/QuickAuthController.login.php

// ------------------------------------------------------------
// Stratos PHP Framework
// Copyright (c) 2006-2007 Sephira Software, LLC
// This file is subject to the Stratos PHP Framework license
// which you should have received along with this file. The
// license is also accessible on the web at the following URI:
//   http://www.stratosframework.com/wiki/Manual/License
// If you did not receive a copy of the Stratos PHP Framework
// license or you are unable to obtain it through the web,
// please send an e-mail to hide@address.com so a copy
// can be sent to you.
// ------------------------------------------------------------

 * @author Joshua Carnett
 * @copyright Copyright (c) 2006-2007 Sephira Software, LLC
 * @license http://www.stratosframework.com/wiki/Manual/License
 * @package QuickAuth
 * @subpackage views

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<title>Log In</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <style type="text/css">
        #login-box {
            text-align: center;
            padding: 40px;
        #login-box-content {
            text-align: left;
            margin-left: auto;
            margin-right: auto;
            width: 350px;
            border: solid #800000 2px;
            background-color: white;
        #login-box-content-heading {
            text-align: center;
            background-color: #4D0000;
            border-bottom: solid #800000 2px;
            background-image: url("<?=Stratos::makeUrl('./stratos/views/images/menu-bg.gif') ?>");
            color: white;
            font-weight: bold;
            font-size: 1.4em;
            padding: 5px;
        #login-box-content-body {
            padding: 18px 10px 15px 10px;
            text-align: center;
            background-image: url("<?=Stratos::makeUrl('./stratos/views/images/stripedshadow.gif') ?>");
            background-repeat: repeat-x;
            background-position: top;
        label {
            padding-right: 5px;
            font-weight: bold;
            color: #666;
        /* Stratos flash styles */
        ul.stratos_flashes { list-style: none; margin: 0; padding: 0 0 5px 0; }
        ul.stratos_flashes li { margin: 4px 12px 4px 12px; padding: 4px; font-size: .9em; font-weight: bold; }
        li.stratos_flash_success { color: #006600; border: solid green 1px; background-color: #bbffbb; }
        li.stratos_flash_error { color: #660000; border: solid red 1px; background-color: #ffccdd; }
        li.stratos_flash_warning { color: #ff6611; border: solid orange 1px; background-color: #ffff90; }
        li.stratos_flash_notice { color: #ff6611; border: solid orange 1px; background-color: #ffff90; }
        li.stratos_flash_default { color: black; border: solid black 1px; background-color: #ddd; }
    <?php Stratos::executeView('Stratos:javascript.php'); ?>
    <script type="text/javascript">
        dojo.addOnLoad(function() {
<body style="background-color: #ddd;">
	<div id="content">
		<div id="main">
            <div id="login-box">
                <div id="login-box-content">
                    <div id="login-box-content-heading">
                        Log In
                    <div id="login-box-content-body">
                        <?php Stratos::printFlashes(); ?>
                        <form action="" method="post">
                            <table style="margin-left: auto; margin-right: auto;">
                                    <td><label for="QuickAuth_user">Username:</label></td>
                                    <td><input type="text" id="QuickAuth_user" name="QuickAuth_user" value=""/></td>
                                    <td><label for="QuickAuth_pass">Password:</label></td>
                                    <td><input type="password" id="QuickAuth_pass" name="QuickAuth_pass" value=""/></td>
                                    <td colspan="2" style="text-align: center;">
                                        <input type="submit" value="Log In"/>
Return current item: Stratos