Exemplo n.º 1
0
$txt1 .= _h($stuInfo[0]['address1']) . ' ' . _h($stuInfo[0]['address2']) . "<br />";
$txt1 .= _h($stuInfo[0]['city']) . ' ' . _h($stuInfo[0]['state']) . ' ' . _h($stuInfo[0]['zip']) . "<br />";
// set some text for student info
$txt2 = _t('Student ID: ') . _h($stuInfo[0]['stuID']) . "<br />";
if (_h($stuInfo[0]['ssn']) > 0) {
    $txt2 .= _t('Social Security #: ') . _h($stuInfo[0]['ssn']) . "<br />";
} else {
    $txt2 .= _t('Social Security #: ') . "<br />";
}
if (_h($stuInfo[0]['graduationDate']) > '0000-00-00') {
    $txt2 .= _t('Graduation Date: ') . _h($stuInfo[0]['graduationDate']) . "<br />";
} else {
    $txt2 .= _t('Graduation Date: ') . "<br />";
}
// writeHTMLCell
$pdf->writeHTMLCell(0, 0, '', '', $txt1, 0, 1, 0, true, 'L', true);
$pdf->writeHTMLCell(0, 0, 234, 20, $txt2, 0, 1, 0, true, 'L', true);
// column titles
$table = '<table cellpadding="0" cellspacing="0" border="0" class="table table-striped" id="table-example">';
$table .= '<thead><tr>';
$table .= '<th><b>' . _t('Course') . '</b></th>';
$table .= '<th><b>' . _t('Course Title') . '</b></th>';
$table .= '<th><b>' . _t('Grade') . '</b></th>';
$table .= '<th><b>' . _t('Attempted Credits') . '</b></th>';
$table .= '<th><b>' . _t('Completed Credits') . '</b></th>';
$table .= '<th><b>' . _t('Grade Points') . '</b></th>';
$table .= '<th><b>' . _t('Term') . '</b></th>';
$table .= '</tr></thead>';
$table .= '<tbody>';
if (_h($transferGPA[0]['Attempted']) != NULL) {
    foreach ($transferCourses as $key => $value) {
Exemplo n.º 2
0
// ---------------------------------------------------------
// set font
$pdf->SetFont('freesans', '', 10);
// add a page
$pdf->AddPage();
// set cell padding
$pdf->setCellPaddings(1, 1, 1, 1);
// set cell margins
$pdf->setCellMargins(1, 1, 1, 1);
// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)
// set some text for student info
$txt1 = _h(get_option('institution_name')) . "<br />";
$txt1 .= "Section: " . _h($sros[0]['courseSection']) . " " . _h($sros[0]['secShortTitle']) . "<br />";
$txt1 .= "Instructor: " . get_name(_h($sros[0]['facID'])) . "<br />";
// writeHTMLCell
$pdf->writeHTMLCell(0, 0, '', '', $txt1, 0, 1, 0, true, 'L', true);
$schedule = '- - - - - - - - - - - - - - - - - - - - - - - - - - Schedule - - - - - - - - - - - - - - - - - - - - - - - - - -<br />';
$schedule .= _h($sros[0]['startDate']) . ' ' . _h($sros[0]['endDate']) . '&nbsp;&nbsp;&nbsp;&nbsp;' . _h($sros[0]['roomCode']) . '&nbsp;&nbsp;&nbsp;&nbsp;' . _h($sros[0]['instructorMethod']) . '&nbsp;&nbsp;&nbsp;&nbsp;' . _h($sros[0]['dotw']) . '&nbsp;&nbsp;&nbsp;&nbsp;' . _h($sros[0]['startTime']) . ' ' . _h($sros[0]['endTime']);
// print a block of text using Write()
$pdf->writeHTMLCell(0, 0, '', '', $schedule, 0, 1, 0, true, 'C', true);
// column titles
$table = '<table cellpadding="0" cellspacing="0" border="0" class="table table-striped" id="table-example">';
$table .= '<thead><tr>';
$table .= '<th><b>' . _t('ID') . '</b></th>';
$table .= '<th><b>' . _t('Name') . '</b></th>';
$table .= '<th><b>' . _t('Acad Level') . '</b></th>';
$table .= '<th><b>' . _t('Acad Program') . '</b></th>';
$table .= '<th><b>' . _t('Acad Credit Status') . '</b></th>';
$table .= '</tr></thead>';
$table .= '<tbody>';
foreach ($sros as $k => $v) {