- Kiến thức cơ bản
- Tùy chỉnh
- Giấy chứng nhận
- Mẫu chứng chỉ tùy chỉnh bằng cách sử dụng HTML
Chúng tôi có một vài cách khác để tùy chỉnh mẫu chứng chỉ, ví dụ
- Pdf & nbsp; được thiết kế trong Adobe Professional với các trường có thể lấp đầy
- PDF & NBSP; đầu ra với hình nền tùy chỉnh và mã HTML/Velocity
Bài viết này mô tả cách tạo mẫu chứng chỉ mà không yêu cầu bất kỳ tài nguyên bên ngoài nào [PDF hoặc hình ảnh], đây là các bước
Bước 1: & nbsp; Chuyển đến Quản trị Trang web-> CMS & NBSP; và nhấp vào Tạo Chứng chỉ mới, gán nó một kết thúc tên với .html. Ví dụ: nó có thể được đặt tên chứng chỉ.html: Go to Site Admin->CMS and click on create new certificate, assign it a name ending with .html. For example it could be named certificate.html
Bước 2: & nbsp; thêm mã HTML & NBSP; với thiết kế và biến cụ thể của bạn bạn muốn in [xem danh sách các biến ở đây]. Xem mã ví dụ dưới đây. Các biến và mã tập lệnh vận tốc được tô sáng: Add a HTML code with your specific design and variables you want to print [see the list of variables here]. See the below example code. The variables and velocity script code are highlighted
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Giấy chứng nhận hoàn thành & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Điều này là để chứng nhận rằng & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; $ student.getfullname [] & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; đã hoàn thành khóa học & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; $ khóa học.getName [] & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; với điểm số $ grad.getPoints []% & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; ngày & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; #set [$ dt = $ dateFormatter.getFormAtedDate [$ grad.getAwardDate [], "mmmm dd, yyyy"]] $ dt
Certificate of Completion
This is to certify that
$student.getFullName[]
has completed the course
$course.getName[]
with score of $grade.getPoints[]%
dated
#set [$dt = $DateFormatter.getFormattedDate[$grade.getAwardDate[], "MMMM dd, yyyy"]]
$dt