rendered paste body<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@page import="com.ibm.hats.common.*"%>
<%@page import="java.util.*"%>
<%@page import="fMOPlusB.utils.SortAsqaCodes"%>
<%@page import="fMOPlusB.utils.MultipleReturnASQA"%>
<%@page import="javax.servlet.http.*" %>
<head>
<title>Applicant Master Popup</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Rational Application Developer">
<!-- Codes added by Imran-->
<table border="0">
<tr>
<th scope="col"><blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<p class="style1">Select an Action</p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote></th>
</tr>
</table>
<script type="text/javascript" language="JavaScript">
window.moveTo(450,10);
window.resizeTo(825,625);
window.onblur = function() {
setTimeout('self.focus()',100);
}
</script>
<script langauge="javascript">
var currentIndex;
var currentSelectBox;
var standardfieldsdivtxt = "";
var standardfieldsdivtxt2 = "";
var usercodesdivtxt = "";
var userdatesdivtxt = "";
var userdatesdivtxt2 = "";
var userdatesdivtxt3 = "";
var useramountsdivtxt = "";
var specialfieldsdivtxt = "";
function post_value(item, idx){
var val = item.options[idx].value;
var splits = val.split(" - ");
var fieldCode = splits[0];
var splits2 = splits[1].split(" (");
var fieldDesc = splits2[0];
opener.document.HATSForm.in_1051_4.value= fieldCode;
opener.document.HATSForm.in_1051_5.value= fieldDesc;
//opener.document.HATSForm.in_1051_4.value= document.frm.c_name.value;
//openerWindow.document.getElementById("in_1051_4").value = document.frm.c_name.value;
self.close();
}
function resetSelectBoxes(name,item,idx) {
currentSelectBox = item;
currentIndex = idx;
//opener.document.HATSForm.in_1051_4.value= item.options.value;
//alert("SelectBox "+currentSelectBox);
//alert("SelectBox "+currentIndex);
if(name != "standardFields") {
document.getElementById("standardfieldsdiv").innerHTML = standardfieldsdivtxt;
}
if(name != "standardFields2") {
document.getElementById("standardfieldsdiv2").innerHTML = standardfieldsdivtxt2;
}
if(name != "usercodes") {
document.getElementById("usercodesdiv").innerHTML = usercodesdivtxt;
}
if(name != "userdate") {
document.getElementById("userdatesdiv").innerHTML = userdatesdivtxt;
}
if(name != "userdate2") {
document.getElementById("userdatesdiv2").innerHTML = userdatesdivtxt2;
}
if(name != "userdate3") {
document.getElementById("userdatesdiv3").innerHTML = userdatesdivtxt3;
}
if(name != "useramount") {
document.getElementById("useramountsdiv").innerHTML = useramountsdivtxt;
}
if(name != "specialfields") {
document.getElementById("specialfieldsdiv").innerHTML = specialfieldsdivtxt;
}
}
function selectx(item, idx) {
if(item != null) {
var val = item.options[idx].value;
var splits = val.split(" - ");
var fieldCode = splits[0];
var splits2 = splits[1].split(" (");
var fieldDesc = splits2[0];
opener.document.HATSForm.in_1051_4.value= fieldCode;
opener.document.HATSForm.in_1051_5.value= fieldDesc;
self.close();
}
else{
alert(" You must click an Action prior to clicking the Select button.");
}
}
</script>
<!-- Above Codes added by Imran-->
<title>(Type a title for your page here)</title>
<style type="text/css">
<!--
.style1 {color: #0000FF}
.style2 {color: #0033FF}
-->
</style>
</head>
<body>
<%
//String codes[] = request.getParameterValues("finalCodes");
//Object codes = session.getAttribute ("finalCodes");
String fcodes [] = (String []) session.getAttribute ("finalCodes");
//if(codes != null){
//System.out.println("object ki type 1 "+codes.toString());
//System.out.println("object ki type 2 "+codes.getClass());
//}else {System.out.println("Codes is null");}
//System.out.println("------------------------------------");
//if(codes2 !=null){
System.out.println("object ki type and size 1 "+fcodes.length);
for(int i=0; i<fcodes.length; i++)
{
System.out.println("codes = "+fcodes[i]);
}
//System.out.println("object ki type 2 "+codes2.getClass());
//}else {System.out.println("Codes is null");}
//String type[] = request.getParameterValues("finalType");
//String description[] = request.getParameterValues("finalDesc");
//System.out.println("codes size by Imran "+codes.length);
//System.out.println("type size "+type.length);
//System.out.println("desc size "+description.length);
String ftype [] = (String []) session.getAttribute ("finalType");
System.out.println("object ki type and size 1 finalType "+ftype.length);
for(int i=0; i<ftype.length; i++)
{
System.out.println("codes type = "+ftype[i]);
}
String fdesc [] = (String []) session.getAttribute ("finalDesc");
System.out.println("object ki type and size 1 finalDesc "+fdesc.length);
for(int i=0; i<fdesc.length; i++)
{
//System.out.println("codes = "+fdesc[i]);
}
%>
<table width="90%" cellpadding="5" cellspacing="5">
<tbody>
<tr>
<td valign="top" align="left"><span class="style1"><span
class="NormalLabel">Non-Monetary</span></span><br>
<div id="standardfieldsdiv">
<select style="width:280px;font-family: arial; font-weight:bold" onchange="resetSelectBoxes(this.name,this,this.selectedIndex);" ondblclick="post_value(this,this.selectedIndex);" size="30" name="standardFields">
<%for(int i=0; i<ftype.length; i++)
{
//System.out.println("condition is "+(ftype[i].equalsIgnoreCase("N")));
if (ftype[i].equalsIgnoreCase("N")){%>
<option value="<%= fcodes[i] %> - <%= fdesc[i] %>"><%= fdesc[i] %> - <%= fcodes[i] %></option>
<% }
//System.out.println("codes = "+ftype[i]);
} %>
</select></div> </td>
<td valign="top" align="left"><span class="style2"><span
class="NormalLabel">Monetary</span></span><br>
<div id="standardfieldsdiv2">
<select style="width:280px;font-family: arial; font-weight:bold" onchange="resetSelectBoxes(this.name,this,this.selectedIndex)" ondblclick="post_value(this,this.selectedIndex);" size="30" name="standardFields2">
<%for(int i=0; i<ftype.length; i++)
{
//System.out.println("condition is "+(ftype[i].equalsIgnoreCase("N")));
if (ftype[i].equalsIgnoreCase("M")){%>
<option value="<%= fcodes[i] %> - <%= fdesc[i] %>"><%= fdesc[i] %> - <%= fcodes[i] %></option>
<% }
//System.out.println("codes = "+ftype[i]);
} %>
</select></div> </td>
<td valign="top" align="left"><span class="style2"><span
class="NormalLabel">Multi-Step Actions</span></span><br>
<div id="usercodesdiv">
<select style="width:200px;font-family: arial; font-weight:bold" onchange="resetSelectBoxes(this.name,this,this.selectedIndex)" ondblclick="post_value(this,this.selectedIndex);" size="8" name="usercodes">
<%for(int i=0; i<ftype.length; i++)
{
//System.out.println("condition is "+(ftype[i].equalsIgnoreCase("N")));
if (ftype[i].equalsIgnoreCase("L")){%>
<option value="<%= fcodes[i] %> - <%= fdesc[i] %>"><%= fdesc[i] %> - <%= fcodes[i] %></option>
<% }
//System.out.println("codes = "+ftype[i]);
} %>
</select></div>
<br>
<br> <span class="style2"><span class="NormalLabel">Inquiry</span></span> <br>
<div id="userdatesdiv">
<select style="width:200px;font-family: arial; font-weight:bold" onChange="resetSelectBoxes(this.name,this,this.selectedIndex)" ondblclick="post_value(this,this.selectedIndex);" size="2" name="userdate">
<%for(int i=0; i<ftype.length; i++)
{
//System.out.println("condition is "+(ftype[i].equalsIgnoreCase("N")));
if (ftype[i].equalsIgnoreCase("I")){%>
<option value="<%= fcodes[i] %> - <%= fdesc[i] %>"><%= fdesc[i] %> - <%= fcodes[i] %></option>
<% }
//System.out.println("codes = "+ftype[i]);
} %>
</select>
</div>
<br>
<br>
<span class="style2"><span class="NormalLabel">Transcript</span> </span><br>
<div id="userdatesdiv2">
<select style="width:200px;font-family: arial; font-weight:bold" onChange="resetSelectBoxes(this.name,this,this.selectedIndex)" ondblclick="post_value(this,this.selectedIndex);" size="2" name="userdate2">
<%for(int i=0; i<ftype.length; i++)
{
//System.out.println("condition is "+(ftype[i].equalsIgnoreCase("N")));
if (ftype[i].equalsIgnoreCase("T")){%>
<option value="<%= fcodes[i] %> - <%= fdesc[i] %>"><%= fdesc[i] %> - <%= fcodes[i] %></option>
<% }
//System.out.println("codes = "+ftype[i]);
} %>
</select>
</div>
<br><br>
<span class="style2"><span class="NormalLabel">Point
Transactions</span> </span><br>
<div id="userdatesdiv3"><select style="width:200px;font-family: arial; font-weight:bold" onchange="resetSelectBoxes(this.name,this,this.selectedIndex)" ondblclick="post_value(this,this.selectedIndex);" size="3" name="userdate3">
<%for(int i=0; i<ftype.length; i++)
{
//System.out.println("condition is "+(ftype[i].equalsIgnoreCase("N")));
if (ftype[i].equalsIgnoreCase("P")){%>
<option value="<%= fcodes[i] %> - <%= fdesc[i] %>"><%= fdesc[i] %> - <%= fcodes[i] %></option>
<% }
//System.out.println("codes = "+ftype[i]);
} %>
</select></div>
<table width="90%">
<tbody>
<tr><!-- Codes added by Imran-->
<td width="230" align="right"><input type="button" name="Cancel" value="Cancel" onclick="window.close()"> </td>
<td width="295" align="right"><input type="button" name="select"
value="Select" onclick="javascript:selectx(currentSelectBox,currentIndex)"></td>
</tr><!-- Codes added by Imran-->
</tbody>
</table><br>
<script language="javascript">
standardfieldsdivtxt = document.getElementById("standardfieldsdiv").innerHTML;
standardfieldsdivtxt2 = document.getElementById("standardfieldsdiv2").innerHTML;
usercodesdivtxt = document.getElementById("usercodesdiv").innerHTML;
userdatesdivtxt = document.getElementById("userdatesdiv").innerHTML;
userdatesdivtxt2 = document.getElementById("userdatesdiv2").innerHTML;
userdatesdivtxt3 = document.getElementById("userdatesdiv3").innerHTML;
useramountsdivtxt = document.getElementById("useramountsdiv").innerHTML;
specialfieldsdivtxt = document.getElementById("specialfieldsdiv").innerHTML;
</script>
</body>
</html>