<%@ page import="com.novell.emframe.dev.*, com.novell.webaccess.common.JSPConduit"%>
<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>

<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>

<iman:stringtable bundle="DevResources"/>
<iman:stringtable bundle="FwResources"/>
<iman:stringtable bundle="BaseResources"/>
<% JSPConduit cond = JSPConduit.getJSPConduit(request); %>


<HTML>
<HEAD>
   <TITLE><iman:string key="ProductName"/></TITLE>
   <iman:stylesheet/>
   <iman:eMFrameScripts/>
   <iman:osScripts/>
    <jsp:include page='<%= cond.getPath("dev/ValidateIntegerScripts_inc.jsp") %>' flush="true" />

   <SCRIPT>
      var returnMethodName = "<c:out value="${param.returnMethodName}"/>";
      var readOnly = "<c:out value="${param.readOnly}"/>";
      var missingFieldsError = '<iman:toScript><iman:string key="Timestamp.InvalidValue" /></iman:toScript>';
   </SCRIPT>
   <SCRIPT src="<%= session.getAttribute("ModulesPath") %>/fw/javascripts/TimestampEditorPopupScripts.js"></SCRIPT>
   <SCRIPT LANGUAGE="JavaScript" src="<%= session.getAttribute("ModulesPath") %>/fw/javascripts/AnchorPosition.js"></SCRIPT>
	<SCRIPT LANGUAGE="JavaScript" src="<%= session.getAttribute("ModulesPath") %>/fw/javascripts/PopupWindow.js"></SCRIPT>
	<SCRIPT LANGUAGE="JavaScript" src="<%= session.getAttribute("ModulesPath") %>/fw/javascripts/CalendarPopup.js"></SCRIPT>
</HEAD>

<c:if test="${param.secs != null}">
 	<BODY onLoad="onInit(<c:out value="${param.secs}"/> );">
  </c:if>

<FORM name="form" method=post action="webacc">

   <iman:taskHeader titleKey="TimestampEditorTitle" titleBundle="FwResources"/><BR>
   <INPUT type="hidden" name="readOnly" value="<c:out value="${param.readOnly}"/>"/>
   <SPAN class="mediumtext"><iman:string key="TimestampSecondsLabel"/></SPAN><BR>
	<INPUT 	type="text" 
   			name="secondsName" readonly   			  			
   			style="width: <iman:string key="UI.textboxPixel"/>"
   			<c:if test="${readOnly==true}">disabled</c:if>
   	/>
   	<INPUT 	type="hidden" name="secondsName_ms" value="<c:out value="${param.secs}"/>" />
	
	<c:if test="${readOnly==false}">   		
		<iman:calendar name="secondsName" onLoadCallback="onLoadTSCalendar" returnCallback="returnFromTSCalendar"/>
		<A href="#" onClick="document.form.secondsName.value='';" 
			alt="<iman:string key="Button.Clear.alt"/>" 
			title="<iman:string key="Button.Clear.alt"/>"
		>
			<IMG src="<%= session.getAttribute("ModulesPath") %>/dev/images/delete16.gif" border="0">
		</A>		
	</c:if>

	<BR><BR>

   <SPAN class="mediumtext"><iman:string key="TimestampReplicaLabel"/></SPAN><BR>
	<INPUT 	type="text" 
			name="replicaNum" 
			value="<c:out value="${param.replica}"/>" 
			style="width: <iman:string key="UI.textboxPixel"/>" 
   			<c:if test="${readOnly==true}">disabled</c:if>
   			onChange='validateNumericString(this, "<%= cond.string("UIHandler.OnlyDigits") %> ")' 
   	/>
   	
   	<BR><BR>
   	
   <SPAN class="mediumtext"><iman:string key="TimestampEventIDLabel"/></SPAN><BR>
	<INPUT 	type="text" 
			name="eventID" 
			value="<c:out value="${param.eventid}"/>" 
			style="width: <iman:string key="UI.textboxPixel"/>"
			<c:if test="${readOnly==true}">disabled</c:if>
   			onChange='validateNumericString(this, "<%= cond.string("UIHandler.OnlyDigits") %> ")' 
   	/>
   	
   	<BR><BR>	
   
   <iman:bar/>
   <iman:button key="OK" onClick="onOk()"/>
   <iman:button key="Cancel" onClick="window.close()" />

</FORM>
<iman:osFooter/>
</BODY>
</HTML>
