<%@ 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" %>

<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" src="<vkc:rewrite page='/common/utils.js'/>"></script>

    <script type="text/javascript">

	window.name = "EXPLORER_MAINVIEW";

	function setAnchor() {
		<logic:present parameter="anchor">
			<bean:parameter id="anchor2" name="anchor"/>
			window.location.hash = '<%=anchor2%>';
		</logic:present>
	}
	
	function setCategoryId( id ) {
		 window.opener.setCategoryId( id );
		 window.close();
	}
	
	function setCategoryId( id, varId ) {
		 window.opener.setCategoryId( id, varId );
		 window.close();
	}

	</script>

	<style type="text/css">
		a:link    { font-weight: normal; text-decoration: none; color: #000000; }
		a:visited { font-weight: normal; text-decoration: none; color: #000000; }		
		a:hover	  {	color: #fd7b11; text-decoration: underline;}
	</style>

</head>

<body onload="javascript:setAnchor();" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<html:form action="/explorerTreeView" method="post">
  <tr><td colspan="2"><vkc:img page="/templates/${template.name}/gfx/trans.gif" width="2" height="3" border="0" alt=""/></td></tr>
  <tr><td colspan="2"><vkc:img page="/templates/${template.name}/gfx/trans.gif" width="2" height="1" border="0" alt=""/><vkc:img page="/templates/${template.name}/gfx/my_computer.gif" border="0" alt=""/></td></tr>

  <tr>
    <td><vkc:img page="/templates/${template.name}/gfx/trans.gif" width="5" height="1" border="0" alt=""/></td>
    <td width="100%" align="left" nowrap="nowrap">
	  <vkc:treeview name='<%=TreeView.SEARCH_TREE_KEY%>' path="/explorerTreeView.do" linkPath="javascript:setCategoryId(${id});" imageDir="/templates/${template.name}/gfx/tree" target="MAINVIEW"/>
    </td>
  </tr>
</html:form>
</table>
</body>
</html:html>