Esempio n. 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 = new bus_report($_POST['class_id'], $_POST['year'], $_POST['term'], $db);
 $subjects_array = tep_get_subjects($_POST['class_id'], $_POST['year'], $_POST['term'], $db);
 $current_student = '';
 $pdf->starttransform();
 $pdf->xy($XPos - 20, 332);
 $pdf->rotate(90);
 $pdf->stoptransform();
 $FontSize = 5;
 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;
 }
 $FontSize = 10;
Esempio n. 2
0
 function set_primary_vars_class($class, $debtorno, $year, $term, $calendar_id, $db)
 {
     $subjects_array = tep_get_subjects($class, $year, term, $db);
     foreach ($subjects_array as $r => $s) {
         $this->subject[] = array("id" => $s['id'], "department_id" => $s['department_id'], "tmarks" => primary_get_subjects_marks_class($s['id'], $debtorno, $class, $year, $term, $this->calendar_id, $db));
     }
 }