Error page is required whenever a user who has not logged in wants to view the services.
There are two users : Job Seeker and Employer. So if a recruiter tries to use the services provided to job seekers, then also error page should open up.
Same is the case for Job seekers.
Some more validations were added on the registration page. The Mobile number cannot contain alphabets. Also, profile picture can only be of jpeg or jpg or png format. The user cannot select any other format.
Alerts were added at the time of registration, login, resume generation, certificate generation. For this, sweet alerts have been used.
SweetAlert was created by Tristan Edwards. These alerts are very easy to use.
SweetAlert also comes with some simple methods that you can call: setdefault, close, showinput error, enable and disable buttons.
Initialize the plugin by referencing the necessary files:
Call the sweetAlert-function after the page has loaded
text: “Here’s my error message!”,
Added more functionalities to the Admin table. The admin can create new admin. Also,it is the responsibility of the Admin to send newsletter to all the subscribed candidates.
The format of the certificate was not according to the requirements. The certificate was a simple HTML form with only two colors used. So it was decided to generate a colored certificate in pdf format.
But got another problem. First the pdf is to be loaded as a simple template and then candidate’s name is to be written over it.
After searching, it was found that fpdf and fpdi can be used for it.
FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
FPDI is a tool that lets you import an existing PDF document as a template for generating another PDF document with FPDF. Put simply: it generates PDF files based on an existing PDF template.