<link rel="stylesheet" type="text/css" href="/edu/css/default.css"> <link rel="stylesheet" type="text/css" href="/edu/css/DatePicker.css">         <script language="javascript" src="/edu/js/searchCommon.js"></script> <script language="javascript" src="/edu/js/dealbutton.js"></script> <script language="javascript" src="/edu/js/common.js"></script> <script language="javascript" src="/edu/js/message.js"></script> <script language="javascript">  </script>  <html> <body>  <form name="stdscoreSearchForm" method="post" action="/edu/score/stdscore/stdscoreList.do"><input type="hidden" name="org.apache.struts.taglib.html.TOKEN" value="bae8e0c66aa8ae66b15415904c458700"> <input type="hidden" name="doWhat"> <input type="hidden" name="idEdit">          <script language="javascript" src="/edu/js/sortTable.js"></script>  <table width='99%' border='0' id='maintbl' name='maintbl' cellspacing='0' cellpadding='0' class="contentTable" align='center'>     <tr class="tableTitle" align="center">     <td  width='100%'>    <DIV align="center" id='windiv1' name='windiv1'   onscroll="show;"style=" BORDER-RIGHT: gray 0px solid; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; OVERFLOW: auto; BORDER-LEFT: gray 0px solid; PADDING-TOP: 0px; BORDER-BOTTOM: gray 0px solid">    <table width='100%' border='0' id='detailtbltitle' name='detailtbltitle' cellspacing='1' cellpadding='3' class="contentTable" align='left'>     <tr class="tableTitle" align="center">                                       <td width="12%">                   Academic Year                </td>                                                                                                   <td width="12%">                   Student ID                </td>                                                                                                   <td width="14%">                   Name                </td>                                                                                                   <td width="14%">                   Course Name                </td>                                                                                                   <td width="8%">                   Score                </td>                                                                                                   <td width="8%">                   Is_Pass                </td>                                                                                                   <td width="8%">                                   </td>                                                                                                                                                     </tr> </table></div>          </td>        <td align="center" width='2%'><IMG ID="dopreview" SRC="/edu/images/YL.gif"  STYLE= "cursor:hand" BORDER="0" ALT="print" onclick="printview();"></td>          </tr>  </table>    <table width='99%' border='0' id='aintbl' name='aintbl' cellspacing='1' cellpadding='0' class="contentTable" align='center'>     <tr class="defaultBGColor" align="center"><td id='td_midle' colSpan=9 width="100%">    <DIV align="center" id='windiv' name='windiv' onscroll="show;"   style="HEIGHT: 360px; BORDER-RIGHT: gray 0px solid; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; OVERFLOW:auto; BORDER-LEFT: gray 0px solid; PADDING-TOP: 0px; BORDER-BOTTOM: gray 0px solid" >    <table width='100%' border='0' id='detailtbl' name='detailtbl' cellspacing='1' cellpadding='3' class="contentTable" align='left'>          <tr class="defaultBGColor"  onmouseout="this.style.backgroundColor='';"onmouseover="this.style.backgroundColor='#F1F1F1';">                                                                        <td align="center">                       2012-2013  -2                    </td>                                                                                                                                                                                                  <td align="center">                       201201040                    </td>                                                                                                                                                                                                  <td align="center">                       GOVENDER CERISHA                    </td>                                                                                                                                                                                                  <td align="center">                       Organic Chemistry                    </td>                                                                                                                                                                                                  <td align="center">                       56.00                    </td>                                                                                                                                                                                                  <td align="center">                       No                    </td>                                                                                                                                                                                                  <td align="center">                       &nbsp;                    </td>                                                                                                                                                                                                                                                                                                                                   <input type="hidden" name=scoreList[0].is_Makeup value="0">                                                                 </tr>          <tr class="defaultBGColor2"  onmouseout="this.style.backgroundColor='';"onmouseover="this.style.backgroundColor='#F1F1F1';">                                                                        <td align="center">                       2012-2013  -2                    </td>                                                                                                                                                                                                  <td align="center">                       201201040                    </td>                                                                                                                                                                                                  <td align="center">                       GOVENDER CERISHA                    </td>                                                                                                                                                                                                  <td align="center">                       Histology&amp;Embryology                    </td>                                                                                                                                                                                                  <td align="center">                       67.00                    </td>                                                                                                                                                                                                  <td align="center">                       Yes                    </td>                                                                                                                                                                                                  <td align="center">                       &nbsp;                    </td>                                                                                                                                                                                                                                                                                                                                   <input type="hidden" name=scoreList[1].is_Makeup value="0">                                                                 </tr>          <tr class="defaultBGColor"  onmouseout="this.style.backgroundColor='';"onmouseover="this.style.backgroundColor='#F1F1F1';">                                                                        <td align="center">                       2012-2013  -2                    </td>                                                                                                                                                                                                  <td align="center">                       201201040                    </td>                                                                                                                                                                                                  <td align="center">                       GOVENDER CERISHA                    </td>                                                                                                                                                                                                  <td align="center">                       Chinese (2)                    </td>                                                                                                                                                                                                  <td align="center">                       82.00                    </td>                                                                                                                                                                                                  <td align="center">                       Yes                    </td>                                                                                                                                                                                                  <td align="center">                       &nbsp;                    </td>                                                                                                                                                                                                                                                                                                                                   <input type="hidden" name=scoreList[2].is_Makeup value="0">                                                                 </tr>          <tr class="defaultBGColor2"  onmouseout="this.style.backgroundColor='';"onmouseover="this.style.backgroundColor='#F1F1F1';">                                                                        <td align="center">                       2012-2013  -2                    </td>                                                                                                                                                                                                  <td align="center">                       201201040                    </td>                                                                                                                                                                                                  <td align="center">                       GOVENDER CERISHA                    </td>                                                                                                                                                                                                  <td align="center">                       Cell Biology                     </td>                                                                                                                                                                                                  <td align="center">                       86.00                    </td>                                                                                                                                                                                                  <td align="center">                       Yes                    </td>                                                                                                                                                                                                  <td align="center">                       &nbsp;                    </td>                                                                                                                                                                                                                                                                                                                                   <input type="hidden" name=scoreList[3].is_Makeup value="0">                                                                 </tr>          <tr class="defaultBGColor"  onmouseout="this.style.backgroundColor='';"onmouseover="this.style.backgroundColor='#F1F1F1';">                                                                        <td align="center">                       2012-2013  -2                    </td>                                                                                                                                                                                                  <td align="center">                       201201040                    </td>                                                                                                                                                                                                  <td align="center">                       GOVENDER CERISHA                    </td>                                                                                                                                                                                                  <td align="center">                       Anatomy(2)                    </td>                                                                                                                                                                                                  <td align="center">                       88.00                    </td>                                                                                                                                                                                                  <td align="center">                       Yes                    </td>                                                                                                                                                                                                  <td align="center">                       &nbsp;                    </td>                                                                                                                                                                                                                                                                                                                                   <input type="hidden" name=scoreList[4].is_Makeup value="0">                                                                 </tr>          </TABLE></DIV>     </td></tr>      <tr class="tableTitle" align="center">     <td width="101%">    <DIV align="center" id='windiv1' name='windiv1'   onscroll="show;"style=" BORDER-RIGHT: gray 0px solid; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; OVERFLOW: auto; BORDER-LEFT: gray 0px solid; PADDING-TOP: 0px; BORDER-BOTTOM: gray 0px solid">    <table width='100%' border='0' id='totaltbl' name='totaltbl' cellspacing='1' cellpadding='3' class="contentTable" align='left'>     <tr class="defaultBGColor" align="center">                                            <td  class="tableListDetail1"  align="center" >                                                                                </td>                                                         <td  class="tableListDetail1"  align="center" >                                                                                </td>                                                         <td  class="tableListDetail1"  align="center" >                                                                                </td>                                                         <td  class="tableListDetail1"  align="center" >                                                       5                                                               </td>                                                         <td  class="tableListDetail1"  align="center" >                                                                                </td>                                                         <td  class="tableListDetail1"  align="center" >                                                                                </td>                                                         <td  class="tableListDetail1"  align="center" >                                                                                </td>                                                                     </tr> </table> </div>         </td>          <td ><IMG ID="dopreview" SRC="/edu/images/blank.gif"  STYLE= "cursor:hand" BORDER="0" ></td>         </tr>  </table>   <script type="text/javascript" language="JavaScript"> var colswidth  = new Array(); var colsalign  = new Array(); function setDetailCellsWidth() {     var count=0;     for (j=0; j < document.all.totaltbl.rows(0).cells.length; j++) {             document.all.totaltbl.rows(0).cells(j).width =document.all.detailtbltitle.rows(0).cells(j).width;             colswidth[j] = document.all.detailtbltitle.rows(0).cells(j).width;             colswidth[j] = colswidth[j].replace("%","");             colsalign[j] = document.all.totaltbl.rows(0).cells(j).align;         }     if (document.all.detailtbl.rows.length <1) return;     for (j=0; j < document.all.detailtbl.rows(0).cells.length; j++) {             document.all.detailtbl.rows(0).cells(j).width =document.all.detailtbltitle.rows(0).cells(j).width;             count++;         }      if (document.all.windiv.scrollHeight>document.all.windiv.clientHeight)     {      // alert("scrollWidth:"+document.all.windiv.scrollWidth);     // alert("scrollHeight:"+document.all.windiv.scrollHeight);     // alert("clientWidth:"+document.all.windiv.clientWidth);    //     document.all.imgDrawDown.style.display = "";    //      document.all.detailtbltitle.rows(0).cells(0).style.display = "none";         document.all.windiv.style.overflow  = "auto";     }     else     {          document.all.windiv.style.overflow="scroll";     }  } function show(){} //???íUP,DOWN????±ê???????????????? function on_keydown(obj,id) { //   alert(event.keyCode);    var vname=obj.name;    var prefix=vname.substr(0,vname.indexOf("["));    var colname=vname.substr(vname.indexOf(".")+1); 	if (event.keyCode==38 ) 	{       window.event.keyCode=0;       id = id-1;       setFocus(prefix,id,colname);     }      else if (event.keyCode==40 ) 	{       window.event.keyCode=0;       if ((id+2)>getShowRowCount("detailtbl"))         {           id = 0;         }       else         {           id = id+1;         }          setFocus(prefix,id,colname);      } }  function checkIsNumber(str) {  var val = 0;   try   { val = str*1; if (isNaN(val)) return false ;else return true;  }  catch(e)  {  return false; } } function do_func(rowid,obj,func) {   var funcName;   var functParaCol = new Array();   var colno= 0;   var cell = obj.parentElement;//??this?????ó??CELL   var row = cell.parentElement; //??cell?????ó??ROW   var rowno = row.rowIndex*1;   funcName = func.split('(')[0];   var s =   func.split('(')[1];   s = s.substr(0,s.length-1);   funcParaCol =  trim(s).split(',');   var table =  document.all.detailtbl;   var paraStr = '';   var val = "";   for (i=0;i <funcParaCol.length&&s.length>0;i++)   {       if (funcParaCol[i]=="R")       {          val = rowid+"";       }       else       {         colno =  funcParaCol[i]*1;         val =  table.rows(rowno).cells(colno).innerText;       }       if (checkIsNumber(trim(val)))          paraStr = paraStr + val  + ',' ;       else          paraStr = paraStr + "'"+ val  + "'," ;   }    if (paraStr.length >0) paraStr = paraStr.substr(0,paraStr.length-1);    if (s.length >0 )       funcName = funcName + '(' + paraStr + ')' ;    else       funcName = funcName + '()'  ;    eval(funcName); } function printview() {   var title = 'Score Query' ;   var pd  = new Array();   var r,i;   r = 0;   pd[0] = new Array();   pd[0] = colswidth;   pd[1] = new Array();   pd[1] = colsalign;   r=2;   var table =  document.all.detailtbltitle;   for (i=0; i < table.rows.length; i++)   {         pd[r] = new Array();         for (j=0; j < table.rows(i).cells.length; j++)         {             str = table.rows(i).cells(j).innerText ;             pd[r][j] = str;         }         r++;    } //  table =  document.all.detailtbl; //  for (i=0; i < table.rows.length; i++) //  { //        pd[r] = new Array(); //        for (j=0; j < table.rows(i).cells.length; j++) //        { //            str = table.rows(i).cells(j).children.value+"" ; //            alert(str); //            pd[r][j] = new Array(); //            pd[r][j] = str; //        } //        r++; //   }      table =  document.all.detailtbl;     var cellchildren;   for (i=0; i < table.rows.length; i++)   {         pd[r] = new Array();         for (j=0; j < table.rows(i).cells.length; j++)         {             str = table.rows(i).cells(j).innerText+"" ;             pd[r][j] = new Array();             pd[r][j] = str;             if (str == "" || str == " ")  //?????????????????ì?é??·???       //add by zhangming 2008-6-18   ?????ò????????????             {                 cellchildren = table.rows(i).cells(j).children; 	            for(m=0;m<cellchildren.length;m++)  { 	              var child = cellchildren(m); 	    	      if (child.tagName=="INPUT") { 	        	      str = child.value;                       pd[r][j] = str;                       break;                   }        	        }            }         }         r++;    }   table =  document.all.totaltbl;   for (i=0; i < table.rows.length; i++)   {         pd[r] = new Array();         for (j=0; j < table.rows(i).cells.length; j++)         {             str = table.rows(i).cells(j).innerText+"" ;             pd[r][j] = new Array();             pd[r][j] = str;         }         r++;    }    var thisdate = new Date();    var thistime = thisdate.getTime();    url = "/edu/include/windowBodyPrint.jsp?id="+thistime+"&title="+title; 	var retValue= window.showModalDialog(url,pd,"dialogWidth:900px;dialogHeight:600px"); } setDetailCellsWidth(); initTable("detailtbl") </script>     </form> </body>  <script type="text/javascript">      if(""!="201301"){      if("1"!="1"){             showProcessMsg("You have not registered this term , please contact your teacher……",false,true,false);         }       }else{             showProcessMsg("Please choose the term……",false,true,false);      }       var size = "5"  ;     for(var i=0;i<parseInt(size);i++){         var is_makeup = document.forms[0].elements["scoreList["+i+"].is_Makeup"].value;         if(is_makeup=="1"){            var score =  document.all.detailtbl.rows(i).cells(4).innerHTML;            if(parseFloat(score)<60.0){               document.all.detailtbl.rows(i).cells(4).innerHTML = 'fail';            }         }     }  </script>  </html>