<commit_before><%@page errorPage="Exception.jsp"%>
<%@taglib prefix="c"    uri="http://java.sun.com/jstl/core"%>
<%@taglib prefix="fmt"  uri="http://java.sun.com/jstl/fmt" %>
<%@taglib prefix="str"  uri="http://jakarta.apache.org/taglibs/string"%>

<%@include file = "../common/StdTop.inc"%>

<%-- /** set to request locale **/ --%>
<c:set var="locale"><%=request.getLocale()%></c:set>
<fmt:setLocale value="${locale}"/>
<c:remove var="locale"/>

<jsp:useBean id="cache" class="org.efaps.beans.CacheSessionBean" scope="session"/>

<fmt:bundle basename="StringResource">

<%-- /** constructor for the form bean **/ --%>
<c:set var="method" value="execute"/>
<%@include file = "../common/FormBeanConstructor.inc"%>
<c:remove var="method"/>


<%-- /** sets the target of the form process **/ --%>
<c:choose>
  <c:when test="${param.targetProcess ne null}">
    <c:set var="targetProcess" value="${param.targetProcess}"/>
  </c:when>
  <c:otherwise>
    <c:set var="targetProcess" value="eFapsFrameHidden"/>
  </c:otherwise>
</c:choose>

<%-- /** sets the dom context where the title, the header and footer menu must be set **/ --%>
<c:choose>
  <c:when test="${param.domContext ne null}">
    <c:set var="domContext" value="${param.domContext}"/>
  </c:when>
  <c:otherwise>
    <c:set var="domContext" value="parent."/>
  </c:otherwise>
</c:choose>

<c:if test="${param.mode ne null or param.mode eq 'print'}">
  <script language="Javascript">
    eFapsSetTitle('<c:out value="${uiObject.title}" escapeXml="false"/>');
  </script>
</c:if>

<c:if test="${empty param.mode or param.mode ne 'print'}">
  <html>
    <head>
    </head>
    <link rel="StyleSheet" href="../styles/eFapsDefault.css" type="text/css"/>
    <script type="text/javascript" src="../javascripts/eFapsToolbar.js"></script>
    <script type="text/javascript" src="../javascripts/eFapsDefault.js"></script>

    <script language="Javascript">
      function eFapsProcessEnd() {
        <%-- /** title **/ --%>
<%--
        <c:choose>
          <c:when test="${uiObject.editMode}">
            <c:out value="${domContext}"/>eFapsSetTitle('<c:out value="${uiObject.ukTitle}" escapeXml="false"/>');
          </c:when>
          <c:otherwise>
--%>
            <c:out value="${domContext}"/>eFapsSetTitle('<c:out value="${uiObject.title}" escapeXml="false"/>');
<%--
          </c:otherwise>
        </c:choose>
--%>

        <%-- /** menu **/ --%>
        <%@include file="StdMenu.inc"%>
        with (topMenu)  {
          addSeparator();

          <%-- /* export button */ --%>
          with (addCommand(''))  {
            setJavaScript("eFapsCommonPrint('../common/Form.jsp?command=<%=request.getParameter("command")%>&oid=<%=request.getParameter("oid")%>&mode=print')");
            setIcon("../images/eFapsMiniToolbarExport.gif");
          }

          <%-- /* print button */ --%>
          with (addCommand(''))  {
            setJavaScript("eFapsCommonPrint('../common/Form.jsp?command=<%=request.getParameter("command")%>&oid=<%=request.getParameter("oid")%>&mode=print')");
            setIcon("../images/eFapsMiniToolbarPrint.gif");
          }

          addSeparator();
        }
        top.frameMenu.doMenu(<c:out value="${domContext}"/>document);

        <%-- /** footer action menu:<commit_msg>- text 'unknown' in the toolbar menu does not appear anymore<commit_after><%--
 
  Copyright 2006 The eFaps Team
 
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
 
       http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  Author:          tmo
  Revision:        $Rev$
  Last Changed:    $Date$
  Last Changed By: $Author$
 
--%>

<%@page errorPage="Exception.jsp"%>
<%@taglib prefix="c"    uri="http://java.sun.com/jstl/core"%>
<%@taglib prefix="fmt"  uri="http://java.sun.com/jstl/fmt" %>
<%@taglib prefix="str"  uri="http://jakarta.apache.org/taglibs/string"%>

<%@include file = "../common/StdTop.inc"%>

<%-- /** set to request locale **/ --%>
<c:set var="locale"><%=request.getLocale()%></c:set>
<fmt:setLocale value="${locale}"/>
<c:remove var="locale"/>

<jsp:useBean id="cache" class="org.efaps.beans.CacheSessionBean" scope="session"/>

<fmt:bundle basename="StringResource">

<%-- /** constructor for the form bean **/ --%>
<c:set var="method" value="execute"/>
<%@include file = "../common/FormBeanConstructor.inc"%>
<c:remove var="method"/>


<%-- /** sets the target of the form process **/ --%>
<c:choose>
  <c:when test="${param.targetProcess ne null}">
    <c:set var="targetProcess" value="${param.targetProcess}"/>
  </c:when>
  <c:otherwise>
    <c:set var="targetProcess" value="eFapsFrameHidden"/>
  </c:otherwise>
</c:choose>

<%-- /** sets the dom context where the title, the header and footer menu must be set **/ --%>
<c:choose>
  <c:when test="${param.domContext ne null}">
    <c:set var="domContext" value="${param.domContext}"/>
  </c:when>
  <c:otherwise>
    <c:set var="domContext" value="parent."/>
  </c:otherwise>
</c:choose>

<c:if test="${param.mode ne null or param.mode eq 'print'}">
  <script language="Javascript">
    eFapsSetTitle('<c:out value="${uiObject.title}" escapeXml="false"/>');
  </script>
</c:if>

<c:if test="${empty param.mode or param.mode ne 'print'}">
  <html>
    <head>
    </head>
    <link rel="StyleSheet" href="../styles/eFapsDefault.css" type="text/css"/>
    <script type="text/javascript" src="../javascripts/eFapsToolbar.js"></script>
    <script type="text/javascript" src="../javascripts/eFapsDefault.js"></script>

    <script language="Javascript">
      function eFapsProcessEnd() {
        <%-- /** title **/ --%>
<%--
        <c:choose>
          <c:when test="${uiObject.editMode}">
            <c:out value="${domContext}"/>eFapsSetTitle('<c:out value="${uiObject.ukTitle}" escapeXml="false"/>');
          </c:when>
          <c:otherwise>
--%>
            <c:out value="${domContext}"/>eFapsSetTitle('<c:out value="${uiObject.title}" escapeXml="false"/>');
<%--
          </c:otherwise>
        </c:choose>
--%>

        <%-- /** menu **/ --%>
        <%@include file="StdMenu.inc"%>
        with (topMenu)  {
          addSeparator();

          <%-- /* export button */ --%>
          with (addCommand('', ''))  {
            setJavaScript("eFapsCommonPrint('../common/Form.jsp?command=<%=request.getParameter("command")%>&oid=<%=request.getParameter("oid")%>&mode=print')");
            setIcon("../images/eFapsMiniToolbarExport.gif");
          }

          <%-- /* print button */ --%>
          with (addCommand('', ''))  {
            setJavaScript("eFapsCommonPrint('../common/Form.jsp?command=<%=request.getParameter("command")%>&oid=<%=request.getParameter("oid")%>&mode=print')");
            setIcon("../images/eFapsMiniToolbarPrint.gif");
          }

          addSeparator();
        }
        top.frameMenu.doMenu(<c:out value="${domContext}"/>document);

        <%-- /** footer action menu:
{'fraction_non_alphanumeric': 0.2160350253112601, 'fraction_numerical': 0.0010945409768778219, 'mean_word_length': 3.262390670553936, 'pattern_counts': {'":': 0, '<': 150, '<?xml version=': 0, '>': 148, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5000953', 'n_tokens_mistral': 2465, 'n_tokens_neox': 2366, 'n_words': 452}