<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>  
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %> 
<%@ taglib prefix="webratio" uri="http://www.webratio.com/2006/TagLib/JSP20" %> 
<%@ taglib prefix="FCK" uri="http://fckeditor.net/tags-fckeditor"  %> 
<%@ page contentType="text/html; charset=UTF-8"%> 
<webratio:Page page="page3"/>
<html>
<head>
  <title>Search</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<script src="WRResources/calendar/calendar.js" type="text/javascript"></script>
	<script src="WRResources/calendar/calendar-setup.js" type="text/javascript"></script>
	<script src="WRResources/calendar/lang/calendar-en.js" type="text/javascript"></script>
	<% {
		java.util.Locale lang = (java.util.Locale)session.getAttribute(org.apache.struts.Globals.LOCALE_KEY);
		if (lang != null && !("en").equals(lang.getLanguage())) {
	%>
		<script type="text/javascript" src="WRResources/calendar/lang/calendar-<%=lang.getLanguage()%>.js"></script>
	<% } 
	} %>
	<link href="WRResources/calendar/skins/aqua/theme.css" type="text/css" rel="stylesheet"/>
	<script src="WRResources/ajax/prototype/prototype.js" type="text/javascript" rel="javascript"></script>	
	<script src="WRResources/script.js" type="text/javascript" rel="javascript"></script>
</head>
<body>
<script>
	function initFieldFocus() {
	    var form = document.forms[0];
	    var firstField = Form.findFirstElement(form);
	    if((firstField != null) && (firstField.type != 'submit')) {
		    firstField.focus();
		}
	}
	var existingOnload = window.onload
	window.onload = function() {
		if (existingOnload) {
			existingOnload();
		}
		initFieldFocus();
	}
</script>
<html:form action="formpage3.do" styleId="page3FormBean" enctype="multipart/form-data">
    <html:hidden property="lastURL"/>
    <input type="hidden" name="conditions" value="${conditions}" id="conditions"/>
    <input type="hidden" name="ln9" value="<webratio:Link link="ln9" />">
<table width="100%" style="align:right">
	<tr>
		<td width="100%"></td>
	</tr>
	<tr>
		<td width="100%"></td>
    		<td nowrap="nowrap"> 
<a class="" href="<webratio:Link link="ln4"/>">
   List all
</a>
 </td>
    		<td nowrap="nowrap"> 
<a class="" href="<webratio:Link link="ln8"/>">
   Logout
</a>
 </td>
	</tr>
</table>
<table width="100%">
	<tr>
		<td align="center"><h1>Search</h1></td>
	</tr>
</table>
<table>
	<tr>
    		<td nowrap="nowrap"> 
<a class="" href="<webratio:Link link="page1.link"/>">
   Library
</a>
 </td>
	</tr>
</table>
<table>
	<tr>
	</tr>
</table>
<br>
<table>
	<tr>
		<td>
<span class="">
&gt;</span><a class="" href="<webratio:Link link="page1.link"/>">Library
</a><span class="">
</span>
&gt;Search
		</td>
	</tr>
</table>
<table width="100%" valign="top">
	<tr>
		<td>
<table    >
<tr>
<td  valign="top" align="left" >
<table width="100%">
	<tr>
		<td>
			<h2>Search</h2>
		</td>
	</tr>
	<tr>
		<td>
	 <div class="plain ">
		<div class="plain EntryUnit">
				<table>
					<tr>
						<td colspan="3" class="error">
							<html:errors property="enu2" />
						</td>
					</tr>
					<tr class="row">
							<th valign="middle" class=" header">
								author
							</th>
						<td valign="middle" nowrap="nowrap" class=" value">
								<html:text onkeypress="if(event.keyCode==13){clickButton('ln9'); return false;}"  size="25" styleId="fld3" styleClass=" field" property="fld3" readonly="false"/>
						</td>
								<td class="error">
<span class=" error"><html:errors property="fld3"/></span>
</td>
					 	</tr>
					<tr class="row">
							<th valign="middle" class=" header">
								title
							</th>
						<td valign="middle" nowrap="nowrap" class=" value">
								<html:text onkeypress="if(event.keyCode==13){clickButton('ln9'); return false;}"  size="25" styleId="fld4" styleClass=" field" property="fld4" readonly="false"/>
						</td>
								<td class="error">
<span class=" error"><html:errors property="fld4"/></span>
</td>
					 	</tr>
					<tr>
						<td colspan="3">
					<table>
				      <tr>
					  <td> 
			<input title="Search" onclick="$('page3FormBean').target='_self'" class=" button"  id="button#ln9" name="button#ln9" type="submit" value="Search">
 </td>
					</tr>
				    </table>
				   </td>
			   </tr>
		  </table>
		</div>
	</div>
</td>
	</tr>
</table>
   </td>
<td  valign="top" align="left" >
<c:if test="${not(empty inu1) and (inu1.dataSize gt 0)}">
	<table width="100%">
	<tr>
		<td>
			<h2>Search hits</h2>
		</td>
	</tr>
	<tr>
		<td>
		<div class="plain ">
			<div class="plain IndexUnit">
				<table border="0" cellspacing="1" cellpadding="2" id="inu1_1_sortable">
					<tr>
						<th class=" header"></th>
						<th nowrap="nowrap" class=" header">author</th>
						<th nowrap="nowrap" class=" header">title</th>
						<th nowrap="nowrap" class=" header">state</th>
						<th nowrap="nowrap" class=" header">description</th>
						<th nowrap="nowrap" class=" header">plot</th>
						<th nowrap="nowrap" class=" header">publisher</th>
						<th nowrap="nowrap" class=" header">year</th>
						<th nowrap="nowrap" class=" header">price</th>
					</tr>
				<c:forEach var="current" varStatus="status" items="${inu1.data}">
					<c:set var="index" value="${status.index}"/>	
						<tr class="row<c:if test="${inu1.currentIndex eq index}">Current</c:if>">	
								<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if>">
									<img src="WRResources/spacer.gif" class="bullet<c:if test="${inu1.currentIndex eq index}">Current</c:if>" border="0" alt=""/>
								</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.author}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.title}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.state}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.description}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.plot}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.publisher}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if> integer">				
										<fmt:formatNumber value="${current.year}" pattern="${integerPattern}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu1.currentIndex eq index}">Current</c:if> integer">				
										<fmt:formatNumber value="${current.price}" pattern="${integerPattern}"/>
									</td>
						</tr>
					</c:forEach>
				</table>
			</div>
		</div>
	 </td>
	</tr>
</table>
</c:if>
   </td>
<td  valign="top" align="left" >   </td>
</tr>
<tr>
<td  valign="top" align="left" >   </td>
<td  valign="top" align="left" >   </td>
<td  valign="top" align="left" >   </td>
</tr>
<tr>
<td  valign="top" align="left" >   </td>
<td  valign="top" align="left" >   </td>
<td  valign="top" align="left" >   </td>
</tr>
</table>
		</td>
		<td>
		</td>
	</tr>
</table>
</html:form>
</body>
</html>
