<%
import org.exoplatform.wiki.commons.Utils;
  %>

<%
  def rcontext = _ctx.getRequestContext() ;
  String searchLabel=_ctx.appRes("UIWikiSearchBox.label.Search");
  String wikiNodeURI = Utils.getCurrentWikiNodeUri();
  String restUrl= uicomponent.getContextSearchURL();
  rcontext.getJavascriptManager().importJavascript('eXo.wiki.UIWikiSearchBox', '/wiki/javascript/') ;
  rcontext.getJavascriptManager().addJavascript("eXo.wiki.UIWikiSearchBox.init('" + uicomponent.id +"','"+ uicomponent.FIELD_SEARCHVALUE +"','" +searchLabel + "','"+ wikiNodeURI +"');");
%>
<div class="UIWikiSearchBox">
  <% uiform.begin() %>
    <div class="SearchForm">
      <a class="AdvancedSearch" title="<%=_ctx.appRes("UIWikiPortlet.label.Advanced-Search")%>" onclick="<%=uicomponent.event("AdvancedSearch");%>"></a>
      <input name="restURL" type="hidden" value="$restUrl" />
      <div class="Input">
		<div class="SearchIcon">
        <%
          uiform.renderChildren() ;
        %>
		</div>	
      </div>
    </div>
  <%uiform.end()%>
  <div class="SearchPopup">
		<div class="SearchPopupTL">
			<div class="SearchPopupTR">
				<div class="SearchPopupTC"><span></span></div>
	  	</div>
		</div>
		<div class="SearchPopupML">
			<div class="SearchPopupMR">
				<div class="SearchPopupMC">
					<div class="SubBlock">

						<!--	<div class="MenuItem">	
								<a class="ItemIcon MenuIcon" title="" href="#">Forum</a>
							</div>

							<div class="MenuItem">
								<a class="ItemIcon MenuIcon" title="" href="#">Thread</a>
							</div>

							<div class="MenuItem">	
								<a class="ItemIcon MenuIcon" title="" href="#">Topic</a>
							</div>-->
						
					</div>
					<!--<div class="MenuResult">	
							Resul for "e"
						</div>-->
				</div>
			</div>
		</div>	
		<div class="SearchPopupBL">
			<div class="SearchPopupBR">
				<div class="SearchPopupBC"><span></span></div>
		  	</div>
	</div>
	</div>
 
</div>
