%@ page language="java" contentType="text/plain; charset=UTF-8"%>
<%@ page import="com.edeal.frontline.navigation.FlRequest" %>
<%@ page import="com.edeal.frontline.grid.*" %>
<%@ page import="com.edeal.frontline.FrontlineException" %>
<%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><%
final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass());
FlRequest flRequest = new FlRequest(request);
String code = "selectPer";
String codeSil = "selectSil";
GridData grid = (GridData)request.getAttribute(code);
GridData gridSil = (GridData)request.getAttribute(codeSil);
%>
var _doHidePage = false;
try {
_doHidePage = <%= code %>_hidePage;
} catch (error) {
}
if (!_doHidePage) {
<%
if (grid.isFirstPage()) {
%>
window.document.getElementById("<%= code %>_previous").style.visibility = "hidden";
<%
} else {
%>
window.document.getElementById("<%= code %>_previous").style.visibility = "visible";
<%
}
if (grid.isLastPage()) {
%>
window.document.getElementById("<%= code %>_next").style.visibility = "hidden";
<%
} else {
%>
window.document.getElementById("<%= code %>_next").style.visibility = "visible";
<%
}
%>
window.<%= code %>_page = <%= grid.getPageNumber() %>;
var node = window.document.getElementById("<%= code %>_nbpage");
while ( node.hasChildNodes() ) {
node.removeChild(node.firstChild);
}
node.appendChild(window.document.createTextNode(' ' + (window.<%= code %>_page + 1)));
} // end hidePage
try {
emptyGridStrings['<%= code %>'] = '';
} catch (error) {
}
myGrid_selectPer.setRowCount(<%= grid.getNbLines() %>);
<%
String ajaxScript;
try {
ajaxScript = GridTag.printAjaxGridData(grid, code, session);
} catch (FrontlineException e) {
ajaxScript = "";
logger.error("[listAjax.jsp] - " + e.toString());
}
%>
try {
_doHidePage = <%= codeSil %>_hidePage;
} catch (error) {
}
if (!_doHidePage) {
<%
if (gridSil.isFirstPage()) {
%>
window.document.getElementById("<%= codeSil %>_previous").style.visibility = "hidden";
<%
} else {
%>
window.document.getElementById("<%= codeSil %>_previous").style.visibility = "visible";
<%
}
if (gridSil.isLastPage()) {
%>
window.document.getElementById("<%= codeSil %>_next").style.visibility = "hidden";
<%
} else {
%>
window.document.getElementById("<%= codeSil %>_next").style.visibility = "visible";
<%
}
%>
window.<%= codeSil %>_page = <%= gridSil.getPageNumber() %>;
node = window.document.getElementById("<%= codeSil %>_nbpage");
while ( node.hasChildNodes() ) {
node.removeChild(node.firstChild);
}
node.appendChild(window.document.createTextNode(' ' + (window.<%= codeSil %>_page + 1)));
} // end hidePage
try {
emptygridStrings['<%= codeSil %>'] = '';
} catch (error) {
}
<%
String ajaxScriptSil;
try {
ajaxScriptSil = GridTag.printAjaxGridData(gridSil, codeSil, session);
} catch (FrontlineException e) {
ajaxScriptSil = "";
logger.error("[listAjax.jsp] - " + e.toString());
}
%>
<%= ajaxScript %><%=ajaxScriptSil %>