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

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

// Create data access object.
PolicyCxBlockDao dao = new PolicyCxBlockDao(paramInt("opId"));

// Global.
PolicyCxBlockData data = dao.selectOne();
%>
<!-- view -->
<fieldset>
<legend>CHROMEBOOK - <%= paramString("opName")%></legend>

<table width="100%" cellpadding="4" class="view">
	</tr>

	<tr>
		<td width="200">Enable Filter</td>
		<td>
		<input type="checkbox" class="no-border" name="enableFilter"
			<%if(data.enableFilter){out.print("checked");}%>>
			</td>
	</tr>

	<tr>
		<td>Block IP host</td>
		<td><input type="checkbox" class="no-border" name="blockIpHost"
			<%if(data.blockIpHost){out.print("checked");}%>></td>
	</tr>

	<tr>
		<td>Blocked Keyword</td>
		<td>
			<textarea name="blockedKeyword" cols="80" rows="4"><%= data.blockedKeyword%></textarea>
		</td>
	</tr>

	<tr>
		<td>Query Cache TTL</td>
		<td><input type="text" name="cacheTtl" value="<%= data.cacheTtl%>" size="2"> seconds, 60 ~ 3600</td>
	</tr>
</table>
</fieldset>
<!-- /view -->

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