<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- $Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->
<html lang="{language}">
<head>
  <title>{page_title}</title>
  <meta http-equiv="content-type" content="text/html; charset={charset}">
  <meta name="generator" content="Siteframe/{version}">
  <link rel="stylesheet" type="text/css" media="print"
        href="{site_path}/themes/{theme}/printer.css"/>
  <link rel="stylesheet" type="text/css" media="screen"
        href="{site_path}/themes/{theme}/siteframe.css"/>
  {!if defined(head_content) '{head_content}'!}
</head>
<body>
  <div id="page">

    <div id="title">
    {!if defined(logo)
      '<a href="{site_path}"><img src="{logo}" alt="{site_name}" class="logo"/></a>'
      '{site_name}'
    !}
    </div><!-- title -->

    <div id="topmenu">
    {!if defined(user_id)
    ' {user_name} | <a href="{site_path}/user.php">My Page</a> | <a href="{site_path}/prefs.php">Prefs</a>'
    ' <a href="{site_path}/register.php">Register</a> | <a href="{site_path}/login.php">Login</a>'
    !}
    </div><!-- topmenu -->

    <div id="main">

      <div id="left">
      {navigation}
      </div>

      <div id="right">
      {!if defined(right)
      '{right}'
      '<p><b>Recent Additions</b></p>
      {BEGIN:recent_docs 5 _right_recent_docs_}
      <p><a href="{site_path}/document.php?id={doc_id}">{doc_title}</a></p>
      {END:recent_docs}'
      !}
      </div>

      <div id="center">
        <p class="folderpath">
        {!if defined(folder_path)
        '{folder_path}'
        '<a href="{site_path}">Home</a>'!}&nbsp;</p>
        <h1>{page_title}</h1>
        {!if defined(error) '<p class="error">{error}</p>'!}
        {recordset}

        <div id="content">
        {body}
        </div><!-- content -->

        <div id="footer">
        {footer}
        </div>

      </div><!-- center -->

    </div><!-- content -->

  </div><!-- page -->
</body>
</html>
