Add candidate and employer templates, application form, and new password functionality

- Created 'dla-kandydata.php' template for candidates with job offers and registration options.
- Developed 'dla-pracodawcy.php' template for employers detailing how Globelus works and registration for new employers.
- Implemented 'advert-apply.php' for job applications, including form validation and file upload for CVs.
- Added 'new-password.php' for users to set a new password with validation for password strength and matching.
This commit is contained in:
2025-05-24 11:51:42 +02:00
parent 4fdd906b81
commit 905c0f0d89
59 changed files with 1987 additions and 791 deletions

View File

@@ -230,16 +230,16 @@ class GlobelusAdverts
}
$mdb -> insert( 'globelus_adverts_answers', [
'advert_id' => $advert_id,
'user_id' => $user_id ? $user_id : null,
'name' => $name,
'surname' => $surname,
'email' => $email,
'phone' => $phone,
'text' => $text,
'cv' => $cv,
'cv_extension' => $extension
] );
'advert_id' => $advert_id,
'user_id' => $user_id ? $user_id : null,
'name' => $name,
'surname' => $surname,
'email' => $email,
'phone' => $phone,
'text' => $text,
'cv' => $cv,
'cv_extension' => $extension
] );
if ( $answer_id = $mdb -> id() )
{
@@ -265,8 +265,6 @@ class GlobelusAdverts
if ( $globelus_settings['maile-wysylanie'] )
\S::send_email( self::advert_email( $advert_id ), $lang['aplikacja-na-stanowisko'] . ' ' . $advert_title, $text );
\S::set_alert_prompt( 'Informacja', $lang['aplikacja-na-ogloszenie-zostala-wyslana'] );
if ( !$user_id )
{
\S::set_session( 'advert_answer_name', $name );
@@ -600,7 +598,7 @@ class GlobelusAdverts
{
global $mdb;
return $mdb -> query( 'SELECT '
. 'ga.id, title, ga.user_id, category_id, ga.country_id, ga.city, ga.region, text, contact_person, email, ga.phone, contact_person2, email2, ga.phone2, gfd.clauses, '
. 'ga.id, title, ga.user_id, category_id, ga.country_id, ga.city, ga.region, text, contact_person, email, ga.phone, gfd.clauses, '
. 'gac.name AS category_name, gc.name AS country_name, gfd.firm_name_profile, date_add, salary, work_type, without_language, '
. 'without_experience, for_couples, from_now, accommodation, accommodation_cost, overtime, overtime_quantity, travel_refund, outside_ue, without_driving_license, ga.old, ga.visible, id_voivodeship, aplication_link, id_position '
. 'FROM '