📄 revisionlistoptions.jsp
字号:
<%--
- Copyright (c) 2004, 2005 Polarion Software, All rights reserved.
- Email: community@polarion.org
-
- This program and the accompanying materials are made available under the
- terms of the Apache License, Version 2.0 (the "License"). You may not use
- this file except in compliance with the License. Copy of the License is
- located in the file LICENSE.txt in the project distribution. You may also
- obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
-
-
- POLARION SOFTWARE MAKES NO REPRESENTATIONS OR WARRANTIES
- ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESSED OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. POLARION SOFTWARE
- SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT
- OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
--%>
<%@ page import="java.util.Enumeration" %>
<jsp:useBean id="bean" scope="request" type="org.polarion.svnwebclient.web.controller.RevisionListBean"/>
<form name="revision_count" method="GET" action="<%=request.getRequestURL()%>" style="margin:0px;padding:0px;">
<%
for (Enumeration e = request.getParameterNames(); e.hasMoreElements(); ) {
String name = (String) e.nextElement();
String value = request.getParameter(name);
if (!"revcount".equals(name) && !name.startsWith("jsp.")) {
%>
<input type="hidden" name="<%=name%>" value="<%=value%>"/>
<%
}
}
%>
<input type="hidden" name="revcount" id="revcount"/>
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr class="value" nowrap="true">
<td class="value" style="padding-left:20px;">
<input type="submit" class="button" value="Show last"
onclick="javascript:{
var re = new RegExp('[0-9.]');
if (!re.test(document.getElementById('count').value) || document.getElementById('count').value<=0) {
alert('Revision count must be numeric and greater then 0');
return false;
} else {
document.getElementById('revcount').value=document.getElementById('count').value;
return true;
}
}"/>
</td>
<td class="value" style="padding-left:5px;">
<input type="text" id="count" maxlength="10" style="font-size:11px;width:50px;margin:0;text-align:right" value="<%=bean.getRevisionList().getRevisionsCount()%>"/>
</td>
<td class="value" style="padding-left:20px;padding-right:20px;">
<input type="submit" class="button" value="Show all"
onclick="javascript:{
document.getElementById('revcount').value='-1';
}"/>
</td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -