예제 #1
0
파일: index.php 프로젝트: ATCS-BCA/bca-apps
     $sessions = get_session_times();
     $session_id = filter_input(INPUT_POST, 'ses_id');
     include "sheetRequest.php";
     break;
 case 'generatet':
     $title = "Mentor Check In";
     $mentorList = get_mentors();
     $mentors = array();
     foreach ($mentorList as $mentorInfo) {
         array_push($mentors, array($mentorInfo['pres_room'], $mentorInfo['pres_host_teacher'], $mentorInfo['mentor_last_name'], $mentorInfo['mentor_first_name'], $mentorInfo['mentor_company']));
     }
     $header = array("X", "Name", "Company", "Host Teacher", "Rm #");
     $pdf = new signinPDF();
     $pdf->AddPage("P", "Letter");
     $pdf->SetFont('Arial', 'B', 12);
     $pdf->SetXY(50, 20);
     $pdf->SetDrawColor(50, 60, 100);
     $pdf->Cell(100, 10, $title, 1, 0, 'C', 0);
     $pdf->FancyTeacher($header, $mentors);
     $pdf->Output('signin.pdf', 'I');
     break;
 case 'generates':
     $mentor_id = filter_input(INPUT_POST, 'mentor');
     $session_id = filter_input(INPUT_POST, 'session');
     $presentations = get_presentation_list($mentor_id, $session_id);
     $header = array("Year", "Academy", "Name", "Signature");
     $pdf = new signinPDF();
     foreach ($presentations as $pres) {
         $title = $pres['ses_name'] . " sign in";
         $students = get_students_in_ses($pres["pres_id"]);
         $pdf->AddPage("P", "Letter");