#defmacro includeFileAtCompileTime: @open(src).read()
#if $show_page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="/static/default.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="/static/datatable.css">
<link rel="stylesheet" type="text/css" href="/static/psearch.css">
<script type="text/javascript" src="/static/json.js"></script>
<script type="text/javascript" src="/static/utilities.js"></script>
<script type="text/javascript" src="/static/container-min.js"></script>
<script type="text/javascript" src="/static/datasource-beta-min.js"></script>
<script type="text/javascript" src="/static/datatable-beta-min.js"></script>
<script type="text/javascript" src="/static/dci.js"></script>
<script type="text/javascript" src="/static/psearch.js"></script>
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
<title>Interview Session</title>
</head>
<body onload="load_session_page()">
<div class="outer-container">
<div class="inner-container">
#includeFileAtCompileTime: ./header.incl
<div class="path">
<a href="/topengine/">Home</a> > <a href="/topengine/startPSSession">New Interview Session</a>
</div>
<div class="main">
<div class="content">
<h1>Testing Interview Rules</h1>
<p>
This page allows you to test your Rules that you setup for an Interview.
</p>
<div id="error_div" class="errmsg">$err_msg</div>
<div id="status_div" class="statmsg">$status_msg</div>
<input type="hidden" name="top_status" id="top_status" value="ready"/>
<div id="ps_session_div">
#end if
<p>
<table border="0" class="ps_session">
<tr class="ps_session_pane">
<!-- First collumn: Categories -->
<td class="ps_filter_terms">
<input class="ps_c1_button" id="ps_show_all_nodes_button" type="button" value="Show All Terms" onclick="ps_show_all_nodes_fn('')"/>
<div id="all_categories_table_div" class="ps_c1_datatable">
<table>
<thead>
<tr><th>Category Name</th></tr>
</thead>
<tbody>
<tr><td/></tr>
#for $category in $all_categories_itor
<tr><td>$category.get_name()</td></tr>
#end for
</tbody>
</table>
</div>
</td>
<td class="ps_select_terms">
<!-- collumn: select Terms as answer from ps query result set -->
<div id="query_nodes_table_div" class="ps_c2_datatable">
<table>
<thead>
<tr>
<th>Term Name</th>
</tr>
</thead>
<tbody>
<tr><td/></tr>
#for $nsc in $query_result_itor
#set $tname = $nsc.get_name()
<tr><td>$tname</td></tr>
#end for
</tbody>
</table>
</div>
<!-- Buttons to Add Terms -->
<input id="psq_tname" type="hidden" name="tname" value=""/>
<input class="ps_c21_button" id="confirm_button" type="button" value="Confirm Term" disabled="y" onclick="ps_assert_node_fn('psq_tname', 'confirm_action')"/>
<input class="ps_c22_button" id="negate_button" type="button" value="Negate Term" disabled="y" onclick="ps_assert_node_fn('psq_tname', 'negate_action')"/>
</td>
</tr>
</table>
</p>
<p>
<div id="infer_nodes_table_div" class="ps_r2_datatable">
<table width="100%">
<thead>
<tr>
<th>Term Name</th>
<th>Activation</th>
</tr>
</thead>
<tbody>
<tr><td/><td/></tr>
#for $nsc in $infer_result_itor
<tr>
<td width="75%">$nsc.get_name()</td>
#if $nsc.is_has_node()
#if $nsc.is_asserted_node()
<td width="25%">Confirmed</td>
#else
<td width="25%">Inferred</td>
#end if
#else
<td width="25%">Negated</td>
#end if
</tr>
#end for
</tbody>
</table>
</div>
<!-- Buttons to remove Terms from session -->
<input id="psi_tname" type="hidden" name="tname" value=""/>
<input class="ps_r2_button" id="remove_button" type="button" value="Remove Term from Session" disabled="y" onclick="ps_assert_node_fn('psi_tname', 'remove_action')"/>
</p>
#if $show_page
</div>
</div>
<div class="navigation">
#includeFileAtCompileTime: ./navigation-pt1.incl
#includeFileAtCompileTime: ./navigation-pt2.incl
#includeFileAtCompileTime: ./navigation-pt3.incl
</div>
<div class="clearer"> </div>
</div>
#includeFileAtCompileTime: ./footer.incl
</div>
</div>
</body>
</html>
#end if