require('teacher_config.php');
$nianji=$_GET["nj"];
if (!$nianji){
$nianji=1;
}
$string="select score1,score2,score3,score4,score5 from Sch_Teacher_Paihang where uid='".$uid."' and nianji='".$nianji."'";
$result=$conn->query($string);
$array=$conn->fetch_array($result);
?>
SmartBees
 |
 |
| |
Teacher
Name :
|
School
Name :
|
|
|
Subject 科目
|
Number
of trials 答题次数
|
Score
board 成绩图示
|
Results
成绩
|
|
$kerr=array("shuxue","yingyu","guoyu","huayu","kexue");
for ($i=0;$i<5;$i++)
{
$j=$i+1;
$scoren=$array["score".$j];
if ($scoren){
$scrr=explode("/",$scoren);
$score=$scrr[0]/floor($scrr[1]);
$score=sprintf("%01.2f", $score);
$answers=$scrr[2];
}else{
$score=0;
$answers=0;
}
$num1=$score*3;
$num2=300-$num1;
if ($num1<150){
$color1="#ff0000";
}else{
$color1="#009900";
}
$hhh=14;
?>
 |
|
|
% |
 |
}
?>
|
 |
|
 |
|