⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editor.jsp

📁 联合国农粮署牵头开发的geonetwork源代码最新版
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<%
//This file contains some ugly JSP code.
//Be wary, ye who brave the dragon's lair.
%>

<script type="text/javascript">
<!--
function addStyle(){
	for(i=0;i<document.typesEditorForm.panelStyleIds.length;i++){
		if(document.typesEditorForm.panelStyleIds.options[i].selected == true){
 			new_element = new Option(document.typesEditorForm.panelStyleIds.options[i].value,document.typesEditorForm.panelStyleIds.options[i].value,false,false);
 			document.typesEditorForm.otherSelectedStyles.options[document.typesEditorForm.otherSelectedStyles.length] = new_element;
 		}
 	}
}
function removeStyle(){
	var selected=0;
	for(i=0;i<document.typesEditorForm.otherSelectedStyles.length;i++){
		if(document.typesEditorForm.otherSelectedStyles.options[i].selected == true){
			selected++;
		}
		if(selected>0){
			for(i=0;i<document.typesEditorForm.otherSelectedStyles.length;i++){
				if(document.typesEditorForm.otherSelectedStyles.options[i].selected == true){
					document.typesEditorForm.otherSelectedStyles.options[i] = null;
				}
			}
		removeStyle();
		}
	}
}

function prepareFormData(){
	for(i=0;i<document.typesEditorForm.otherSelectedStyles.length;i++){
		document.typesEditorForm.otherSelectedStyles.options[i].selected = true;
	}
}
//-->
</script>

<% try { %>
<html:form action="/config/data/typeEditorSubmit" onsubmit="prepareFormData()">
  <table class="info">
	<tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.type.name"/>">
          <bean:message key="label.name"/>:
        </span>
      </td>
      <td class="datum">
		<bean:write name="typesEditorForm" property="typeName"/>
      </td>
    </tr>
	<tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.type.style"/>">
          <bean:message key="label.style"/>:
        </span>
      </td>
      <td class="datum">
        <html:select property="styleId">
          <html:options property="styles"/>
        </html:select> 
        <html:submit property="action">
          <bean:message key="config.data.sldWizard.label"/>
        </html:submit><br>
      </td>
    </tr>    
	<tr>
	  <td class="label">
		<span class="help" title="<bean:message key="help.type.style.additional"/>">
          <bean:message key="label.style.additional"/>:
        </span>
      </td>
      <td class="datum">
        <table>
        	<tr>
        		<td>
        			<html:select property="panelStyleIds" multiple="multiple">
          				<html:options property="styles"/>
        			</html:select>
        		</td>
        		<td style="font-size:10">
        			<input type="button" value=">>" style="width:30" onClick="addStyle()">
        			<br>
        			<input type="button" value="<<" style="width:30" onClick="removeStyle()">
        		</td>
        		<td>
        			<html:select property="otherSelectedStyles" style="width:130" multiple="multiple">
        				<html:options property="typeStyles"/>
        			</html:select>
        		</td>
        	</tr>
        </table> 
      </td>
    </tr>    
	<tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.type.srs"/>">
          <bean:message key="label.SRS"/>:
        </span>
      </td>
	  <td class="datum">
	  <table>
	  <tr>
	  <td>
		<html:text property="SRS" size="32"/>
		</td>
		<td>
        <html:submit property="action">
          <bean:message key="config.data.lookupSRS.label"/>
        </html:submit>
        </td>
		<td>
		    <a href="<bean:message key="label.SRSHelp.URL"/>">
              <bean:message key="label.SRSHelp"/>
            </a>
        </td>
        <td>
        &nbsp;-&nbsp;
        <a href="../../../srsHelp.do">
              <bean:message key="label.SRSList"/>
            </a>
        </td>
       
        </tr>
        </table>
	</td></tr>
	<!------------------------->
	
	
	
	<!------ This puts in the SRS WKT definition --->
	
	<tr>
	<td class="label">
		<span class="help" title="<bean:message key="help.type.srswkt"/>">
          <bean:message key="label.type.srswkt"/>:
        </span>
	  </td>
	  <td class="greyedOut2">
              <bean:write name="typesEditorForm" property="SRSWKT"/>
            </td>
	</tr>
	
	<tr>
	<td class="label">
		<span class="help" title="<bean:message key="label.type.crswkt"/>">
          <bean:message key="label.type.crswkt"/>:
        </span>
	  </td>
	  <td class="greyedOut2">
              <bean:write name="typesEditorForm" property="nativeSRSWKT"/>
            </td>
	</tr>
	
	<tr>
	
	<td class="label">
		<span class="help" title="<bean:message key="label.type.srshandling"/>">
          <bean:message key="label.type.srshandling"/>:
        </span>
	  </td>
	  <td class="greyedOut2">
              <html:select property="srsHandling">
	             <html:options property="allSrsHandling"/>
              </html:select>
      </td>
	</tr>
	
	
	<!-------------------------->

    <tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.type.title"/>">
          <bean:message key="label.title"/>:
        </span>
	  </td>
	  <td class="datum">
		<html:text property="title" size="60"/>
	  </td>
	</tr>

    <tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.type.bbox"/>">
          <bean:message key="label.bbox"/>:          
        </span>
	  </td>
	  <td class="datum">
        <html:submit property="action">
          <bean:message key="config.data.calculateBoundingBox.label"/>
        </html:submit><br/>
        
      <!-------------------------------------------------------------->
      <!----- This will add the bounding box of the data (in its CRS) to the page --->
      <!----- Its only added if its actually been calculated (i.e. they presed the generate bbox button) --->

<html:hidden property="dataMinX"/>
<html:hidden property="dataMinY"/>
<html:hidden property="dataMaxX"/>
<html:hidden property="dataMaxY"/>

<logic:notEmpty name="typesEditorForm"  property="dataMinX">
        <table border=0 width=90%>
          <tr>
            <td class="greyedOut">
              <span class="help" title="<bean:message key="help.type.dataminx"/>">
                <bean:message key="label.type.dataminx"/>:
              </span>
            </td>
            <td class="greyedOut">
              <bean:write name="typesEditorForm" property="dataMinX"/>
            </td>
            <td class="greyedOut">
              <span class="help" title="<bean:message key="help.type.dataminy"/>">
                <bean:message key="label.type.dataminy"/>:
              </span>
            </td>
            <td class="greyedOut">
              <bean:write name="typesEditorForm" property="dataMinY"/>
            </td>
          </tr>
          <tr>
            <td class="greyedOut">
              <span class="help" title="<bean:message key="help.type.datamaxx"/>">
                <bean:message key="label.type.datamaxx"/>:
              </span>
            </td>
            <td class="greyedOut">
             <bean:write name="typesEditorForm" property="dataMaxX"/>
            </td>
            <td class="greyedOut">
              <span class="help" title="<bean:message key="help.type.datamaxy"/>">
                <bean:message key="label.type.datamaxy"/>:
              </span>
            </td>
            <td class="greyedOut">
             <bean:write name="typesEditorForm" property="dataMaxY"/>
            </td>
          </tr>
        </table>
        
</logic:notEmpty>        
<!-------------------------------------------------------------->
        
        
        <table border=0>
          <tr>
            <td style="white-space: nowrap;">
              <span class="help" title="<bean:message key="help.type.minx"/>">
                <bean:message key="label.type.minx"/>:
              </span>
            </td>
            <td>
              <html:text property="minX" size="15"/>
            </td>
            <td style="white-space: nowrap;">
              <span class="help" title="<bean:message key="help.type.miny"/>">
                <bean:message key="label.type.miny"/>:
              </span>
            </td>
            <td>
              <html:text property="minY" size="15"/>
            </td>
          </tr>
          <tr>
            <td style="white-space: nowrap;">
              <span class="help" title="<bean:message key="help.type.maxx"/>">
                <bean:message key="label.type.maxx"/>:
              </span>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -