<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%~if logout and error%>
  <%~set message = $error%>
  <%~set error = ''%>
<%~endif%>
<%~if url and not error%>
  <%~set error = 'You must first login before you can access that.'%>
<%~endif%>
<html>
<head>
  <title><%site_title%>: User Login</title>
<%include include_common_head.html%>
</head>
<body id="login">
<%include include_accessibility.html%>
  <div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
    <div id="ocwrapper" class="clear">
      <div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
        <div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
          <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
          <div class="shadowright">
            <div id="content">
<%include include_content_top.html%>

<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2>User Login</h2>

<p>Login:<%--site_title--%></p>

<form action="<%config.db_cgi_url%>/user.cgi" method="post">
  <input type="hidden" name="login" value="1" />
  <%if url%><input type="hidden" name="url" value="<%escape_html url%>" /><%endif%>

  <div class="row required clear">
    <label for="Username" class="name">Username:</label>
    <div class="value">
      <input type="text" id="Username" name="Username" value="<%if Username%><%escape_html Username%><%endif%>" class="text" />
    </div>
  </div>
  <div class="row required clear">
    <label for="Password" class="name">Password:</label>
    <div class="value">
      <input type="password" id="Password" name="Password" class="password" />
    </div>
  </div>
<%~if config.user_sessions eq Cookies%>
  <div class="row clear">
    <label for="Remember" class="name">Remember Me:</label>
    <div class="value">
      <input type="checkbox" id="Remember" name="Remember" class="checkbox" />
    </div>
  </div>
<%~endif%>
  <div class="formsubmit">
    <input type="submit" value="Login" class="submit" />
  </div>
</form>

<p>
  <%--If you don't have an account, please <a href="<%config.db_cgi_url%>/user.cgi?signup_form=1">register</a>.<br /--%>
  If you've forgotten your password, we can <a href="<%config.db_cgi_url%>/user.cgi?email_pass=1">e-mail it to you</a>.
</p>

<%include include_content_bottom.html%>
            </div>
          </div>
          <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_contentwrapper_bottom.html%>
        </div>
<%include include_rightsidebar.html%>
      </div>
    </div>
<%include include_contentfooter.html%>
<%include include_footer.html%>
  </div>
</body>
</html>
