<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/enrgise-html.tld" prefix="enrgise" %>

<html:html>
<HEAD>
    <html:base />
    <TITLE><bean:message key="hrm.title" /></TITLE>
	  <jsp:include page="GenIncludes.jsp" flush="true" />
</HEAD>

<BODY onkeydown="hotKeys(event);" scroll=auto >

<html:form name="HrmFacFBDtlForm" action="HrmFacFBDtlBaseAction" type="wenrgise.hrms.webtier.form.HrmTrngFacFeedBackDtlForm">
<bean:define id="ParentForm" name="HrmFacFBDtlForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />

<html:hidden property="detailDataChanged" name="HrmFacFBDtlForm" />
<html:hidden property="headerDataChanged" name="HrmFacFBDtlForm" />
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader ><bean:message  key="hrm.HrmFacFBMainHeader" /></TD>
    </TR>
</TABLE>
<!--//  Display Errors -->
<enrgise:errors/>
<logic:messagesPresent message="true">
<Table>
    <html:messages id="message" message="true">
    <TR><TD>
      <bean:write name="message"/>
    </TD></TR>
    </html:messages>      
</Table>
</logic:messagesPresent>
<!--//  Display Errors -->

<TABLE cellSpacing=0 cellPadding=0 border=0 >
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!--Inspection Header Starts -->
            
            <TR>
                  <TD class=subHeader colspan=6><bean:message  key="hrm.HrmFacFBSubHeader" /></TD>
            </TR>
            <TR>
                  <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
            </TR>
            
            
            <TR> 
                  <td class=labelText><bean:message key="hrm.HrmFacFB.courseName" /></td>
                  <td><html:text  property="courseName" name="HrmFacFBDtlForm" titleKey="hrm.HrmFacFB.courseName" alt="ALPHA" maxlength="15" size="23" styleClass="locked" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon" property="butCourseName" name="HrmFacFBDtlForm" onclick=" return ShowCourseName();doOnChangeLov(lovKey)" /></td>
                  <td class=labelText><bean:message key="hrm.HrmFacFB.institutionName" /></td>
                  <td><html:text  property="institutionName" name="HrmFacFBDtlForm" alt="P" titleKey="hrm.HrmFacFB.institutionName" maxlength="15" size="26" styleClass="locked" readonly="true" /></td>
                  <td class=labelText><bean:message key="hrm.HrmFacFB.ratingScheme" /></td>
                  <td><html:text  property="ratingScheme" name="HrmFacFBDtlForm" alt="P" titleKey="hrm.HrmFacFB.ratingScheme" maxlength="15" size="26" styleClass="locked" readonly="true"  /></td>
                               
            </TR>
            
            <tr>
                 <td class=labelText><bean:message key="hrm.HrmFacFB.minRating" /></td>
                 <td><html:text  property="minRating" name="HrmFacFBDtlForm" titleKey="hrm.HrmFacFB.minRating" maxlength="15" size="26" styleClass="locked" readonly="true" /></td>
                 <td class=labelText><bean:message key="hrm.HrmFacFB.maxRating" /></td>
                 <td><html:text  property="maxRating" name="HrmFacFBDtlForm" alt="P" titleKey="hrm.HrmFacFB.maxRating" maxlength="15" size="26" styleClass="locked" readonly="true" /></td>
                 <td colspan="2"></td>
           </tr>
            
            
            <tr>
                 <td class=labelText><bean:message key="hrm.HrmFacFB.startDate" /></td>
                 <td><html:text  property="startDate" name="HrmFacFBDtlForm" titleKey="hrm.HrmFacFB.startDate" maxlength="15" size="26" styleClass="locked" readonly="true" /></td>
                 <td class=labelText><bean:message key="hrm.HrmFacFB.endDate" /></td>
                 <td><html:text  property="endDate" name="HrmFacFBDtlForm" titleKey="hrm.HrmFacFB.endDate" maxlength="15" size="26" styleClass="locked" readonly="true" /></td>
                 <td colspan="2"></td>
           </tr>
            
            <TR>
                  <TD class=subHeader colspan=6><bean:message  key="hrm.HrmFacFBSubHeader1" /></TD>
            </TR>
            <TR>
                  <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
            </TR>
            
            <tr>
                 <td class=labelText><bean:message key="hrm.HrmFacFB.facultyName" /></td>
                 <td><html:text  property="facName" name="HrmFacFBDtlForm" titleKey="hrm.HrmFacFB.facultyName" size="23" styleClass="locked" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" styleClass="icon" property="butFacultyName" name="HrmFacFBDtlForm" onclick=" return ShowFacultyName();doOnChangeLov(lovKey)" /></td>
                 <td class=labelText><bean:message key="hrm.HrmTransferApplcn.trnsStatus" /></td>
                 <td><html:select property="statusFlag" name="HrmFacFBDtlForm" alt="P"  styleClass="optional" disabled="true" >
                    <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
                    <html:option value="P" > <bean:message key="hrm.HrmEmpFeedback.p" /></html:option>
                    <html:option value="C" > <bean:message key="hrm.HrmEmpFeedback.c" /></html:option>
                    </html:select></td><html:hidden property="statusFlag" />
           </tr>
            <tr height="10">
                <td colspan="6"></td> 
            </tr>
      </table>
      <table cellspacing=0 cellpadding=0 border=0>
          
         <TR>
            <TD colspan=6>
            
            <TABLE cellSpacing=0 cellPadding=0 >
            <tr>
                <td bgcolor="#4682B4" ></td>
                <enrgise:tab name="HrmFacFBDtlForm" property="butFacFeedBackTab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message  key="hrm.HrmFacFBTableHeader" /></enrgise:tab>
                <td width="83%"> </td>
            </tr>  
              <TR height=10>
              
            
              <TD colSpan=5>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                  <TD >
                  <DIV id=divDtlTable style="height:280px;width:1010px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                          <tr>
                            <TD class=tableHeader width="1%"><input type="checkbox" name="selectAll"  onclick="toggleCheckBox('checked')"  /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmFacFB.EmpNo" /></td>
                            <TD class=tableHeader ><bean:message  key="hrm.HrmFacFB.empName" /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmFacFB.rating" /></td>
                            <TD class=tableHeader ><bean:message  key="hrm.HrmFacFB.remarks" /></td>
                         </tr>    
                         <logic:iterate id="HrmFacFeedBack" name="HrmFacFBDtlForm" property="arrFacFeedBackNextDtl" type="wenrgise.hrms.bean.HrmTrngFacFdbkDtlBean" indexId="idx" >
                                <tr class='<bean:write name="HrmFacFBDtlForm" property="listRowClass"/>'  >
                                  <TD width="1%"><input type="checkbox" disabled="true"  /></td>   
                                  <html:hidden property="itemChecked" name="HrmFacFeedBack" /><html:hidden property="status" name="HrmFacFeedBack" /><html:hidden property="detailId"  name="HrmFacFeedBack" /><html:hidden property="hdrId"  name="HrmFacFeedBack" /><html:hidden property="txtEmpId" name="HrmFacFeedBack" /></td>
                                  <TD class=tableText ><html:text property="txtEmpNo" name="HrmFacFeedBack" style="width:100%" alt="P" maxlength="20" styleClass="locked"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                                  <TD class=tableText ><html:text property="txtEmpName" name="HrmFacFeedBack" style="width:100%" alt="P" styleClass="locked"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                                  <TD class=tableText ><enrgise:text property="txtRating" name="HrmFacFeedBack" formName="HrmFacFBDtlForm" style="width:100%" alt="P" maxlength="2" styleClass="optional" disabledClass="locked" onkeypress="isInteger(event);" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                  <TD class=tableText ><enrgise:text property="txtRemarks" name="HrmFacFeedBack" formName="HrmFacFBDtlForm" style="width:100%" alt="N" maxlength="255" styleClass="optional" disabledClass="locked"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                </tr>
                         </logic:iterate>

                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
                <tr>
                       <bean:define id="pageNo" name="ParentForm" property="pageRequested" toScope="request" />
                       <bean:define id="maxPage" name="ParentForm" property="totalPageCount" toScope="request" />
                        <TABLE border=0>
                          <tbody>
                          <TR>
                            <TD ><button  onclick="doBaseGetDetail()" name="butGetDetail"  styleClass="bottomBarText">&nbsp;Get De<u>t</u>ail&nbsp;</button> <button onclick="doBaseAddRow()" name="butAddRow" disabled="true" styleClass="bottomBarText">&nbsp;&nbsp;Add <u>R</u>ow&nbsp;&nbsp;</button><button  onclick="doBaseDelRow()"
                            name="butDelRow" disabled="true" styleClass="bottomBarText" ><u>D</u>elete Row</button></TD>
                            <td width=50%></td>	
                            <TD ><enrgise:img name="ParentForm" property="butPrevDetail" src="../includes/images/butn_dtl_prev.jpg" onmouseover='this.src="../includes/images/butn_dtl_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_prev.jpg"' alt="Butn_prev (Alt+<)"  onclick="doBasePrevDetail()"/></td>
                            <td class=dtlNavText><bean:write  name="pageNo" /> of 
                            <bean:write name="maxPage" /></td></td>
                            <td  align=right><enrgise:img name="ParentForm" property="butNextDetail" src="../includes/images/butn_dtl_next.jpg" onmouseover='this.src="../includes/images/butn_dtl_next_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_next.jpg"' alt="Butn_next (Alt+>)" onclick="doBaseNextDetail()"/></td>
                            <td  align=right><enrgise:text property="newPageRequested" size="1" onkeydown="isInteger(event)" styleClass="optional" disabledClass="locked" /></td>
                            <td ><enrgise:img name="ParentForm" property="butJumpDetail" altKey="wenrgise.common.go" src="../includes/images/go_dtl.jpg" onclick="doBaseJumpDetail()" /></td>		     
                          </TR>
                        
                          </tbody>
                        </TABLE>
                    </tr>
                  </TBODY>
                </TABLE>
              </td>
            </tr>
        </TABLE>
     </td>
	 </tr>
              <!-- Tab Table Ends -->

      <!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr>
                        <td width=40% align=center bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>                
                        <td bgColor=#4682b4></td>
                        <td align=right bgColor=#4682b4><img src="../includes/images/man.jpg"></td>
                   </TR>
                </table>
            </td>
          </tr>
	
<!-- Container Table Ending Columns Starts-->
    
</TBODY>
</TABLE>
<html:hidden name="HrmFacFBDtlForm"  property="screenMode" />
<html:hidden name="HrmFacFBDtlForm"  property="screenName" value="HrmTrngFacFdbkDtl" />
<html:hidden name="HrmFacFBDtlForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmFacFBDtlForm" />

<html:hidden property="userPageRequested" name="HrmFacFBDtlForm" />
<html:hidden property="userPositionRequested" name="HrmFacFBDtlForm" />
<html:hidden property="pageRequested" name="HrmFacFBDtlForm" />

<html:hidden property="txtIndex" name="HrmFacFBDtlForm"  />
<html:hidden property="headerPrimaryKey" name="HrmFacFBDtlForm" />
<html:hidden property="hdnDetailId" name="HrmFacFBDtlForm" />
  <%! String sFacId; %>
  <%sFacId=request.getParameter("facId");%>
<html:hidden property="facId" value="<%=sFacId%>" />
<!-- Container Table Ends -->

</html:form>
</body>
</html:html>
                
<script>


function doQueryMode()
{

  return "HrmTrngFacFdbkDtlQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmTrngFacFdbkDtlNewModeAction.do";
}


function doExecute()
{
  return "HrmTrngFacFdbkDtlGetHeaderAction.do";
  
}

function doSave()
{
 return "HrmTrngFacFdbkDtlSaveAction.do";
  
}

function doDelete()
{

  return "HrmTrngFacFdbkDtlDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmTrngFacFdbkDtlRefreshAction.do";
  
}

function doPrevHeader()
{
  return "HrmTrngFacFdbkDtlGetNextHeaderAction.do"; 
}

function doNextHeader()
{
  return "HrmTrngFacFdbkDtlGetNextHeaderAction.do"; 
}

function doJumpHeader()
{
  return "HrmTrngFacFdbkDtlGetNextHeaderAction.do"; 
}

function doGetDetail()
{

  return "HrmTrngFacFdbkDtlGetDetailAction.do";
}

function doAddRow()
{

  return "HrmTrngFacFdbkDtlAddRowAction.do"; 
}

function doDelRow()
{
 return "HrmTrngFacFdbkDtlDeleteRowAction.do";  
}

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

  return "HrmTrngFacFdbkDtlGetDetailPageAction.do";  
}
function doExit()
{

  return "HrmTrngFacFdbkDtlExitAction.do";  
}
function doNextDetail()
{

  return "HrmTrngFacFdbkDtlGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmTrngFacFdbkDtlGetDetailPageAction.do"; 
}

<!---- Added For LOV ---->
function getFacultyName()
{
   document.forms[0].lovKey.value = "FacultyName" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
   document.forms[0].txtSearchFields.value = "";
   document.forms[0].txtDisplayFields.value = "facultyNameId,facultyName";
   document.forms[0].multipleFlag.value = false;
   document.forms[0].queryParam.value = "courseId="+ document.forms[0].courseId.value;
   showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />', 'HrmFacFBDtlForm');
   return true;
}

function ShowCourseName()
{
        document.forms[0].lovKey.value = "TrngFacFBCrsName" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmFacFB.courseName";
        document.forms[0].txtDisplayFields.value = "courseId,courseName,institutionName,minRating,maxRating,ratingScheme,startDate,endDate";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmFacFBDtlForm');
        return true;
        
}
function doGetInsertData()
{}

function doOnChangeLov(lovKey)
{
      if(document.forms[0].lovKey.value = "TrngFacFBCrsName" + document.forms[0].screenName.value + document.forms[0].screenMode.value)
      {
        document.forms[0].headerDataChanged.value = 'false' ;
      }
}

function doValidate()
{
  return "HrmFacFeedBackValidateAction.do";
  
}

function doOnChangeLov(lovName)
{
  if(lovName == 'TrngFacFBCrsNameHrmTrngFacFeedBackQ')
  {
    doBaseValidate();
  } 
       
}
</script>             
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
              
   