confirmmove.jsp

来自「jboss服务器! java开发员必备! 一般与sqlserver数据库组合」· JSP 代码 · 共 94 行

JSP
94
字号
<%@ page import="org.jboss.portal.core.portlet.cms.admin.AdminCMSConstants,
                 java.util.Vector,
                 org.jboss.portal.core.portlet.cms.WebDAVUtil"%>
<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%@ page isELIgnored ="false" %>

<%
   Vector collList = (Vector)request.getAttribute("collList");
   String sMoveOldPath = (String)request.getAttribute("moveoldpath");
   String sRootPath = (String)request.getAttribute("rootpath");
   String sCurrPath = (String)request.getAttribute("currpath");
   WebDAVUtil wdUtil = new WebDAVUtil();
   String sParentPath = wdUtil.fetchParentPath(sCurrPath + "/");
%>

<portlet:defineObjects/>

<script language="JavaScript" type="text/javascript">
   function fillform(val)
   {
      moveform.movetopath.value = val;
      moveform.showmovetopath.value = val;
   }
</script>

<table width="100%">
<th class="portlet-section-header">${n:i18n("TITLE_HEAD")} :: ${n:i18n("TITLE_MOVECONFIRM")}</th>
<tr><td height="10"></td></tr>
</table>

<table width="100%">
<tr>
<td valign="top" width="50%">
<font class="portlet-font">Moving Resource <%= sMoveOldPath %> to:</font>
<br><br>
<form name="moveform" action="<portlet:actionURL>
    <portlet:param name="op" value="<%= AdminCMSConstants.OP_MOVE %>"/>
    <portlet:param name="moveoldpath" value="<%= sMoveOldPath %>"/>
    </portlet:actionURL>" method="post">
    <input type="hidden" name="movetopath" value="">
    <font class="portlet-font">Destination Directory:</font> <input type="text" name="showmovetopath" size="40" value="" DISABLED class="portlet-form-input-field">
    <br><br>
    <input type="submit" value="MOVE" name="submit" class="portlet-form-input-field">
    <input type="submit" value="CANCEL" name="submit" class="portlet-form-input-field">
</form>
</td>
<td valign="top" width="50%">
<font class="portlet-font">Select a directory to move resource to, or browse to the destination directory.</font>
<br>
<font class="portlet-font">You are currently browsing: <%= sCurrPath %></font>
<br><br>
<a class="portlet-menu-item" href="<portlet:renderURL>
   <portlet:param name="op" value="<%= AdminCMSConstants.OP_CONFIRMMOVE %>"/>
   <portlet:param name="path" value="<%= sMoveOldPath %>"/>
   <portlet:param name="navpath" value="<%= sParentPath %>"/>
   </portlet:renderURL>">
   <img src="<%= renderRequest.getContextPath() + AdminCMSConstants.DEFAULT_IMAGES_PATH%>/upfolder.gif" alt="up" border="0">&nbsp;Up to Parent Directory</a>
<br>
<%
   // special case for root, so people can copy/move resources to it.
   if (sRootPath.equals(sCurrPath))
   {
%>
   &nbsp;&nbsp;<img src="<%= renderRequest.getContextPath() + AdminCMSConstants.DEFAULT_IMAGES_PATH%>/plus.gif" alt="expand" border="0">
   &nbsp;<a class="portlet-menu-item" href="javascript:fillform('<%= wdUtil.cleanDoubleSlashes(sCurrPath) %>')">Root Directory</a>
   <br>
<%
   }
   for (int i=0; i < collList.size(); i++)
   {
      String[] sAItem = (String[])collList.elementAt(i);
      String sDisplayname = sAItem[0];
      String sIsColl = sAItem[2];
      if ("COLLECTION".equals(sIsColl))
      {
%>
   &nbsp;&nbsp;<a href="<portlet:renderURL>
   <portlet:param name="op" value="<%= AdminCMSConstants.OP_CONFIRMMOVE %>"/>
   <portlet:param name="path" value="<%= sMoveOldPath %>"/>
   <portlet:param name="navpath" value="<%= sCurrPath + "/" + sDisplayname %>"/>
   </portlet:renderURL>">
   <img src="<%= renderRequest.getContextPath() + AdminCMSConstants.DEFAULT_IMAGES_PATH%>/plus.gif" alt="expand" border="0"></a>
   &nbsp;<a class="portlet-menu-item" href="javascript:fillform('<%= wdUtil.cleanDoubleSlashes(sCurrPath + "/" + sDisplayname) %>')"><%= sDisplayname %></a>
   <br>
<%
      }
    }
%>
</td>

</tr>
</table>

⌨️ 快捷键说明

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