<commit_before><%@ include file="/jsp/core/tldHeader.jsp" %>

<kul:pageLookup showDocumentInfo="false" htmlFormAction="glAccountBalanceByConsolidationLookup" 
	headerMenuBar="${KualiForm.lookupable.htmlMenuBar}" headerTitle="Lookup" 
	docTitle="" transactionalDocument="false">

	<div  class="headerarea-small" id="headerarea-small">
	  	<h1>
	  		<c:out value="${KualiForm.lookupable.title}" />
	  		<kul:help resourceKey="lookupHelpText" altText="lookup help" />
	  	</h1>
	</div>
	 
    <kul:enterKey methodToCall="search" />
    
    <html-el:hidden name="KualiForm" property="backLocation" />
    <html-el:hidden name="KualiForm" property="formKey" />
    <html-el:hidden name="KualiForm" property="lookupableImplServiceName" />
    <html-el:hidden name="KualiForm" property="businessObjectClassName" />
    <html-el:hidden name="KualiForm" property="conversionFields" />
    <html-el:hidden name="KualiForm" property="hideReturnLink" />
    
    <kul:errors errorTitle="Errors found in Search Criteria:" />
    
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1%"><img src="images/pixel_clear.gif" alt="" width="20" height="20" /></td>
        
        <td>
          <div id="lookup" align="center"><br/><br/>
            	<table class="datatable-100" align="center" cellpadding="0" cellspacing="0">
              <c:set var="FormName" value="KualiForm" scope="request" />
              <c:set var="FieldRows" value="${KualiForm.lookupable.rows}" scope="request" />
              <c:set var="ActionName" value="glModifiedInquiry.do" scope="request" />
              <c:set var="IsLookupDisplay" value="true" scope="request" />
                           
              <%@ include file="/jsp/core/RowDisplay.jsp" %>
          
              <tr align=center>
                <td height="30" colspan=2 class="infoline">
                  <html:image
							property="methodToCall.search" value="search"
							src="images/buttonsmall_search.gif" styleClass="tinybutton"
							alt="search" border="0" />
							
                  <html:image
							property="methodToCall.clearValues" value="clearValues"
							src="images/buttonsmall_clear.gif" styleClass="tinybutton"
							alt="clear" border="0" />
							
                  <c:if test="${KualiForm.formKey!=''}">
                    <a href='<c:out value="${KualiForm.backLocation}?methodToCall=refresh&docFormKey=${KualiForm.formKey}" />'>
                      <img src="images/buttonsmall_cancel.gif" class="tinybutton" border="0" />
                    </a>
                  </c:if>
                  
                  <!-- Optional extra button -->
                  <c:if test="${not empty KualiForm.lookupable.extraButtonSource}">
                		<a href='<c:out value="${KualiForm.backLocation}?methodToCall=refresh&refreshCaller=org.kuali.core.lookup.KualiLookupableImpl&docFormKey=${KualiForm.formKey}" /><c:out value="${KualiForm.lookupable.extraButtonParams}" />' >
                  		<img src='<c:out value="${KualiForm.lookupable.extraButtonSource}" />' class="tinybutton" border="0" /></a>
              	  </c:if>
                  
                </td>
              </tr>
            </table>
          </div>
          
          <br/><br/>
		  <div class="right">
            <logic-el:present name="KualiForm" property="formKey">
              <c:if test="${KualiForm.formKey!='' && KualiForm.hideReturnLink != true}">
                <a href='<c:out value="${KualiForm.backLocation}?methodToCall=refresh&docFormKey=${KualiForm.formKey}" />'>
                  return with no value
                </a>
              </c:if>
            </logic-el:present>
          </div>          
          
	      <c:if test="${reqSearchResultsActualSize>0}" >
	      	<c:out value="${reqSearchResultsActualSize}" /> items found.
	      </c:if>
	      
	      <c:set var="offset" value="5"/>
	      
	      <display:table class="datatable-100" cellspacing="0"
					cellpadding="0" name="${reqSearchResults}" id="row" export="true" pagesize="100" offset="${offset}"
					requestURI="glAccountBalanceByConsolidationLookup.do?methodToCall=viewResults&reqSearchResultsActualSize=${reqSearchResultsActualSize}&searchResultKey=${searchResultKey}">
	      
	        <c:forEach items="${row.columns}" var="column" varStatus="status">
	          <c:if test="${column.propertyURL!=\"\" && param['d-16544-e'] == null}">
	            <display:column class="infocell" title="${column.columnTitle}">
	              <a href="<c:out value="${column.propertyURL}"/>" target="blank">
	                <c:out value="${column.propertyValue}" />
	              </a>
	            </display:column>
	          </c:if>

	          <c:if test="${(column.propertyURL==\"\" || param['d-16544-e'] != null)}">
                <c:if test="${column.formatter.implementationClass == 'org.kuali.core.web.format.CurrencyFormatter'}">
	              <display:column class="numbercell" title="${column.columnTitle}">
	                <c:out value="${column.propertyValue}" />
	              </display:column>
                </c:if>
                <c:if test="${column.formatter.implementationClass != 'org.kuali.core.web.format.CurrencyFormatter'}">
	              <display:column class="infocell" title="${column.columnTitle}">
	                <c:out value="${column.propertyValue}" />
	              </display:column>
                </c:if>
	          </c:if>
	        </c:forEach>
	      </display:table>
		  
		  <c:if test="${reqSearchResultsActualSize>0}" >
		  <div style="float: right; width: 70%;"><br/><br/>
		      <display:table width="100%" class="datatable-100" cellspacing="0"
						cellpadding="0" name="${reqSearchResults}" id="row" export="false" length="${offset-2}">
						
				<display:caption style="text-align: left; font-weight: bold;">Totals</display:caption>		
		      
		        <c:set var="indexOfbeginningColumn" value="4"/>
		        <c:forEach items="${row.columns}" var="column" varStatus="status" 
		        	begin="${indexOfbeginningColumn}" end="${indexOfbeginningColumn+4}">
		        	
		            <c:if test="${status.count == 1}">
	                  <display:column class="infocell" title="Type">
			            <c:out value="${column.propertyValue}" />
			          </display:column>
			        </c:if>
		        	        
		            <c:if test="${status.count != 1}">
			            <display:column class="numbercell" title="${column.columnTitle}">
			                <c:out value="${column.propertyValue}" />
			            </display:column>
			        </c:if>
		        </c:forEach>
		        
		        <display:footer>
		        	<tr>
		        		<th colspan="${indexOfbeginningColumn}" class="infocell" style="text-align: right">
		        			Available Balance:&nbsp;
		        		</th>
		        		<td class="numbercell">
                          <c:out value="${reqSearchResults[3].columns[8].propertyValue}"/><commit_msg>Display:table doesn't support width attribute<commit_after><%@ include file="/jsp/core/tldHeader.jsp" %>

<kul:pageLookup showDocumentInfo="false" htmlFormAction="glAccountBalanceByConsolidationLookup" 
	headerMenuBar="${KualiForm.lookupable.htmlMenuBar}" headerTitle="Lookup" 
	docTitle="" transactionalDocument="false">

	<div  class="headerarea-small" id="headerarea-small">
	  	<h1>
	  		<c:out value="${KualiForm.lookupable.title}" />
	  		<kul:help resourceKey="lookupHelpText" altText="lookup help" />
	  	</h1>
	</div>
	 
    <kul:enterKey methodToCall="search" />
    
    <html-el:hidden name="KualiForm" property="backLocation" />
    <html-el:hidden name="KualiForm" property="formKey" />
    <html-el:hidden name="KualiForm" property="lookupableImplServiceName" />
    <html-el:hidden name="KualiForm" property="businessObjectClassName" />
    <html-el:hidden name="KualiForm" property="conversionFields" />
    <html-el:hidden name="KualiForm" property="hideReturnLink" />
    
    <kul:errors errorTitle="Errors found in Search Criteria:" />
    
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1%"><img src="images/pixel_clear.gif" alt="" width="20" height="20" /></td>
        
        <td>
          <div id="lookup" align="center"><br/><br/>
            	<table class="datatable-100" align="center" cellpadding="0" cellspacing="0">
              <c:set var="FormName" value="KualiForm" scope="request" />
              <c:set var="FieldRows" value="${KualiForm.lookupable.rows}" scope="request" />
              <c:set var="ActionName" value="glModifiedInquiry.do" scope="request" />
              <c:set var="IsLookupDisplay" value="true" scope="request" />
                           
              <%@ include file="/jsp/core/RowDisplay.jsp" %>
          
              <tr align=center>
                <td height="30" colspan=2 class="infoline">
                  <html:image
							property="methodToCall.search" value="search"
							src="images/buttonsmall_search.gif" styleClass="tinybutton"
							alt="search" border="0" />
							
                  <html:image
							property="methodToCall.clearValues" value="clearValues"
							src="images/buttonsmall_clear.gif" styleClass="tinybutton"
							alt="clear" border="0" />
							
                  <c:if test="${KualiForm.formKey!=''}">
                    <a href='<c:out value="${KualiForm.backLocation}?methodToCall=refresh&docFormKey=${KualiForm.formKey}" />'>
                      <img src="images/buttonsmall_cancel.gif" class="tinybutton" border="0" />
                    </a>
                  </c:if>
                  
                  <!-- Optional extra button -->
                  <c:if test="${not empty KualiForm.lookupable.extraButtonSource}">
                		<a href='<c:out value="${KualiForm.backLocation}?methodToCall=refresh&refreshCaller=org.kuali.core.lookup.KualiLookupableImpl&docFormKey=${KualiForm.formKey}" /><c:out value="${KualiForm.lookupable.extraButtonParams}" />' >
                  		<img src='<c:out value="${KualiForm.lookupable.extraButtonSource}" />' class="tinybutton" border="0" /></a>
              	  </c:if>
                  
                </td>
              </tr>
            </table>
          </div>
          
          <br/><br/>
		  <div class="right">
            <logic-el:present name="KualiForm" property="formKey">
              <c:if test="${KualiForm.formKey!='' && KualiForm.hideReturnLink != true}">
                <a href='<c:out value="${KualiForm.backLocation}?methodToCall=refresh&docFormKey=${KualiForm.formKey}" />'>
                  return with no value
                </a>
              </c:if>
            </logic-el:present>
          </div>          
          
	      <c:if test="${reqSearchResultsActualSize>0}" >
	      	<c:out value="${reqSearchResultsActualSize}" /> items found.
	      </c:if>
	      
	      <c:set var="offset" value="5"/>
	      
	      <display:table class="datatable-100" cellspacing="0"
					cellpadding="0" name="${reqSearchResults}" id="row" export="true" pagesize="100" offset="${offset}"
					requestURI="glAccountBalanceByConsolidationLookup.do?methodToCall=viewResults&reqSearchResultsActualSize=${reqSearchResultsActualSize}&searchResultKey=${searchResultKey}">
	      
	        <c:forEach items="${row.columns}" var="column" varStatus="status">
	          <c:if test="${column.propertyURL!=\"\" && param['d-16544-e'] == null}">
	            <display:column class="infocell" title="${column.columnTitle}">
	              <a href="<c:out value="${column.propertyURL}"/>" target="blank">
	                <c:out value="${column.propertyValue}" />
	              </a>
	            </display:column>
	          </c:if>

	          <c:if test="${(column.propertyURL==\"\" || param['d-16544-e'] != null)}">
                <c:if test="${column.formatter.implementationClass == 'org.kuali.core.web.format.CurrencyFormatter'}">
	              <display:column class="numbercell" title="${column.columnTitle}">
	                <c:out value="${column.propertyValue}" />
	              </display:column>
                </c:if>
                <c:if test="${column.formatter.implementationClass != 'org.kuali.core.web.format.CurrencyFormatter'}">
	              <display:column class="infocell" title="${column.columnTitle}">
	                <c:out value="${column.propertyValue}" />
	              </display:column>
                </c:if>
	          </c:if>
	        </c:forEach>
	      </display:table>
		  
		  <c:if test="${reqSearchResultsActualSize>0}" >
		  <div style="float: right; width: 70%;"><br/><br/>
		      <display:table class="datatable-100" cellspacing="0"
						cellpadding="0" name="${reqSearchResults}" id="row" export="false" length="${offset-2}">
						
				<display:caption style="text-align: left; font-weight: bold;">Totals</display:caption>		
		      
		        <c:set var="indexOfbeginningColumn" value="4"/>
		        <c:forEach items="${row.columns}" var="column" varStatus="status" 
		        	begin="${indexOfbeginningColumn}" end="${indexOfbeginningColumn+4}">
		        	
		            <c:if test="${status.count == 1}">
	                  <display:column class="infocell" title="Type">
			            <c:out value="${column.propertyValue}" />
			          </display:column>
			        </c:if>
		        	        
		            <c:if test="${status.count != 1}">
			            <display:column class="numbercell" title="${column.columnTitle}">
			                <c:out value="${column.propertyValue}" />
			            </display:column>
			        </c:if>
		        </c:forEach>
		        
		        <display:footer>
		        	<tr>
		        		<th colspan="${indexOfbeginningColumn}" class="infocell" style="text-align: right">
		        			Available Balance:&nbsp;
		        		</th>
		        		<td class="numbercell">
                          <c:out value="${reqSearchResults[3].columns[8].propertyValue}"/>
{'fraction_non_alphanumeric': 0.16976393771973883, 'fraction_numerical': 0.008681925808997633, 'mean_word_length': 2.363416988416988, 'pattern_counts': {'":': 0, '<': 241, '<?xml version=': 0, '>': 245, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4630405', 'n_tokens_mistral': 4550, 'n_tokens_neox': 4051, 'n_words': 590}