<%@include file="include/zop,header.jsp"%>
<%
//-----------------------------------------------
// Set permission for this page.
permission.addOperator();

//Check permission.
if(!checkPermission()){
	return;
}

// Create data access object.
UserTestDao dao = new UserTestDao();

// Global.
UserTestData data = dao.test(paramString("name"));
%>
<!-- Action info -->
<%@include file="include/ab-notify.jsp"%>
<!-- /Action info -->

<!-- Breadcrumb -->
<div class="container-fluid primary" style="margin-top:-5px;">
	<ol class="breadcrumb" style="margin-left:10px; margin-right:10px;">
		<li class="breadcrumb-item"><%= translate("USER")%></li>
		<li class="breadcrumb-item clickable-li" onclick="window.location.href='zop,user,user.jsp';"><%= translate("USER")%></li>
		<li class="breadcrumb-item text-info"><%= translate("TEST")%></li>
	</ol>
</div>
<!-- /Breadcrumb -->

<!-- Main content -->
<div class="container-fluid">

	<div class="card bg-light m-2 expand-lg">
		<div class="card-body">
			<fieldset>
				<div class="form-row col-lg-8">
					<label class="col-form-label col-lg-2 col-sm-2"><%= translate("Name")%></label>
					<label class="col-form-label"><%= data.name%></label>
				</div>
				<div class="form-row col-lg-8">
					<label class="col-form-label col-lg-2 col-sm-2"><%= translate("User Policy")%></label>
					<label class="col-form-label"><%= data.policyName%></label>
				</div>
				<div class="form-row col-lg-8">
					<label class="col-form-label col-lg-2 col-sm-2"><%= translate("Applied Policy")%></label>
					<label class="col-form-label"><%= data.appliedPolicyName%></label>
				</div>
				<div class="form-row col-lg-8">
					<label class="col-form-label col-lg-2 col-sm-2"><%= translate("Free Time")%></label>
					<label class="col-form-label"><%= data.isFreeTime ? "Yes" : "No"%></label>
				</div>
			</fieldset>
		</div>
	</div>

</div>
<!-- /Main content -->

<%@include file="include/zop,footer.jsp"%>
