themes/grey/login.tpl
author Dan
Tue, 23 Sep 2008 23:26:18 -0400
changeset 50 1b4288399b1f
parent 44 92dd253f501c
permissions -rw-r--r--
Added graphical configuration, at this point only for the grey theme but others will follow soon. (This has been nearly done for two weeks or more but was on hold due to the bugs with multithreading)

{**
 * Template file for default Grey theme
 * Greyhound: Web control interface script for Amarok
 * Written by Dan Fuhry - (C) 2008
 *}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <title>Greyhound: Login</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/login.css" />
    <link rel="favorite icon" type="image/ico" href="/favicon.ico" />
    {if $success}
    <meta http-equiv="refresh" content="0; url=/" />
    {/if}
  </head>
  <body>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="middle" style="text-align: center;">
          <!-- this is all centered on the screen now -->
          <div class="login-main">
            <img class="greylogo" src="/themes/{$theme|escape}/images/greylogo.png" />
            <form action="/login" method="post">
              <table border="0" class="loginform">
                <tr>
                  <td class="left">username:</td><td class="right"><input type="text" name="username" tabindex="1" autocomplete="off" /></td>
                </tr>
                <tr>
                  <td class="left password">password:</td><td class="right"><input type="password" name="password" tabindex="2" /></td>
                </tr>
                {if $tried and !$success}
                <tr>
                  <td class="error" colspan="2">
                    login failed
                  </td>
                </tr>
                {elseif $tried and $success}
                <tr>
                  <td class="success" colspan="2">
                    you're all good, redirecting...
                  </td>
                </tr>
                {else}
                <tr>
                  <td class="error" colspan="2">
                    &nbsp;
                  </td>
                </tr>
                {/if}
                <tr>
                  <td colspan="2" class="submit">
                    <input class="submit" type="submit" value="log in" tabindex="3" />
                  </td>
                </tr>
              </table>
            </form>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>