📄 selection.jsp
字号:
<%@page language="java" session="true" import="fr.ier.cuss.globaldemo.*" %>
<%@ include file = "include/util.jsp" %>
<%
session.setAttribute("Passenger", null);
session.setAttribute("ListOfDevices", null);
session.setAttribute("UseATBDocument", null);
if (session.getAttribute("RequiredReader") == null) {
String requiredReader = "?ATB2Reader=" + request.getParameter("ATB2Reader") + "&BarCodeReader=" + request.getParameter("BarCodeReader") + "&MagneticCardReader=" + request.getParameter("MagneticCardReader");
session.setAttribute("RequiredReader", requiredReader);
}
String classicUrl = "classicreaders.jsp" + (String)session.getAttribute("RequiredReader");
String biometricUrl = "biometricreaders.jsp" + (String)session.getAttribute("RequiredReader");
ListOfDevices listOfDevices = ApplicationConfiguration.getListOfDevices(getConfigurationFile());
session.setAttribute("ListOfDevices", listOfDevices);
if ((listOfDevices.isClassicReaderExists()) && (!listOfDevices.isBiometricReaderExists())) {
response.sendRedirect(classicUrl);
}
else if ((!listOfDevices.isClassicReaderExists()) && (listOfDevices.isBiometricReaderExists())) {
response.sendRedirect(biometricUrl);
}
else if ((!listOfDevices.isClassicReaderExists()) && (!listOfDevices.isBiometricReaderExists())) {
response.sendRedirect("invalid.jsp");
}
%>
<html>
<head>
<%@ include file = "include/header.jsp" %>
<script language="JavaScript1.2">
//------------------------------------------------------------------------
/*
* Event management
*/
function processEventBis(event) {
// Nothing to do
}
//------------------------------------------------------------------------
/*
* Display classic reader
*/
function displayClassicReaders(){
displayPage("<%= classicUrl%>");
}
//------------------------------------------------------------------------
/*
* Display biometric reader
*/
function displayBiometricReaders(){
displayPage("<%= biometricUrl%>");
}
</script>
</head>
<body unselectable="on" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" OnLoad="javasctip:init();" background="<%= backgroundImageName%>">
<table width="100%" height="100%" border="0">
<thead>
<%@ include file = "include/companylogo.jsp" %>
</thead>
<!-- =============================================================== -->
<!-- Body of the table for message -->
<!-- =============================================================== -->
<tbody>
<tr>
<td colspan="4" align="center" height="70%" width="100%" valign="top">
<h1 class="subtitle">Select your readers</h1>
<table width="100%">
<tr><td colspan="2"><h1 class="subtitle"> <h1></td></tr>
<tr>
<td align="center"><input class="blueReaderType" type="button" value="Classic readers" OnClick="javascript:displayClassicReaders();" /></td>
<td align="center"><input class="greenReaderType" type="button" value="Biometric readers" OnClick="javascript:displayBiometricReaders();" /></td>
</tr>
</table>
</td>
</tr>
</tbody>
<!-- =============================================================== -->
<!-- Foot of the table for buttons -->
<!-- =============================================================== -->
<tfoot>
<tr>
<td height="15%" width="25%" align="center"> </td>
<td width="25%" align="center"> </td>
<td width="25%" align="center"> </td>
<td width="25%" align="center"><%@ include file = "include/quitbutton.jsp" %></td>
</tr>
</tfoot>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -