          <table width="197" height="127" border="0" cellpadding="0" cellspacing="0" class="login-bg">
            <tr valign="top">
              <td align="center">

                <%if !$logged_in%>

                  <table width="90%" cellpadding="2" cellspacing="0">
                    <form action="login.php" method="post">
                    <input type="hidden" name="pflag" value="login" />
                    <tr>
                      <td colspan="2" align="center"><br /><b>Login Here</b><br /><br /></td>
                    </tr>
                    <tr>
                      <td>Username: </td>
                      <td><input type="text" name="username" size="20" /></td>
                    </tr>
                    <tr>
                      <td>Password: </td>
                      <td><input type="password" name="password" size="20" /></td>
                    </tr>
                    <tr>
                      <td colspan="2">
                        <input type="checkbox" name="remember_me" value="1" />
                        Remember me &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="submit" name="Submit" value="Login" class="button" />
                      </td>
                    </tr>
                    </form>
                  </table>
                
                <%else%>
                  
                  <p>
                  <br />
                  <br />
                  <br />
                  You are now logged in as <i><%$username%></i>
                  <br />
                  <br />
                  <a href="<%$site_url%>/logout.php">Logout</a>
                  </p>

                <%/if%>

              </td>
            </tr>
          </table>