{% block header %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

{% if title %}
<title>{{ title }} - Djanction</title>
{% else %}
<title>Djanction</title>
{% endif %}
{% block meta %}{% endblock %}
{% block css %}
<link href="{% url top_page %}static/css/generic.css" media="screen" rel="stylesheet" type="text/css"/>
{% endblock%}
{% block js %}
<script type="text/javascript" defer="defer" src="{% url top_page %}static/js/alphafilter.js"></script>
<!--jquery-ui-1.8.1-->
<!-- FIXME ローカルにダウンロードしたらなぜか動かない
<link href="{% url top_page %}static/js/jquery-ui-1.8.1/css/ui-lightness/jquery.ui.all.css" type="text/css"/>
<script type="text/javascript" src="{% url top_page %}static/js/jquery-ui-1.8.1/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="{% url top_page %}static/js/jquery-ui-1.8.1/js/jquery-ui-1.8.1.custom.min.js"></script>
-->
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" media="all" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" type="text/javascript"></script>

{% endblock%}
</head>
{% endblock %}
<body>
{% block headernavi %}
  <div id="headernavi">
  <!--[if lt IE 7]>  <div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>    <div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display='none'; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>    <div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>      <div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>      <div style='width: 275px; float: left; font-family: Arial, sans-serif;'>        <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>あなたは旧式ブラウザをご利用中です</div>        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>このウェブサイトを快適に閲覧するにはブラウザをアップグレードしてください。</div>      </div>      <div style='width: 75px; float: left;'><a href='http://www.mozilla.jp' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>      <div style='width: 75px; float: left;'><a href='http://www.microsoft.com/downloads/details.aspx?FamilyID=341c2ad5-8c3d-4347-8c03-08cdecd8852b&DisplayLang=ja' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/></a></div>      <div style='width: 73px; float: left;'><a href='http://www.apple.com/jp/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>      <div style='float: left;'><a href='http://www.google.com/chrome?hl=ja' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>    </div>  </div>  <![endif]-->
  <table class="pageheader">
    <tr>
      <td style="text-align: left; vertical-align: top;">
        <a href="{% url top_page %}" title="Djanction"><img src="{% url top_page %}static/img/djanction_logo_380_70.png" class="alphafilter" width="380" height="70" border="0" alt="Djanction"></a>
      </td>
      <td style="text-align: right; vertical-align: top;">
        <p>
          ようこそ
          {% if user.is_authenticated %}
          {{ user.last_name }}&nbsp;{{ user.first_name }}&nbsp;さん&nbsp;
          [<a href="{% url django.contrib.auth.views.logout %}">ログアウト</a>]
          {% else %}
          ゲストさん&nbsp;
          [<a href="{% url djanction.appauth.views.login %}">ログイン</a>]&nbsp;
          [<a href="{% url top_page %}regist/">オークション利用登録</a>]
          {% endif %}
        </p>
        <p><br></p>
        <p>
          <a href="{% url djanction.mypage.views.mymenu %}">マイオークション</a>
          &nbsp;-&nbsp;
          <a href="{% url djanction.item.views.form %}">出品する</a>
          &nbsp;-&nbsp;
          <a href="{% url top_page %}usage/">使い方</a>
          &nbsp;-&nbsp;
          <a href="{% url top_page %}about/">Djanctionについて</a>
        </p>
      </td>
    </tr>
  </table>
  </div>
{% endblock %}
{% block headermenu %}{% endblock %}
{% block contents %}
  {% block leftmenu %}{% endblock %}
  {% block maincontents %}{% endblock %}
  {% block rightcontents %}{% endblock %}
{% endblock %}
{% block footer %}
  <p><br><br></p>
  <div class="pagefooter">
    <hr style="border: dotted; color: black;">
    <p style="text-align: right;">
      Copyright&copy; 2010 AIIT Djanction Project Team
    </p>
  <div>
</body>
</html>
{% endblock %}
