 <!--
<?php
print <<<EOT
--> 
<table width=100% cellspacing=1 cellpadding=3  class="tablewidth">
  <tr> <form name="form2" method="post" action="">
      <td>[<a href="?lfj=$lfj&job=liststudent&id=$id">全部會員的問卷</a>]</td>
    </form>
  </tr>
</table>
<table width='100%' cellspacing='1' cellpadding='3'  class="tablewidth">
        <tr> 
          <td height="21" class="head"> 
            批閱試卷
          </td>
        </tr> <tr> 
          
    <td height="21" class="head3">試卷名:《 <b>{$rsdb[name]}</b> 》 <br>
      會員︰<a href="../member/homepage.php?uid=$rsdb[student_uid]" target="_blank"><font color="#0000FF">{$rsdb[student_name]}</font></a> 
      　　　當前總分數:<b><font color="#FF0000">{$rsdb[total_fen]}</font></b>分 　　　　提交日期:$rsdb[posttime] 
    </td>
        </tr>
        <tr> 
          <td height="50" class="middle" valign="top"> <form name="form1" method="post" action="?lfj=$lfj">
              <!--
EOT;
$i=0;
foreach($listdb AS $key=>$array){
$i++;
$num=count($array);
$eachfen=$config[fendb][$key]/$num;
print <<<EOT
-->
              <table width="99%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                
            <td bgcolor="#D5DFFB" style="padding:4px;">{$numDB[$i]}、{$paperType[$key]}。(共{$num}題,共<font color="#FF0000"><b>{$config[fendb][$key]}</b></font>分,每題<font color="#FF0000">{$eachfen}</font>分)</td>
              </tr>
              <tr>
                <td>
 
<!--
EOT;
$j=0;
foreach($array AS $rs){
$j++;
print <<<EOT
-->    
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:8px;">
                    <tr> 
                      <td>{$j}. {$rs[question]}</td>
                    </tr>
                    <tr> 
                      <td style="padding:4px;"> 
                        
$rs[showcontent]
 
                    <table width="100" border="0" cellspacing="0" cellpadding="0"><!--
EOT;
if($rs[st_id]){print <<<EOT
-->  
                      <tr> 
                        <td><FIELDSET><LEGEND>得分</LEGEND> 
                          <input type="text" name="fenDB[$rs[st_id]]" size="4" style="background:#F2F2F2;" value="$rs[_fen]">
                          </FIELDSET></td><td>&nbsp;&nbsp;</td>
                        <td><FIELDSET><LEGEND>點評</LEGEND> 
                          <textarea name='commentDB[$rs[st_id]]' cols='50' rows='3' style="background:#F2F2F2;">$rs[_comment]</textarea>
                          </FIELDSET></td>
                        
                      </tr><!--
EOT;
}print <<<EOT
-->  
                    </table>
						
						
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>最佳答案是:<font color="#FF0000">$rs[answer]</font> </td>
                      </tr>
                    </table>
                  </td>
                    </tr>
                  </table>
<!--
EOT;
}print <<<EOT
-->  
                </td>
              </tr>
            </table>
            <!--
EOT;
}print <<<EOT
-->
            <div style="padding:10px;text-align:center;"> 
                    <input type="submit" name="Submit" value="提交">
                    
              <input type="hidden" value="postRead" name="action">
              <input type="hidden" value="$student_id" name="student_id">
              <input type="hidden" value="$id" name="id">
            </div>  </form>
            
    </td>
        </tr>
         
      </table>
      
    
<script language="JavaScript"> 
<!--
function MM_jumpMenu(selObj){
	va=selObj.options[selObj.selectedIndex].value;
	if(va!=''){
		//window.location.href='?job=list&classid='+va;
		document.form2.submit();
	}
}
function MM_jumpMenu2(selObj){
	va=selObj.options[selObj.selectedIndex].value;
	if(va!=''){
		document.form2.submit();
	}
}
//-->
</script>
<!--
EOT;
?>
-->
<table width='100%' cellspacing='1' cellpadding='3'  class="tablewidth">
        <tr> 
          
    <td height="21" class="head">說明︰ </td>
  </tr>
  <tr>
    <td>1、會員提交的表單內容不同意修改，但可以做評論與修改分數。<br>
      2、會員沒填寫的題目，則不同意評論與評分。 </td>
  </tr>
</table>
