<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="com.unioncomm.sdk.bsp.UCBioBSPJNI" %>

<% request.setCharacterEncoding("UTF-8"); %>
<%

UCBioBSPJNI bsp = new UCBioBSPJNI();
UCBioBSPJNI.INIT_INFO_0 initInfo0 = bsp.new INIT_INFO_0();
bsp.GetInitInfo(initInfo0);
String Version="";

int MaxFinger=0, NecessaryNum=0, SamplesPerFinger=0, DefaultTimeout=0;
int SecuLevelForEnroll=0,SecuLevelForVerify=0, SecuLevelForIdentify=0;

Version = bsp.GetVersion();
MaxFinger = initInfo0.MaxFingersForEnroll;
NecessaryNum = initInfo0.NecessaryEnrollNum;
SamplesPerFinger = initInfo0.SamplesPerFinger;
DefaultTimeout = initInfo0.DefaultTimeout;
SecuLevelForEnroll = initInfo0.SecurityLevelForEnroll;
SecuLevelForVerify = initInfo0.SecurityLevelForVerify;
SecuLevelForIdentify = initInfo0.SecurityLevelForIdentify;
%>

<html>
<body>
<center>
<hr>
<H2>Demo Page for UCBioBSPCOM (JSP)</H2>
Version of BSP: v<%= Version %><br />
<hr>

<p>
<b>1) Init information</b>
<p>
    <table border="1" cellpadding="3">
        <tr>
            <th width = "200">
                Info</td>
            <th width = "100">
                Value
            </td>
        </tr>
        <tr>
            <td>
                Max finger for enroll</td>
            <td align="center">
                <%= MaxFinger %>
            </td>
        </tr>
        <tr>
            <td>
                Necessary enroll num</td>
            <td align="center">
                <%= NecessaryNum %>
            </td>
        </tr>
        <tr>
            <td>
                Samples per finger</td>
            <td align="center">
                <%= SamplesPerFinger %>
            </td>
        </tr>
        <tr>
            <td>
                Default timeout (ms)</td>
            <td align="center">
                <%= DefaultTimeout %>
            </td>
        </tr>
        <tr>
            <td>
                Security level for enroll</td>
            <td align="center">
                <%= SecuLevelForEnroll %>
            </td>
        </tr>
        <tr>
            <td>
                Security level for verify</td>
            <td align="center">
                <%= SecuLevelForVerify %>
            </td>
        </tr>
        <tr>
            <td>
                Security level for identify</td>
            <td align="center">
                <%= SecuLevelForIdentify %>
            </td>
        </tr>
    </table>
<br />
<p>
<b>2) Enrollment : </b>
<br><input type="button" OnClick="javascript:location.href='enroll.jsp';" value=" Click here to enroll your fingerprint ">

</p>
<br />
<p>
<b>3) Verification : </b>
<br><input type="button" OnClick="javascript:location.href='verify.jsp';" value=" Click here to verify your fingerprint ">
</p>
<br>

<hr>
<font size="2">Copyright ⓒ 2008. UNION COMMUNITY Co., Ltd.</font>
</center>

</body>
</html>
