<%@ page import = "gov.vha.edb.rules.web.builder.*" %>
<%@ page import = "java.io.*" %>
<%@ page import = "ilog.webui.dhtml.*" %>
<%@ page import = "ilog.webui.dhtml.components.*" %>
<%@ page import = "java.util.Locale" %>
<%@ page import = "java.util.Iterator" %>



<%@ page import = "ilog.rules.repository.model.*" %>
<%@ page import = "ilog.rules.repository.brm.*" %>
<%@ page import = "ilog.rules.repository.facility.*" %>



<%

  IlxWPort port = new IlxWPort(application, request, response, out);

  WebBuilder builder = WebBuilder.getInstance(request);

  String panelStyle = ";background-color:white;border-style:solid;border-color:black;border-width:1";

  IlrProject project = builder.getCurrentProject();

  String projectName = "";

  if (project!=null) {
    projectName = project.getDisplayName();
  }
  
  ClientProperties clientProperties = builder.getClientProperties();

%>



<html>

<head>

<title>Web Builder - Main Panel (IE5)</title>

</head>



<body>

<style>

.projecttitle {

  font-family: Arial, Helvetica, sans-serif;

  color:white;

  font-size:12pt;

  font-weight: bold;

}

.grayvline {

  border-right-style:solid;

  border-right-width:1px;

  border-right-color:#CCCCCC;

}

.title {

  font-family: Arial, Helvetica, sans-serif;

  font-size: 18px;

  font-style: normal;

  line-height: normal;

  font-weight: bold;

  color: #999999;

  text-decoration: none

}



</style>



<%port.open();%>



<%

  // Neither <jsp:include/> nor <@include> are satisfying:

  //   - <@include file="webactions.jsp">: webactions.jsp is not recompiled by 

  //     the webserver when modified (Tomcat 3.2).

  //   - <jsp:include page="webactions.jsp"/>: Tomcat 3.2 JSP compiler

  //     does not accept this syntax...

  // This is why we include the page with some java code:

  request.setAttribute("web.builder.port", port);

  RequestDispatcher rd;

  // Include the webactions.jsp page which defines the Javascript part of

  // a gov.vha.edb.rules.web.builder.WebAction java object.

  rd = request.getRequestDispatcher("/jsp/webaction.jsp");

  rd.include(request, response);

  // Include builderactions.jsp, which implements the Javascript functions

  // associated to the web actions defined in the gov.vha.edb.rules.web.builder.BuilderActions

  // java class.

  rd = request.getRequestDispatcher("/jsp/builderactions.jsp");

  rd.include(request, response);

%>



<table style="border-collapse:collapse" border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">



<tbody>

<tr height="1%">

  <td width="100%">

    <%builder.getMenuBar().print(port);%>

  </td>

  <td>

<%--  <td><img src="<%=request.getContextPath()%>/images/logo.gif" border="0"></td>--%>

  </td>

</tr>



<tr>

  <td>

    <table style="table-layout:fixed" border="0" height="100%" cellpadding="0" cellspacing="0">

      <tr>

        <td name="repexplorer" width="22%" valign="top" style="padding:0" valign="top">

          <table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">

            <tr><td style="padding: 15" bgcolor="#005DA0" class="projecttitle"><%builder.getProjectLabel().print(port);%></td></tr>

            <tr valign="top">

              <td>

                <table border="0" cellpadding="0" cellspacing="0">

                  <tr>

                    <td><img src="<%=request.getContextPath()%>/images/title_element1.gif" border="0"></td>

                    <td valign="top" width="100%">

                      <table width="100%" cellpadding="0" cellspacing="0">

                        <tr name="grayline" alt="grayline" >

                          <td width="75%" height="5" bgcolor="#CCCCCC"></td>

                          <td width="25%" height="5" bgcolor="#D4BB78"></td>

                        </tr>

                        <tr><td/><td height="7" class="grayvline"><img src="<%=request.getContextPath()%>/images/spacer.gif"></td></tr>

                      </table>

                    </td>

                  </tr>

                </table>

              </td>

            </tr>

            <tr height="100%">

              <td class="grayvline" height="100%">

                <table border="0"  height="100%" width="100%" cellpadding="0" cellspacing="0">

                  <tr height="100%">

                    <td width="5" bgcolor="#005DA0"></td>

                    <td valign="top">

                      <span style="position:relative;width:100%;height:100%">

                        <span style="padding-top:5px;z-index:1;height:100%;width:100%;overflow:auto;background-color:#FFFFFF">

                          <%builder.getExplorerPanel().print(port);%>

                        </span>

                      </span>

                    </td>

                  </tr>

                </table>

              </td>

            </tr>

            <tr>

              <td class="grayvline">

                <table border="0" height="100%" width="100%" cellpadding="0" cellspacing="0">

                  <tr height="45">

                    <td width="5" bgcolor="#D4BB78"></td>

                    <td>&nbsp;</td>

                    <td style="padding-right:6px" align="right"><img src="<%=request.getContextPath()%>/images/gray_bullet.gif" border="0"/></td>

                  </tr>

                </table>

              </td>

            </tr>

          </table>

        </td>

        <td>

          <table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">

            <tr valign="top">

              <td width="30" valign="top"><!-- <img src="<%=request.getContextPath()%>/images/title_gray.gif" border="0"> --></td>

              <!-- <td valign="bottom" class="title"><%builder.getElementLabel().print(port);%></td> -->

            </tr>

            <tr height="100%">

              <td></td>

              <td style="padding-top:15px;padding-right:15px;padding-bottom:15px">

                <div style="position:relative;width:100%;height:100%">

                  <div style="z-index:1;height:100%;width:100%">

                    <%builder.getCenterPanel().print(port);%>

                  </div>

                </div>

              </td>

            </tr>



            <tr>

              <td></td>

              <td style="padding-top:15px;padding-right:15px;padding-bottom:15px">

               <div style="position:relative;width:100%;height:100%">

                 <div style="z-index:1;height:100%;width:100%">

                  <%builder.getDtableEditPanel().print(port);%>

                 </div>

               </div>

              </td>

            </tr>





          </table>

        </td>

<%

if (builder.getPropertiesPlacement()==WebBuilder.PROPERTIES_EAST) {

%>

        <td width="30%" align="left" valign="top" style="padding:6;padding-left:3;padding-right:10">

          <span style="position:relative;width:100%;height:100%">

              <span style="z-index:1;height:100%;width:100%">

              <%builder.getPropertyPanel().print(port);%>

              </span>

          </span>

        </td>

<%

}

%>

      </tr>

    </table>

  </td>

</tr>



<tr>

  <td>

    <table border="0" width="100%" cellpadding="0" cellspacing="0">

      <tr>

        <td width="100%" valign="top" style="padding:6;padding-bottom:10;padding-right:10">

          <div style="position:relative;width:100%;height:100%">

              <div style="postion:relative;z-index:1;height:100%;width:100%">

                <%builder.getMessagePanel().print(port);%>

              </div>

<%--          </div>--%>

        </td>

      </tr>

    </table>

  </td>

</tr>



</tbody>



</table>

<%clientProperties.print(port);%>

<%port.close();%>



</body>



</html>

