themes/iphone/login.tpl
author Dan
Mon, 01 Sep 2008 17:03:44 -0400
changeset 47 b7f1952cef8d
parent 44 92dd253f501c
child 49 d62212462f9b
permissions -rw-r--r--
Toned down the "login success" message's color a bit

{**
 * Template file for default Funky Monkey theme
 * Web control interface script for Amarok
 * Written by Dan Fuhry - 2008
 *
 * This script is in the public domain. Use it for good, not evil.
 *}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <title>AmaroK playlist</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <!-- iPhone viewport hack from jailbreakme.com -->
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <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>