<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.session.DbInquiry"%>
<jsp:useBean id="AS12HELP2" class="com.csc.library.system.Task" scope="page" />
<%AS12HELP2.setChannel(request, response);%>
<%HelpEntry screen = (HelpEntry) AS12HELP2.process("HelpEntry","AS12HELP2");%>
<%/*
String assource=request.getParameter("__apsasssource");
String aysource=request.getParameter("__apsasysource");
if(assource.length()>0){
((DbInquiry)screen.getInquiry().getChild("vmassessor")).setResultSet(assource);
}

if(aysource.length()>0){
((DbInquiry)screen.getInquiry().getChild("vmassessy")).setResultSet(aysource);
}*/
screen.process();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script  language="JavaScript" src="../JS/SCREEN.js"></script>

<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script language='javascript' src='../JS/HOTKEY.js'></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>

<script language="JavaScript" type="text/JavaScript">
<!--
function setSelectAll(obj){
	var flag = obj.checked;
	with(document.forms[0]){
		for(i=0;i<elements.length;i++){
			if(elements[i].type == "checkbox"){
				elements[i].checked = flag;
			}
		}
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function setAction(approve){
	with(window.opener.document.forms[0]){
		for(i=0;i < elements.length;i++){
			if(elements[i].type == "checkbox"){
				if(elements[i].checked == true){
					eval(elements[i].name + "txt.value = " + approve);
				}
			}
		}
	}
}

function setSelect(chkObj){
	with(document.forms[0]){
		for(i=0;i < elements.length;i++){
			if(elements[i].name.indexOf(chkObj.name) > -1){
				elements[i].checked = chkObj.checked;
			}
		}
	}
}

//-->
</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  <form name="cscform" method="post">
 

<!----------BEGIN CSC INITIAL ZONE ------------------------>

<%=screen.InitialVariable()%>

<!----------END CSC INITIAL ZONE -------------------------->

<input type="hidden"name="__screen"  value="AS12HELP2">
  <input type="hidden" name="__help" value="<%=request.getParameter("__help")%>">
  <input type="hidden" name="__cmd"  value="">
  <input type="hidden" name="__resultSet"  value="<%=request.getParameter("__resultSet")%>">
 <input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>"> 
  <input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>">
  <table border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#666666" class="maxsize">
    <tr> 
      <td width="20%" class="title1"><div align="center"> 
          <script language="JavaScript">
swapLang('assessor');
</script>
        </div></td>
      <td width="20%" class="title1"><div align="center"> 
          <script language="JavaScript">
swapLang('assessy');
</script>
        </div></td>
      <td width="20%" class="title1"><div align="center"> 
          <input type="checkbox" name="approve1" onclick="setSelect(this);">
          <script language="JavaScript">
swapLang('Approve1');
</script>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
      <td width="20%" class="title1"><div align="center"> 
          <input type="checkbox" name="approve2" onclick="setSelect(this);">
          <script language="JavaScript">
swapLang('Approve2');
</script>
          &nbsp;&nbsp;&nbsp;&nbsp;</div></td>
      <td width="20%" class="title1"><div align="center"> 
          <input type="checkbox" name="approve3" onclick="setSelect(this);">
          <script language="JavaScript">
swapLang('Approve3');
</script>
          &nbsp;&nbsp;&nbsp;&nbsp;</div></td>
      <td width="20%" class="title1"><div align="center"> 
          <input type="checkbox" name="approve4" onclick="setSelect(this);">
          <script language="JavaScript">
swapLang('Approve4');
</script>
          &nbsp;&nbsp;&nbsp;&nbsp;</div></td>
    </tr>
    <%
	   int k=0;	          
			while(screen.nextRec()){
			k++;
	%>
    <tr> 
      <td nowrap><div align="left"><%=screen.getString("apsassdesc")%><input type="hidden" name="__assessor" value="<%=screen.getString("apsassessor")%>"></div></td>
      <td nowrap><input type="hidden" name="__assessy" value="<%=screen.getString("apsassessy")%>"><input type="hidden" name="__asssource" value="<%=screen.getString("apsasssource")%>"><input type="hidden" name="__asysource" value="<%=screen.getString("apsasysource")%>"><%=screen.getString("apsasydesc")%></td>
      <td nowrap><div align="center"> 
          <input type="checkbox" name="approve1_<%=k%>" value="checkbox">
          <input name="approve1_<%=k%>txt" type="text" size="10" value="<%=screen.getString("apsapprove1")%>">
          <input name="approve1_<%=k%>desc" type="hidden" size="10" value="<%=screen.getString("apsappdesc1")%>">
          <input name="approve1_<%=k%>ds" type="hidden" size="10" value="<%=screen.getString("apsappds1")%>">		  
        </div></td>
      <td nowrap><div align="center"> 
          <input type="checkbox" name="approve2_<%=k%>" value="checkbox">
          <input name="approve2_<%=k%>txt" type="text" size="10" value="<%=screen.getString("apsapprove2")%>">
          <input name="approve2_<%=k%>desc" type="hidden" size="10" value="<%=screen.getString("apsappdesc2")%>">
          <input name="approve2_<%=k%>ds" type="hidden" size="10" value="<%=screen.getString("apsappds2")%>">		  		  
        </div></td>
      <td nowrap><div align="center"> 
          <input type="checkbox" name="approve3_<%=k%>" value="checkbox">
          <input name="approve3_<%=k%>txt" type="text" size="10" value="<%=screen.getString("apsapprove3")%>">
          <input name="approve3_<%=k%>desc" type="hidden" size="10" value="<%=screen.getString("apsappdesc3")%>">
          <input name="approve3_<%=k%>ds" type="hidden" size="10" value="<%=screen.getString("apsappds3")%>">		  		  
        </div></td>
      <td nowrap><div align="center"> 
          <input type="checkbox" name="approve4_<%=k%>" value="checkbox">
          <input name="approve4_<%=k%>txt" type="text" size="10" value="<%=screen.getString("apsapprove4")%>">
          <input name="approve4_<%=k%>desc" type="hidden" size="10" value="<%=screen.getString("apsappdesc4")%>">
          <input name="approve4_<%=k%>ds" type="hidden" size="10" value="<%=screen.getString("apsappds4")%>">		  		  
        </div></td>
    </tr>
    <%}%>
  </table>
</form>
</body>
</html>
