<div id="bd">
  <div id="yui-main" class="content">
    <div class="yui-b first">
      <b class="btop"><b></b></b>
      <div class="resulthead"><h3>{translate text='Login'}</h3></div>
      <div class="page">
        {if $message}<div class="error">{$message|translate}</div>{/if}
        {if $authMethod != 'Shibboleth'}
          <form method="post" action="{$url}/MyResearch/Home" name="loginForm">
            <table class="citation" width="100%">
              <tr>
                <td style="width:80px;">{translate text='Username'}: </td>
                <td><input id="mainFocus" type="text" name="username" value="{$username|escape}" size="15"/></td>
              </tr>
              <tr>
                <td>{translate text='Password'}: </td>
                <td><input type="password" name="password" size="15"/></td>
              </tr>
              <tr style="border:0;">
                <td></td>
                <td>
                  <input type="submit" name="submit" value="{translate text='Login'}"/>
                  {if $followup}
                    <input type="hidden" name="followup" value="{$followup}"/>
                    {if $followupModule}<input type="hidden" name="followupModule" value="{$followupModule}"/>{/if}
                    {if $followupAction}<input type="hidden" name="followupAction" value="{$followupAction}"/>{/if}
                    {if $recordId}<input type="hidden" name="recordId" value="{$recordId|escape:"html"}"/>{/if}
                  {/if}
                </td>
              </tr>
            </table>
            {if $extraParams}
              {foreach from=$extraParams item=item}
                <input type="hidden" name="extraParams[]" value="{$item.name|escape}|{$item.value|escape}" />
              {/foreach}
            {/if}
          </form>
        <script type="text/javascript">var o = document.getElementById('mainFocus'); if (o) o.focus();</script>
          {if $authMethod == 'DB'}<a href="{$url}/MyResearch/Account">{translate text='Create New Account'}</a>{/if}
        {/if}
      </div>
      <b class="bbot"><b></b></b>
    </div>
  </div>
</div>
