<%-- $Id: MainLayout.jsp,v 1.18.4.12.2.20 2006/03/17 04:37:50 sudharshan Exp $ --%>

<%@page contentType="text/html;charset=UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<html>
<head>
<title><fmt:message key="webclient.mainwindow.title"/></title>
<%@include file="/webclient/common/jspf/commonIncludes.jspf" %>

<script>

function simpleSearch()
{
  if(this.document.ssearchForm.simpleSearchName.value == '')
	{
		alert("Enter the device name to search")
			return false;
	}
    document.ssearchForm.submit();
}

</script>

</head>
<body class="bgNone">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%--
   <tr style=" background-color: rgb(73, 109, 185);"> 
--%>
<tr class="bannerbox">
        <td valign="top">
            <tiles:insert attribute="Tab"/>
        </td>
  </tr>
 
<tr class="searchBg">
      <td height="26" class="topStrip"  align="right">
        <table border="0"cellspacing="0" cellpadding="0">
          <tr>
            <form name="ssearchForm" action="/topo/topoAdvancedSearch.do" method="GET" onsubmit='return simpleSearch()'>

            <td align="right" class="boldText"> <fmt:message key="webclient.common.search.find"/>
            <input name="simpleSearchName" type="text" class="simpleSearch">&nbsp;</td>
            <td><input name="Go" type="button" class="button" onClick="javascript:simpleSearch();" value="<fmt:message key='webclient.common.search.go'/>"></td>
            		<input type="hidden" name="requestid" value="SNAPSHOT">
			<input type="hidden" name="showMenus" value="false">
			<input type="hidden" name="selectedNode" value="Network Database.CompleteView">
			<input type="hidden" name="selectedTab" value="Network Database">  </form>
	    <td>&nbsp;

<a href="/topo/topoAdvancedSearch.do?ComplexSearchView=Topology&viewId=Network%20Database.CompleteView&searchAction=/topoAdvancedSearch.do&selectedTab=Network%20Database"><span class="text"><fmt:message key="webclient.common.search.adv"/></span></a>

</td>
	  
	  </tr>
	</table>
      </td>
    </tr>


<%--
<tr height="2">
<td valign="top" align="left" class="seperator1" width="3">
	            </td>
</tr>
--%>
  <tr>
        <td >
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
  	        <tr>
  	            <td valign="top" width="180" height="100%">
  		
  	                <table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">
		
	                    <tr class="inventoryName" align="left" valign="top"> 
		                    <td height="5" align="right">
                                <%--img src="/webclient/common/images/<c:out value="${selectedskin}"/>/curveRight.gif" width="4" height="4" alt=""align="top" border=0--%>
                            </td>
	                    </tr>
		
	                    <tr class="inventoryName" >
		                    <td valign="top" colspan="2" height="360">
                                <tiles:insert attribute="Tree"/>
                            </td>
	                    </tr>
		<tr class="inventoryName">
      <td valign="top">
      <iframe src="/fault/accPanel.do" FRAMEBORDER=0 WIDTH=200 height=180 scrolling="no">
      </iframe>
      </td>
      </tr>
	                  
	                </table>
	            </td>
<%--
	            <td width="2"><img src="/webclient/common/images/trans.gif" width=1 height=1></td>
--%>

	            <td valign="top" align="left" class="seperator1" width="2">
	            </td>
		
	            <td width="90%" valign="top">
	                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <tr height="2" class="inventoryName">
                                    <td valign="top" align="left" class="seperator1" width="3">
                                    </tr>
		                <tr>
		                    <td>
                                <tiles:insert attribute="MainPage"/>
                            </td>
                
            <%--    <td valign="top">
                    <tiles:insert attribute="Right"/>
                </td> --%>
	                    </tr>
	                </table>
	            </td>	

                
	        
	        </tr>

       </table>


    </td>
    

    
  </tr>
</table>

<c:if test="${initParam.showPageLoadingTime == 'true'}">
  <%
     long endTime = System.currentTimeMillis();
     Long start = (Long)request.getAttribute("startTime");
     long loadingtime = 0;
     if(start != null)
     {
        long startTime = start.longValue();
        loadingtime = endTime - startTime;
     }
  %>
  <table class="botBorder" width="100%" border="0" cellspacing="2" cellpadding="0">
    <tr>
    <td align="center" valign="bottom" height="1"><span class="boldText">Loading Time : <%= loadingtime %> ms </span></td>
    </tr>
  </table>
</c:if>

</body>
</html>
