<%@include file="/WEB-INF/includeTemplate.inc"%>
<jsp:useBean id="arbolForm" scope="request" type="com.ejie.y42b.forms.mant.Y42bFormArbol" />



<form:form id="frmArbol" name="frmArbol" action="../arbol/refrescar" method="post" commandName="arbolForm">
<div id="arbol.mostrar_entidades">
<div id="arbol.no_activas">
	<img id="y42bReload" class="y42b-reload" style="cursor: pointer;" onClick="functActivas(this);" src="${staticsUrl}/y42b/images/y42b_reload.png">
	&nbsp;
	<input type="button" id="y42btree_ajaxlive_expandir" class="ui-button ui-widget ui-state-default ui-corner-all" value="+">
	<input type="button" id="y42btree_ajaxlive_contraer" class="ui-button ui-widget ui-state-default ui-corner-all" value="-">
	&nbsp;&nbsp;
	<form:checkbox path="chkShowEntidadesNoActivas" onClick="functActivas(this);"/>
	<spring:message code="arbol.mostrar_entidades"/>&nbsp;<spring:message code="arbol.no_activas"/>
	
</div>

</div>
<div id="tree_contenedor">
	<div id="tree_ajaxlive"></div>
</div>
<form:hidden path="nodeId"/>
<form:hidden path="urlTree"/>
<form:hidden path="seccion"/>

</form:form>

<!-- <a href="javascript:treeSelect();">tree</a>  -->

<script language="JavaScript">
var urlTree="<%=arbolForm.getUrlTree()%>";
var nodeSelected="";


function functActivas(boxName){
	y42bVarBotonRefrescarPulsado = true;
	if(boxName.checked == true) { 
		urlTree="/y42bVistaWar/arbol/ajaxTree?mostrarEntidadesNoActivas=1";
	}else{
		urlTree="/y42bVistaWar/arbol/ajaxTree?mostrarEntidadesNoActivas=0";
	}
	//guardarEstadoApp("G_ROOT");
	document.getElementById("frmArbol").submit();
}

</script>