diff --git a/plugin/customcertificate/resources/css/certificate.css b/plugin/customcertificate/resources/css/certificate.css index 7e8a0f3103..c0aeaff8d2 100644 --- a/plugin/customcertificate/resources/css/certificate.css +++ b/plugin/customcertificate/resources/css/certificate.css @@ -1,12 +1,6 @@ body {background-repeat:no-repeat; margin:0; padding: 0;} td { font-family:arial, sans-serif; font-size:18px; } .logo {height: 150px; vertical-align: middle; } -.content-table {height: 480px; vertical-align:middle;} -.content-student { text-align:center;} -.course { padding-top: 10px; text-align:center; vertical-align: middle;} -.modality { text-align:center; } -.course-date { text-align:center; } -.expediction { font-size: 18px; padding: 20px 0; text-align:right;} .seals { font-size: 16px; text-align:center;} .logo-seals { height: 100px; text-align:center; vertical-align: middle;} @page caraA { height: 210mm; margin:0; padding:0; page-break-before:always;} diff --git a/plugin/customcertificate/src/print_certificate.php b/plugin/customcertificate/src/print_certificate.php index 8f2aea3ae3..04c2eaf456 100644 --- a/plugin/customcertificate/src/print_certificate.php +++ b/plugin/customcertificate/src/print_certificate.php @@ -156,10 +156,11 @@ foreach ($userList as $userInfo) { " border="0">'; $htmlText .= ''; - $htmlText .= ''.$logoLeft.''; - $htmlText .= ''.$logoCenter.''; - $htmlText .= ''.$logoRight.''; + $htmlText .= ''.$logoLeft.''; + $htmlText .= ''.$logoCenter.''; + $htmlText .= ''.$logoRight.''; $htmlText .= ''; + $htmlText .= ''; $all_user_info = DocumentManager::get_all_info_to_certificate( $studentId, @@ -248,17 +249,23 @@ foreach ($userList as $userInfo) { '

  • '; - $htmlText .= ''; - $htmlText .= ''; + $htmlText .= ''; + + $htmlText .= '
    '; - $htmlText .= ''; - $htmlText .= ''; - $htmlText .= ''; - $htmlText .= ''; - $htmlText .= '
    '; + + $htmlText .= '
    '; $htmlText .= $myContentHtml; - $htmlText .= '
    '; - $htmlText .= '
    '; $htmlText .= ''; $htmlText .= '
    '. @@ -443,6 +450,7 @@ foreach ($userList as $userInfo) { $htmlText .= ''; } $htmlText .= ''; + $fileName = 'certificate_'.date("Ymd_His"); $params = [ 'filename' => $fileName,