示例#1
0
 $YPos += 20;
 $YPos -= $line_height;
 //Note, this is ok for multilang as this is the value of a Select, text in option is different
 $YPos -= 12 * $line_height;
 $pdf->line(19, $YPos + $line_height, $Page_Width - $Right_Margin, $YPos + $line_height, $style);
 $YPos -= 50;
 $YPos -= $line_height;
 $pdf->line(19, $YPos + $line_height, $Page_Width - $Right_Margin, $YPos + $line_height, $style);
 $YPos -= 8 * $line_height;
 $line_width = 40;
 $XPos = 180;
 $YPos2 = $YPos;
 $count = 0;
 $i = 0;
 $bus_report_stream = new bus_report_stream($_POST['class_id'], $_POST['period_id'], $db);
 $subjects_array = tep_get_subjects_stream($_POST['class_id'], $_POST['period_id'], $db);
 $current_student = '';
 $pdf->starttransform();
 $pdf->xy($XPos - 20, 332);
 $pdf->rotate(90);
 $LeftOvers = $pdf->addTextWrap($XPos - 65, $YPos - 5, 300, $FontSize, _('GENDER'));
 $pdf->stoptransform();
 foreach ($subjects_array as $r => $s) {
     $pdf->starttransform();
     $pdf->xy($XPos, 332);
     $pdf->rotate(90);
     $LeftOvers = $pdf->addTextWrap($XPos - 45, $YPos, 300, $FontSize, $s['subject_name']);
     $pdf->stoptransform();
     $XPos += 0.5 * $line_width;
 }
 $LeftOvers = $pdf->addTextWrap($XPos + 35, $YPos, 300, $FontSize, _('Mean'));
示例#2
0
                     }
                     $stude = $myrowrank['student_id'];
                     $sqlgenerate = "UPDATE termly_student_ranks\n\t\t\t\t\tSET rank='" . $ranked . "'\n\t\t\t\t\tWHERE student_id='" . $stude . "'\n\t\t\t\t\tAND period_id='" . $_POST['period_id'] . "'\n\t\t\t\t\tAND class_id='" . $myrowstream['id'] . "'";
                     $generate = DB_query($sqlgenerate, $db);
                     $prevRow2 = $myrowrank['mean'];
                 }
                 //end of while ($myrowrank= DB_fetch_array($resultrank))	fu
             }
             //end of else
         }
         //end of foreach ($bus_report_stream->scheduled_students as $sa => $st)
     }
     //end of if($bus_report_stream->scheduled_students>0)
 }
 //end of else is lower
 $subjects_array = tep_get_subjects_stream($myrowstream['id'], $_POST['period_id'], $db);
 if ($subjects_array > 0) {
     foreach ($subjects_array as $r => $s) {
         $bus_report2 = new bus_report2($myrowstream['id'], $_POST['period_id'], $s['id'], $db);
         $count = 0;
         $total_marks = 0;
         $total_marks2 = 0;
         foreach ($bus_report2->scheduled_students as $a => $b) {
             $total_marks = total_marks($b['student_id'], $_POST['period_id'], $s['id'], $db);
             $total_marks2 = $total_marks2 + $total_marks;
             $count = $count + 1;
         }
         if ($count > 0) {
             $subject_mean = $total_marks2 / $count;
         } else {
             $subject_mean = 0;