<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ page language="java" contentType="text/html; charset=SHIFT_JIS" pageEncoding="SHIFT_JIS" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html>
	<HEAD>
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<META HTTP-EQUIV="Expires" CONTENT="0">
	<META http-equiv="Content-Type" content="text/html; charset=SHIFT_JIS">
	<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
	<TITLE>blaocoStrutsSample FavoriteSelect</TITLE>
	<link rel="stylesheet" type="text/css" href="./css/blancoSample.css">
	<link rel="stylesheet" type="text/css" href="./jsp/css/blancoSample.css">
  <script language="JavaScript" type="text/JavaScript">
    function fnOnIvent(element) {
			document.FavoriteSelectForm.eventId.value=element.name;
			document.FavoriteSelectForm.submit();
    }
  </script>
	</HEAD>
	<BODY>
			<TABLE width="500" border="0">
				<TR>
					<TD width="400"><H1>FavoriteSelect</H1></TD>
					<TD width="50"><html:button property="logout" value="ログアウト" onclick="fnOnIvent(this);"/></TD>
				</TR>
			</TABLE>
		<html:form action="FavoriteSelect" method="post">
			<TABLE>
				<TR>
					<TD class="title">車好きな人は</TD>
					<TD><html:text property="carSelectMember" size="100"/></TD>
					<TD><INPUT type="button" name="listCar" value="車好き取得" onclick="fnOnIvent(this);"></TD>
					<TD><html:button property="searchCarMember" value="検索" onclick="fnOnIvent(this);"/></TD>
			</TABLE>
			<hr>
			<TABLE>
				<colgroup width="5%"></colgroup>
				<colgroup width="5%"></colgroup>
				<colgroup width="60%"></colgroup>
				<TR>
					<TD><html:button property="search" value="検索" onclick="fnOnIvent(this);"/></TD>
					<TD><html:button property="estimate" value="評価" onclick="fnOnIvent(this);"/></TD>
					<TD>　</TD>
				</TR>
			</TABLE>
			<hr>
			<TABLE width="60%" border="1">
				<colgroup width="7%"></colgroup>
				<colgroup width="15%"></colgroup>
				<colgroup width="7%"></colgroup>
				<colgroup width="7%"></colgroup>
				<colgroup width="30%"></colgroup>
				<colgroup width="30%"></colgroup>
				<TR>
					<TH>ラジオ</TH>
					<TH>名前</TH>
					<TH>車</TH>
					<TH>バイク</TH>
					<TH>評価</TH>
					<TH>備考</TH>
				</TR>
				<logic:iterate id="item" name="FavoriteSelectForm" property="memberItemList" scope="request" indexId="index">
				<bean:define id="myname" name="item" property="name"/>
					<TR>
						<TD><html:radio property="radio" value="<%=index.toString()%>" onclick="<%="alert('"+myname.toString()+"');"%>"/></TD>
						<TD><html:text styleClass="td" name="item" property="name" readonly="true" indexed="true"/></TD>
						<TD><html:multibox name="item" property="car" value="true" /></TD>
						<TD><html:checkbox name="item" property="motorcycle" value="true" indexed="true"/></TD>
						<TD><html:text styleClass="td" name="item" property="estimate" size="40" readonly="true" indexed="true"/></TD>
						<TD><html:text name="item" property="note" readonly="true" indexed="true"/></TD>
					</TR>
				</logic:iterate>
			</TABLE>
			<html:hidden property="eventId"/>
		</html:form>
	</BODY>
</html:html>