Update of /cvsroot/junk/junk/pages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1988
Added Files:
Config.jsp
Log Message:
initial import
--- NEW FILE: Config.jsp ---
<%@page contentType="text/html"%><?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
/*
* juNK - a file search system for smb shares
*
* Copyright 2004 by
* Marcus Proest (theevilflow at users dot sf dot net)
* Uwe van Heesch (tyron_e at users dot sf dot net)
*
* This file is part of junk (java useful net kollektor).
*
* junk is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* junk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with junk; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
%>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html locale="true">
<head>
<title><bean:message key="search.title"/></title>
<link href="pages/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="functions.js" type="text/javascript"></script>
</head>
<body bgcolor="white">
<logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application">
<font color="red">
Fatal Error: Ressources could not be loaded.
</font>
</logic:notPresent>
<h1><bean:message key="config.header" /></h1>
<br />
<br />
<logic:iterate id="pluginwrapper" name="config-plugin-list" scope="request">
<html:link href="/junk/Config.do?reset=true" styleClass="config-plugin" paramId="plugin" paramName="pluginwrapper" paramProperty="name">
<bean:write scope="page" name="pluginwrapper" property="description" />
</html:link> (<bean:write scope="page" name="pluginwrapper" property="name" />)
<br />
<logic:present name="pluginwrapper" property="properties">
<div class="config-props">
<logic:equal name="pluginwrapper" property="show" value="true">
<html:form action="Config">
<table>
<logic:iterate id="props" name="pluginwrapper" property="properties">
<tr>
<td>
<bean:write scope="page" name="props" property="key"/>
</td>
<td>
<!-- value(key) means that the setValue method of the Form is called -->
<bean:define id="key" name="props" property="key" />
<html:text property="<%=("value("+key+")")%>" styleClass="config-text" size="100"/>
</td>
</tr>
</logic:iterate>
</table>
<input type="hidden" name="plugin" value="<bean:write scope="request" name="config-chosen-plugin" />"/>
<html:submit><bean:message key="config.applybutton"/></html:submit> <bean:message key="config.applyhint"/><br />
<div align="right"><html:reset/></div>
</html:form>
</logic:equal>
</div>
</logic:present>
</logic:iterate>
<center><html:submit value="Restart Server" onclick="javascript:alert('You have no authorisation to restart the server!')"/></center>
<hr noshade="noshade">
<center>
<bean:message key="search.disclaimer" />
</center>
</body>
</html:html>
|