<%@ page language="java" buffer="100kb" errorPage="/common/error.jsp"%>

<%@ taglib uri="struts-bean"  prefix="bean"  %>
<%@ taglib uri="struts-html"  prefix="html"  %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="vkc-taglib"   prefix="vkc"   %>

<%@ page import="vkc.util.treeview.TreeView" %>
<%@ page import="java.util.HashMap" %>

<vkc:checkLogin/>
<vkc:init/>
<html:html locale="true">
<head>
    <meta http-equiv="content-type"  content="text/html; charset=iso-8859-1" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="pragma"        content="no-cache" />
    <meta http-equiv="expires"       content="0" />
    <meta http-equiv="robots"        content="noindex" />
    <meta http-equiv="robots"        content="nofollow" />
    <title><vkc:message key="vkc"/></title>
    <vkc:cssinclude />

	<script type="text/javascript">
    window.name = 'CLUSTERFRAMESET';
    </script>
</head>

<%
	HashMap parameter = new HashMap();
	
	parameter.put("categoryId", request.getParameter("categoryId"));
	parameter.put("sourcePageId", request.getParameter("sourcePageId"));
	
	String targetId = request.getParameter("targetId");
	
	if (targetId != null) {
	    parameter.put("targetId", targetId);
	}
	
	String subTargetId = request.getParameter("subTargetId");

	if (subTargetId != null) {
	    parameter.put("subTargetId", subTargetId);
	}
	
	request.setAttribute("params", parameter);
%>

<frameset cols="250,2,*" border="0" borderColor="#ffffff" frameSpacing="0" >
	<bean:parameter id="categoryId"  name="categoryId"/>

    <frameset rows="25,*" border="0" borderColor="#ffffff" frameSpacing="0" >
	  <vkc:frame page="/templates/${template.name}/common/headerNavigatorView.jsp" frameName="HEADERTREEVIEW" scrolling="no" frameborder="0" noresize="true"/>
      <vkc:frame page="/clusterTreeView.do?selNode=-1&expand=true&action=create" frameName="CLUSTERTREEVIEW" scrolling="auto" frameborder="0"/>	
    </frameset>
	<vkc:frame page="/templates/${template.name}/common/verticalDelimiter.jsp" frameName="DELIMITERVIEW" scrolling="no" frameborder="0" noresize="true"/>
    
    <frameset rows="40%,2,*" border="0" borderColor="#ffffff" frameSpacing="0" >
	  <vkc:frame page="/clusterDocumentView.do" frameName="CLUSTERDOCUMENTVIEW" scrolling="auto" frameborder="0"/>
	  <vkc:frame page="/templates/${template.name}/common/horizontalDelimiter.jsp" frameName="DELIMITERVIEW" scrolling="no" frameborder="0" noresize="true"/>
	  
	  <frameset rows="*,2,40" border="0" borderColor="#ffffff" frameSpacing="0" >
	    <vkc:frame page="/clusterEditCategoryView.do" frameName="CLUSTEREDITCATEGORYVIEW" scrolling="auto" frameborder="0"/>
	    <vkc:frame page="/templates/${template.name}/common/horizontalDelimiter.jsp" frameName="DELIMITERVIEW" scrolling="no" frameborder="0" noresize="true"/>
	    <vkc:frame page="/clusterResultSave.do" name="params" frameName="CLUSTERRESULTSAVEVIEW" scrolling="auto" frameborder="0"/>
      </frameset>
    </frameset>
</frameset>
</html:html>