 <%-- $Id: loggingForm.jsp,v 1.1.2.5 2004/05/13 11:58:14 asivakumar Exp $ --%>
 
 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

 <META HTTP-EQUIV="pragma" CONTENT="no-cache">
 <META HTTP-EQUIV="cache-control" CONTENT="no-store">
 <form action="/admin/logAction.do" method="POST">
 <input type="hidden" name="method" value="logFormAction">
 <span class="errorText"><html:errors/></span>
 <table width="80%" border="0" align="left" cellpadding="0" cellspacing="0">
 	
	<tr>
	<td width=10>
	&nbsp;
	</td>
	<td height=30 valign="bottom">
	<span class="header1"><fmt:message key="webclient.admin.logging.title"/></span>
	</td>
	</tr>
	<tr>
	<td width=10 height=1>
	</td>
	<td class=hline height="1"></td>
	</tr>

	<tr>
	<td width=10 height=10 colspan=2>
	<img src=/webclient/common/images/trans.gif width=1 height=1>
	</td>
	</tr>


	
 <tr> 
 <td width=10>&nbsp;</td>
 <td><table width="100%" border="0" align="left" cellpadding="5" class="botborder" cellspacing="0">

 <c:if test="${!empty successMsg}">

 <tr align="center">
 <td align="center" colspan=5 class="responseText"><img src="/webclient/common/images/tick.gif" hspace="4"><c:out
 value="${successMsg}"/></td>
 </tr>

 </c:if>

<tr class="header2Bg">
 <td><span class="boldText"><fmt:message key="webclient.admin.logging.loggingform.filename"/></span></td>
 <td><span class="boldText"><fmt:message key="webclient.admin.logging.loggingform.maxlines"/></span></td>
 <td><span class="boldText"><fmt:message key="webclient.admin.logging.loggingform.filecount"/></span></td>
 <td><span class="boldText"><fmt:message key="webclient.admin.logging.loggingform.maxlinescached"/></span></td>
 <td><span class="boldText"><fmt:message key="webclient.admin.logging.loggingfrom.loglevel"/></span></td>
 </tr>
 
 <c:forEach var="file" items="${LoggingBean.fileName}" varStatus="status"> 
 <c:if test = "${file != 'nmsout.txt' && file != 'nmserr.txt' && file != 'stdout.txt' && file != 'stderr.txt'}">
 <tr>
 <td>
 <c:choose>
 <c:when test="${file == 'nmsout.txt' || file == 'nmserr.txt'}">
 <c:out value="${file}"/>
 <input type=hidden name="fileName" value="<c:out value="${file}"/>">
 </c:when>
 <c:otherwise>
 <input type=hidden name="fileName" value="<c:out value="${file}"/>">
 <span class="text">
	 <c:out value="${file}"/>
	 </span>
 </c:otherwise>
 </c:choose>
 </td>
 <td>
 <p>
 <select  style="width:110" styleClass="logFormStyle" name="maxLines">
 <option value='5000' 
 <c:if test="${LoggingBean.maxLines[status.index] == '5000'}">selected</c:if>>
 5000
 </option>
 <option value='10000' 
 <c:if test="${LoggingBean.maxLines[status.index] == '10000'}">selected</c:if>>
 10000
 </option>
 <option value='20000' 
 <c:if test="${LoggingBean.maxLines[status.index] == '20000'}">selected</c:if>>
 20000</option>
 </select>
 </td>
 <td>
 <input type="text" name="fileCount"  class="logFormStyle" value="<c:out value='${LoggingBean.fileCount[status.index]}'/>">
 </td>
 <td>
 <c:choose>
 <c:when test="${file != 'stdout.txt' && file != 'stderr.txt'}">
<input type="text" name="cache"  class="logFormStyle" value="<c:out value='${LoggingBean.cache[status.index]}'/>">
 </c:when>
 <c:otherwise>
 <input type=hidden name="cache" value="0">&nbsp;
 </c:otherwise>
 </c:choose>
 </td>

 <td>
<c:choose>
<c:when test="${file != 'nmsout.txt' && file != 'nmserr.txt' && file != 'stderr.txt' && file != 'stdout.txt'}">
  <select style="width:110" class="logFormStyle" name="logLevel" value="${LoggingBean.logLevel[status.index]}">
   <option value='1' <c:if test="${LoggingBean.logLevel[status.index] == '1'}">selected</c:if>>Summary</option>
   <option value='2' <c:if test="${LoggingBean.logLevel[status.index] == '2'}">selected</c:if>>Intermediate</option>
   <option value='3' <c:if test="${LoggingBean.logLevel[status.index] == '3'}">selected</c:if>>Verbose</option>
   <option value='4' <c:if test="${LoggingBean.logLevel[status.index] == '4'}">selected</c:if>>Debug</option>
  </select>
 </c:when>
 <c:otherwise>
 <input type=hidden name="logLevel" value="0">&nbsp;
 </c:otherwise>
 </c:choose>
 </td>
 </tr>

</c:if>
 </c:forEach>

 <c:forEach var="file" items="${LoggingBean.fileName}" varStatus="status"> 
 <c:if test = "${file == 'nmserr.txt' || file == 'nmsout.txt'}">
 <tr>
 <td class="text">
 <c:choose>
 <c:when test="${file == 'nmsout.txt' || file == 'nmserr.txt'}">

<c:out value="${file}"/>
 <input type=hidden name="fileName" value="<c:out value="${file}"/>">
 </c:when>
 <c:otherwise>
 <input type=hidden name="fileName" value="<c:out value="${file}"/>">
<c:out value="${file}"/>
 </c:otherwise>
 </c:choose>
 </td>
 <td>
 <p>
 <select  style="width:110" styleClass="logFormStyle" name="maxLines">
 <option value='5000'
 <c:if test="${LoggingBean.maxLines[status.index] == '5000'}">selected</c:if>>
 5000
 </option>
 <option value='10000'
 <c:if test="${LoggingBean.maxLines[status.index] == '10000'}">selected</c:if>>
 10000
 </option>
 <option value='20000'
 <c:if test="${LoggingBean.maxLines[status.index] == '20000'}">selected</c:if>>
 20000</option>
 </select>
 </td>
 <td>
 <input type="text" name="fileCount"  class="logFormStyle" value="<c:out value='${LoggingBean.fileCount[status.index]}'/>">
 </td> <td>
 <c:choose>
 <c:when test="${file != 'stdout.txt' && file != 'stderr.txt'}">
 <input type="text" name="cache"  class="logFormStyle" value="<c:out value='${LoggingBean.cache[status.index]}'/>">
 </c:when>
 <c:otherwise>
 <input type=hidden name="cache" value="0">&nbsp;
 </c:otherwise>
 </c:choose>
 </td>

 <td>
 <c:choose>
 <c:when test="${file != 'nmsout.txt' && file != 'nmserr.txt' && file != 'stderr.txt' && file != 'stdout.txt'}">
 <select style="width:110" class="logFormStyle" name="logLevel" value="${LoggingBean.logLevel[status.index]}">
 <option value='1' <c:if test="${LoggingBean.logLevel[status.index] == '1'}">selected</c:if>>Summary</option>
 <option value='2' <c:if test="${LoggingBean.logLevel[status.index] == '2'}">selected</c:if>>Intermediate</option>
 <option value='3' <c:if test="${LoggingBean.logLevel[status.index] == '3'}">selected</c:if>>Verbose</option>
 <option value='4' <c:if test="${LoggingBean.logLevel[status.index] == '4'}">selected</c:if>>Debug</option>
 </select>
 </c:when>
 <c:otherwise>
 <input type=hidden name="logLevel" value="0">&nbsp;<span class=textSmall><a href="/admin/LogParametersAction.do?fileName=<c:out value="${file}"/>"><fmt:message key='webclient.admin.logging.loggingfrom.linktext'/>&nbsp;<c:out value="${file}"/></a></span>
 </c:otherwise>
 </c:choose>
 </td>
 </tr>
 </c:if>   
 </c:forEach>


<c:forEach var="file" items="${LoggingBean.fileName}" varStatus="status"> 
<c:if test = "${file == 'stderr.txt' || file == 'stdout.txt'}">
<tr>
<td>
<c:choose>
<c:when test="${file == 'nmsout.txt' || file == 'nmserr.txt'}">
<a href="/admin/LogParametersAction.do?fileName=<c:out value="${file}"/>"><c:out value="${file}"/></a>
<input type=hidden name="fileName" value="<c:out value="${file}"/>">
</c:when>
<c:otherwise>
<input type=hidden name="fileName" value="<c:out value="${file}"/>">
<span class="text">
<c:out value="${file}"/>
</span>
</c:otherwise>
</c:choose>
</td>
<td>
<p>
<select  style="width:110" styleClass="logFormStyle" name="maxLines">
<option value='5000'
<c:if test="${LoggingBean.maxLines[status.index] == '5000'}">selected</c:if>>
5000
</option>
<option value='10000'
<c:if test="${LoggingBean.maxLines[status.index] == '10000'}">selected</c:if>>
10000
</option>
<option value='20000'
<c:if test="${LoggingBean.maxLines[status.index] == '20000'}">selected</c:if>>
20000</option>
</select>
</td>
<td>
<input type="text" name="fileCount"  class="logFormStyle" value="<c:out value='${LoggingBean.fileCount[status.index]}'/>">
</td> 
<td>
<c:choose>
<c:when test="${file != 'stdout.txt' && file != 'stderr.txt'}">
<input type="text" name="cache"  class="logFormStyle" value="<c:out value='${LoggingBean.cache[status.index]}'/>">
</c:when>
<c:otherwise>
<input type=hidden name="cache" value="0">&nbsp;
</c:otherwise>
</c:choose>
</td>

<td>
<c:choose>
<c:when test="${file != 'nmsout.txt' && file != 'nmserr.txt' && file != 'stderr.txt' && file != 'stdout.txt'}">
<select style="width:110" class="logFormStyle" name="logLevel" value="${LoggingBean.logLevel[status.index]}">
<option value='1' <c:if test="${LoggingBean.logLevel[status.index] == '1'}">selected</c:if>>Summary</option>
<option value='2' <c:if test="${LoggingBean.logLevel[status.index] == '2'}">selected</c:if>>Intermediate</option>
<option value='3' <c:if test="${LoggingBean.logLevel[status.index] == '3'}">selected</c:if>>Verbose</option>
<option value='4' <c:if test="${LoggingBean.logLevel[status.index] == '4'}">selected</c:if>>Debug</option>
</select>
</c:when>
<c:otherwise>
<input type=hidden name="logLevel" value="0">&nbsp;
</c:otherwise>
</c:choose>
</td>
</tr>

</c:if>   

 </c:forEach>

 <tr> 
 <td align="right">&nbsp;</td>
 <td colspan="5"> 

 <input type="submit" name="Submit" class="button" value="<fmt:message key='webclient.admin.logging.button.submit'/>"> 
 <input type="button" name="Cancel" class="button" value="<fmt:message key='webclient.admin.logging.button.cancel'/>" onclick="history.back();">
 <input type="reset" name="Reset" class="button" value="<fmt:message key='webclient.admin.logging.button.reset'/>">
 </td>
 </td>
 </tr>
 </table></td>
 </tr>
 </table>
 </form>
