<!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="page8"/>
<html>
<head>
  <title>Users</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="formpage8.do" styleId="page8FormBean" enctype="multipart/form-data">
    <html:hidden property="lastURL"/>
    <input type="hidden" name="conditions" value="${conditions}" id="conditions"/>
    <input type="hidden" name="ln7" value="<webratio:Link link="ln7" />">
    <input type="hidden" name="ln17" value="<webratio:Link link="ln17" />">
    <input type="hidden" name="ln18" value="<webratio:Link link="ln18" />">
<table width="100%" style="align:right">
	<tr>
		<td width="100%"></td>
	</tr>
	<tr>
		<td width="100%"></td>
	</tr>
</table>
<table width="100%">
	<tr>
		<td align="center"><h1>Users</h1></td>
	</tr>
</table>
<table>
	<tr>
	</tr>
</table>
<table>
	<tr>
	</tr>
</table>
<br>
<table>
	<tr>
		<td>
<span class="">
</span>
&gt;Users
		</td>
	</tr>
</table>
<table width="100%" valign="top">
	<tr>
		<td>
<table    >
<tr>
<td  valign="top" align="left" >
<table width="100%">
	<tr>
		<td>
			<h2>User data</h2>
		</td>
	</tr>
	<tr>
		<td>
	 <div class="plain ">
		<div class="plain EntryUnit">
				<table>
					<tr>
						<td colspan="3" class="error">
							<html:errors property="enu5" />
						</td>
					</tr>
					<tr class="row">
							<th valign="middle" class=" header">
								userName
							</th>
						<td valign="middle" nowrap="nowrap" class=" value">
								<html:text onkeypress="if(event.keyCode==13){clickButton('ln7'); return false;}"  size="25" styleId="fld13" styleClass=" field" property="fld13" readonly="false"/>
						</td>
								<td class="error">
<span class=" error"><html:errors property="fld13"/></span>
</td>
					 	</tr>
					<tr class="row">
							<th valign="middle" class=" header">
								password
							</th>
						<td valign="middle" nowrap="nowrap" class=" value">
								<html:password onkeypress="if(event.keyCode==13){clickButton('ln7'); return false;}" styleId="fld14" size="25" styleClass=" field" property="fld14" readonly="false" redisplay="false"/>
						</td>
								<td class="error">
<span class=" error"><html:errors property="fld14"/></span>
</td>
					 	</tr>
					<tr class="row">
							<th valign="middle" class=" header">
								email
							</th>
						<td valign="middle" nowrap="nowrap" class=" value">
								<html:text onkeypress="if(event.keyCode==13){clickButton('ln7'); return false;}"  size="25" styleId="fld15" styleClass=" field" property="fld15" readonly="false"/>
						</td>
								<td class="error">
<span class=" error"><html:errors property="fld15"/></span>
</td>
					 	</tr>
					<tr class="row">
							<th valign="middle" class=" header">
								name
							</th>
						<td valign="middle" nowrap="nowrap" class=" value">
								<html:text onkeypress="if(event.keyCode==13){clickButton('ln7'); return false;}"  size="25" styleId="fld16" styleClass=" field" property="fld16" readonly="false"/>
						</td>
								<td class="error">
<span class=" error"><html:errors property="fld16"/></span>
</td>
					 	</tr>
					<tr class="row">
							<th valign="middle" class=" header">
								surname
							</th>
						<td valign="middle" nowrap="nowrap" class=" value">
								<html:text onkeypress="if(event.keyCode==13){clickButton('ln7'); return false;}"  size="25" styleId="fld17" styleClass=" field" property="fld17" readonly="false"/>
						</td>
								<td class="error">
<span class=" error"><html:errors property="fld17"/></span>
</td>
					 	</tr>
					<tr class="row">
							<th valign="middle" class=" header">
								phone
							</th>
						<td valign="middle" nowrap="nowrap" class=" value">
								<html:text onkeypress="if(event.keyCode==13){clickButton('ln7'); return false;}"  size="25" styleId="fld18" styleClass=" field" property="fld18" readonly="false"/>
						</td>
								<td class="error">
<span class=" error"><html:errors property="fld18"/></span>
</td>
					 	</tr>
					<tr>
						<td colspan="3">
					<table>
				      <tr>
					  <td> 
			<input title="Save" onclick="$('page8FormBean').target='_self'" class=" button"  id="button#ln7" name="button#ln7" type="submit" value="Save">
 </td>
					</tr>
				    </table>
				   </td>
			   </tr>
		  </table>
		</div>
	</div>
</td>
	</tr>
</table>
   </td>
<td  valign="top" align="left" >
<c:if test="${not(empty inu3) and (inu3.dataSize gt 0)}">
	<table width="100%">
	<tr>
		<td>
			<h2>Users</h2>
		</td>
	</tr>
	<tr>
		<td>
		<div class="plain ">
			<div class="plain IndexUnit">
				<table border="0" cellspacing="1" cellpadding="2" id="inu3_1_sortable">
					<tr>
						<th class=" header"></th>
						<th nowrap="nowrap" class=" header">oid</th>
						<th nowrap="nowrap" class=" header">userName</th>
						<th nowrap="nowrap" class=" header">email</th>
						<th nowrap="nowrap" class=" header">name</th>
						<th nowrap="nowrap" class=" header">surname</th>
						<th nowrap="nowrap" class=" header">phone</th>
					   		<th class=" header"></th>
					   		<th class=" header"></th>
					</tr>
				<c:forEach var="current" varStatus="status" items="${inu3.data}">
					<c:set var="index" value="${status.index}"/>	
						<tr class="row<c:if test="${inu3.currentIndex eq index}">Current</c:if>">	
								<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if>">
									<img src="WRResources/spacer.gif" class="bullet<c:if test="${inu3.currentIndex eq index}">Current</c:if>" border="0" alt="Modify"/>
								</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if> integer">				
										<fmt:formatNumber value="${current.oid}" pattern="${integerPattern}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.userName}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.email}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.name}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.surname}"/>
									</td>
									<!-- not linked attribute -->
									<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if> string">				
										<c:out value="${current.phone}"/>
									</td>
										<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if>">
											<c:choose>
								   				<c:when test="${inu3.currentIndex eq index}">
		 			<a title="Modify" class=" linkCurrent" href="<webratio:Link link="ln14" position="index"/>">
					Modify</a>
								   				</c:when>
								   				<c:otherwise>
		 			<a title="Modify" class=" link" href="<webratio:Link link="ln14" position="index"/>">
					Modify</a>
								   				</c:otherwise>
								   			</c:choose>
								   		</td>
										<td class=" value<c:if test="${inu3.currentIndex eq index}">Current</c:if>">
											<c:choose>
								   				<c:when test="${inu3.currentIndex eq index}">
		 			<a title="Delete" class=" linkCurrent" href="<webratio:Link link="ln20" position="index"/>">
					Delete</a>
								   				</c:when>
								   				<c:otherwise>
		 			<a title="Delete" class=" link" href="<webratio:Link link="ln20" position="index"/>">
					Delete</a>
								   				</c:otherwise>
								   			</c:choose>
								   		</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>
