TROP_TRRE022.jsp 4.61 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*" %>
<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="PRR150" scope="page" class="com.csc.library.system.Task"/>
<% 
   PRR150.setChannel(request ,response);
   ReportEntry screen=null;
   screen=(ReportEntry)PRR150.process("ReportEntry",request.getParameter("__screen"));
   UProfile uf=screen.getUProfile();
%>
<html>
<head>
<title>ReportOption</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 language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script src="../JS/VIEWCALENDAR.js"></script>

<script language="JavaScript" type="text/JavaScript">

function back(){
	var z=0;
	with(document.cscform){
	 for(z=0;z<elements.length;z++){
	 	setParent(elements[z].name,elements[z].value);
	 }
	sdate = __sdate.value.split("-");	 
	edate = __edate.value.split("-");	 
	}
	with(window.opener.document.cscform){
		__fixfiltervw_htraintrnee.value += "and (classdatefrm between '"+sdate[2]+"-"+sdate[1]+"-"+sdate[0]+"' AND '"+edate[2]+"-"+edate[1]+"-"+edate[0]+"') AND (classdateto  between '"+sdate[2]+"-"+sdate[1]+"-"+sdate[0]+"' AND '"+edate[2]+"-"+edate[1]+"-"+edate[0]+"')";
	}
	alert(window.opener.document.cscform.__fixfiltervw_htraintrnee.value);
	window.close();
}


function setParent(inputName,inputValue){
	with(window.opener.document.cscform){
	 for(var  z=0;z<elements.length;z++){
	 	if(elements[z].name==inputName){
		     if(elements[z].name != "__language"){
			     elements[z].value=inputValue;
	        }
 		}
	 }
	}
}

</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="cscform" method="post" >
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">
<script language="javascript">getInputFormatDate();</script>
<input type="hidden" name="__calendar">
  <center>
    <table  cellpadding="0"  cellspacing="0">
      <tr > 
        <td  class="header"> TROP_TRRE022, 
		  <script language="javascript">swapLang('Report Option');</script>&nbsp;</td>
      </tr>
      <tr > 
        <td  colspan="2" align="center"> 
            <table  cellpadding="0" cellspacing="0" >
              <tr> 
                <td height="12" colspan="2"  class="blankspace"></td>
              </tr>              
			  <tr>
					<td width="150" align="right" class="head1"><script language="javascript">swapLang('Period account');</script>&nbsp;</td>
					<td width="475" align="left"></td>
			  </tr>
			  <tr>
					<td width="150" align="right"><script language="javascript">swapLang('Start date');</script>&nbsp;</td>
					<td width="475" align="left"><input type="text" name="__sdate"  value="" maxlength="10" size="15" onKeyPress="chkInteger(event);" onKeyUp="formatDate(this);" onFocus="this.select();">&nbsp;<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onClick="viewCal('__sdate');"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image1" width="20" height="20" border="0" align="absmiddle"></a></td>
			  </tr>
				 <tr>
					<td width="150" align="right"><script language="javascript">swapLang('End date');</script>&nbsp;</td>
					<td width="475" align="left"><input type="text" name="__edate"  value="" maxlength="10" size="15" onKeyPress="chkInteger(event);" onKeyUp="formatDate(this);" onFocus="this.select();">&nbsp;<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onClick="viewCal('__edate');"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image2" width="20" height="20" border="0" align="absmiddle"></a></td>
			  </tr>
              <tr > 
                <td colspan="2" class="blankspace"></td>
              </tr>
              <TR> 
                <TD colspan="2" align="center"><img src="../IMAGES/BUTTON/OK.gif" onClick="back()"> 
                    &nbsp;&nbsp; <img src="../IMAGES/BUTTON/CANCEL.gif" onClick="window.close()"></TD>
              </TR>
              <tr > 
                <td colspan="2" class="blankspace"></td>
              </tr>
            </table>
          </td>
      </tr>
      <tr bordercolor="0069B3"> 
        <td  class="bottom"></td>
      </tr>
    </table>
  </center>
<INPUT TYPE="hidden" NAME="__screen" VALUE="<%=request.getParameter("__screen")%>">
</form>
</body>
</html>