<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE>BBS - A-tak on PC Web</TITLE>
<SCRIPT language="JavaScript">
<!--
//フォームの入力チェック
function formCheck() {
        if ( document.ArticleData.title.value == "") {
                alert("タイトルが入力されていません");
                document.ArticleData.title.focus();
                return;
        }
        if ( document.ArticleData.name.value == "") {
                alert("名前が入力されていません");
                document.ArticleData.name.focus();
                return;
        }
        if ( document.ArticleData.word.value == "") {
                alert("メッセージが入力されていません");
                document.ArticleData.word.focus();
                return;
        }
        document.ArticleData.submit();
}
-->
</SCRIPT>
<LINK rel="stylesheet" href="/mainpage.css" type="text/css">
</HEAD>

<%@ page contentType="text/html; charset=EUC_JP" errorPage="/message/error.jsp" import="com.a_tak.login.UserInfo" %>
<jsp:useBean id="bv" scope="request" class="com.a_tak.bbs.BbsViewBean" />
<jsp:useBean id="userinfo" scope="session" class="com.a_tak.login.UserInfo" />
<%      if (userinfo.getName() == "") { //直接飛んできた場合はトップに戻す%> 
        <jsp:forward page ='/message/relogin.htm' />
<%      }%>
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<BODY bgcolor="#000000" text="#ffffff" link="#bfbfff" vlink="#808080" alink="#ff8040">
<H1>BBS</H1>
<P><A href="/servlet/com.a_tak.login.CookieChk">戻る</A> | </P>
<P><FONT size="-1">Java、最近の重大ニュース、人生相談、YahooBBは今年中に熊本に来るの?など、何でもどうぞ(笑)</FONT></P>
<FORM method="POST" action="/servlet/com.a_tak.bbs.BbsWrite" name="ArticleData">
<TABLE cellspacing="0" bgcolor="#501287" width="476" cellpadding="0">
  <TBODY>
    <TR>
      <TD rowspan="10" bgcolor="#99aaee" width="7"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD rowspan="10" width="2" bgcolor="#000000"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD height="5"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD rowspan="10" bgcolor="#000000" width="2"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD rowspan="10" bgcolor="#99aaee" width="7"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
    </TR>
    <TR>
      <TD align="center" width="51"><FONT size="-1">タイトル</FONT></TD>
      <TD><INPUT size="52" type="text" maxlength="40" name="title"></TD>
    </TR>
    <TR>
      <TD align="center" width="51"><FONT size="-1">名前</FONT></TD>
      <TD><INPUT size="30" type="text" maxlength="30" name="name" value='<jsp:getProperty name="userinfo" property="name" />'></TD>
    </TR>
    <TR>
      <TD align="center" width="51"><FONT size="-1">E-mail</FONT></TD>
      <TD><INPUT size="30" type="text" maxlength="50" name="mail" value='<jsp:getProperty name="userinfo" property="email" />'></TD>
    </TR>
    <TR>
      <TD align="center" width="51"><FONT size="-1">URL</FONT></TD>
      <TD><INPUT size="50" type="text" maxlength="60" name="url" value='<jsp:getProperty name="userinfo" property="url" />'></TD>
    </TR>
    <TR>
      <TD colspan="2"><FONT size="-1">メッセージ</FONT></TD>
    </TR>
    <TR>
      <TD colspan="2" align="center"><TEXTAREA rows="10" cols="61" name="word"></TEXTAREA></TD>
    </TR>
    <TR>
      <TD colspan="2" height="5"></TD>
    </TR>
    <TR>
      <TD colspan="2" align="center"><INPUT type="button" name="send" value="届け!!この想い・・・" onclick="formCheck()"></TD>
    </TR>
    <TR>
      <TD colspan="2" height="5"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
    </TR>
  </TBODY>
</TABLE>
</FORM>
[<jsp:getProperty name="bv" property="next" /> | <jsp:getProperty name="bv" property="prev" />]<br>
<% while(bv.doNext() == true) {%>
<TABLE width="500" cellspacing="1">
  <TBODY>
    <TR>
      <TD bgcolor="#ffff00"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD bgcolor="#3399ff" height="1"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD bgcolor="#ffff00"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
    </TR>
    <TR>
      <TD bgcolor="#3399ff" width="1"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD>
      <TABLE cellspacing="0" width="100%" bgcolor="#000099" cellpadding="0">
        <TBODY>
          <TR>
            <TD colspan="3">
            <P><FONT size="+1"><B><jsp:getProperty name="bv" property="title" /></B></FONT></P>
            </TD>
          </TR>
          <TR>
            <TD width="216" align="right"><B><jsp:getProperty name="bv" property="name" /></B></TD>
            <TD width="56"><A href='mailto:<jsp:getProperty name="bv" property="mail" />'>mail</A></TD>
            <TD width="61"><A href='<jsp:getProperty name="bv" property="url" />' target="_blank">home</A></TD>
          </TR>
          <TR>
            <TD colspan="3" bgcolor="#3399ff"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
          </TR>
          <TR>
            <TD colspan="3" bgcolor="#330000" height="1"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
          </TR>
          <TR>
            <TD colspan="3"><FONT size="-1"><jsp:getProperty name="bv" property="word" /></FONT></TD>
          </TR>
          <TR>
            <TD colspan="3" align="right"><FONT size="-1"><jsp:getProperty name="bv" property="tstamp" /></FONT></TD>
          </TR>
        </TBODY>
      </TABLE>
      </TD>
      <TD bgcolor="#3399ff" width="1"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
    </TR>
    <TR>
      <TD bgcolor="#ffff00"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD bgcolor="#3399ff" height="1"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
      <TD bgcolor="#ffff00"><IMG src="/image/spacer.gif" width="1" height="1" border="0"></TD>
    </TR>
  </TBODY>
</TABLE>
<P><BR>
</P>
<% } %>
[<jsp:getProperty name="bv" property="next" /> | <jsp:getProperty name="bv" property="prev" />]<br>
<P><A href="/servlet/com.a_tak.login.CookieChk">戻る</A> | </P>
</BODY>
</HTML>