// HR QUALIFICATION ADVISOR QUIZ - EMAIL HANDLER PHP CODE // Add this to Code Snippets in WordPress add_action('init', function() { if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action']) && $_POST['action'] === 'submit_hr_qualification') { handle_hr_qualification_submission(); } }); function handle_hr_qualification_submission() { // Get form data $name = sanitize_text_field($_POST['name'] ?? ''); $email = sanitize_email($_POST['email'] ?? ''); $phone = sanitize_text_field($_POST['phone'] ?? ''); $country = sanitize_text_field($_POST['country'] ?? ''); $profile = sanitize_text_field($_POST['profile'] ?? ''); $goal = sanitize_text_field($_POST['goal'] ?? ''); $study_mode = sanitize_text_field($_POST['study_mode'] ?? ''); $start_time = sanitize_text_field($_POST['start_time'] ?? ''); $topics = isset($_POST['topics']) ? array_map('sanitize_text_field', (array)$_POST['topics']) : array(); // Validate required fields if (empty($name) || empty($email) || empty($country)) { wp_die('Missing required fields'); } // Determine recommendation based on profile and goal $recommendation = get_hr_qualification_recommendation($profile, $goal); // Send user email send_qualification_user_email($name, $email, $recommendation, $profile, $goal, $study_mode, $start_time, $topics); // Send admin notification send_qualification_admin_notification($name, $email, $phone, $country, $profile, $goal, $study_mode, $start_time, $topics, $recommendation); // Store in database store_qualification_submission($name, $email, $phone, $country, $profile, $goal, $study_mode, $start_time, $topics, $recommendation['title']); // Return success wp_die('success', 200); } function get_hr_qualification_recommendation($profile, $goal) { if ($profile === 'new') { return array( 'title' => 'Certificate in HR Management', 'description' => 'Perfect for beginners entering the HR field.', 'reason' => 'You\'re new to HR and looking to build a strong foundation. Our Certificate programme provides practical, entry-level HR knowledge and skills that employers value.', 'color' => '#2ecc71', 'url' => 'https://www.dnbbusinessinstitute.com/certificate-hr-management', 'cta' => 'Explore Certificate Programme' ); } elseif ($profile === 'some_exp') { return array( 'title' => 'Diploma in HR Management', 'description' => 'Ideal for HR professionals with some experience.', 'reason' => 'With 1-3 years of HR experience, you\'re ready to deepen your expertise. Our Diploma programme develops advanced HR skills and prepares you for senior HR roles.', 'color' => '#3498db', 'url' => 'https://www.dnbbusinessinstitute.com/diploma-hr-management', 'cta' => 'Explore Diploma Programme' ); } elseif ($profile === 'experienced') { return array( 'title' => 'Advanced Diploma in HR Management', 'description' => 'For experienced HR professionals seeking senior-level qualifications.', 'reason' => 'Your extensive HR experience positions you perfectly for our Advanced Diploma. This programme develops strategic HR leadership and prepares you for director-level roles.', 'color' => '#9b59b6', 'url' => 'https://www.dnbbusinessinstitute.com/advanced-diploma-hr', 'cta' => 'Explore Advanced Diploma' ); } elseif ($profile === 'manager') { return array( 'title' => 'Leadership & Management Programmes', 'description' => 'Develop your people management and leadership skills.', 'reason' => 'You\'re focused on managing employees more effectively. Our Leadership & Management programmes build your people skills and prepare you for senior management roles.', 'color' => '#e67e22', 'url' => 'https://www.dnbbusinessinstitute.com/leadership-management', 'cta' => 'Explore Leadership Programmes' ); } elseif ($profile === 'employer') { return array( 'title' => 'Corporate HR Training Solutions', 'description' => 'Tailored training programmes for organizations.', 'reason' => 'As an employer, you need practical HR solutions for your team. Our Corporate Training programmes are customized to your organizational needs and delivered flexibly.', 'color' => '#e74c3c', 'url' => 'https://www.dnbbusinessinstitute.com/corporate-training', 'cta' => 'Request Corporate Training' ); } else { return array( 'title' => 'Professional HR Programmes', 'description' => 'Comprehensive HR qualifications for your career stage.', 'reason' => 'Based on your profile, our Professional HR Programmes offer the right blend of practical knowledge and recognized qualifications to advance your HR career.', 'color' => '#003366', 'url' => 'https://www.dnbbusinessinstitute.com/hr-programmes', 'cta' => 'Explore All Programmes' ); } } function send_qualification_user_email($name, $email, $recommendation, $profile, $goal, $study_mode, $start_time, $topics) { $subject = 'Your Ideal HR Qualification - ' . $recommendation['title']; $topics_list = !empty($topics) ? implode(', ', $topics) : 'Not specified'; $message = '

Your Ideal HR Qualification

Thank you for completing the assessment, ' . esc_html($name) . '!

' . esc_html($recommendation['title']) . '

' . esc_html($recommendation['description']) . '

Why This Fits You:
' . esc_html($recommendation['reason']) . '

Your Assessment Summary

Profile ' . esc_html(ucfirst(str_replace('_', ' ', $profile))) . '
Career Goal ' . esc_html(ucfirst(str_replace('_', ' ', $goal))) . '
Preferred Study Mode ' . esc_html(ucfirst(str_replace('_', ' ', $study_mode))) . '
Start Timeline ' . esc_html(ucfirst(str_replace('_', ' ', $start_time))) . '
HR Topics of Interest ' . esc_html($topics_list) . '

' . esc_html($recommendation['cta']) . '

Next Steps:
1. Review your recommended programme above
2. Explore the programme details and curriculum
3. Contact our team for a free consultation to discuss your eligibility and start date

📧 Email: contact.dnbhr@gmail.com
💬 WhatsApp: +230 5756 1873
🌐 Website: https://www.dnbbusinessinstitute.com/

'; $headers = array('Content-Type: text/html; charset=UTF-8'); wp_mail($email, $subject, $message, $headers); } function send_qualification_admin_notification($name, $email, $phone, $country, $profile, $goal, $study_mode, $start_time, $topics, $recommendation) { $admin_email = 'nina.bagha@yahoo.com'; $subject = 'New HR Qualification Assessment - ' . $name; $topics_list = !empty($topics) ? implode(', ', $topics) : 'Not specified'; $message = '

New HR Qualification Assessment Submission

Field Value
Name ' . esc_html($name) . '
Email ' . esc_html($email) . '
Phone ' . esc_html($phone) . '
Country ' . esc_html($country) . '
Current Situation ' . esc_html(ucfirst(str_replace('_', ' ', $profile))) . '
Career Goal ' . esc_html(ucfirst(str_replace('_', ' ', $goal))) . '
Preferred Study Mode ' . esc_html(ucfirst(str_replace('_', ' ', $study_mode))) . '
Start Timeline ' . esc_html(ucfirst(str_replace('_', ' ', $start_time))) . '
HR Topics of Interest ' . esc_html($topics_list) . '
Recommended Programme ' . esc_html($recommendation['title']) . '
Submission Date ' . current_time('Y-m-d H:i:s') . '

Recommendation Reason:
' . esc_html($recommendation['reason']) . '

This is an automated notification. Log in to your WordPress dashboard to view all submissions.

'; $headers = array('Content-Type: text/html; charset=UTF-8'); wp_mail($admin_email, $subject, $message, $headers); } function store_qualification_submission($name, $email, $phone, $country, $profile, $goal, $study_mode, $start_time, $topics, $recommendation) { global $wpdb; $table_name = $wpdb->prefix . 'hr_qualification_submissions'; // Create table if it doesn't exist $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE IF NOT EXISTS $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, email varchar(255) NOT NULL, phone varchar(20), country varchar(255) NOT NULL, profile varchar(100) NOT NULL, goal varchar(100) NOT NULL, study_mode varchar(100), start_time varchar(100), topics longtext, recommendation varchar(255), submission_date datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) ) $charset_collate;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($sql); // Insert submission $wpdb->insert( $table_name, array( 'name' => $name, 'email' => $email, 'phone' => $phone, 'country' => $country, 'profile' => $profile, 'goal' => $goal, 'study_mode' => $study_mode, 'start_time' => $start_time, 'topics' => implode(', ', $topics), 'recommendation' => $recommendation, 'submission_date' => current_time('mysql') ), array('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s') ); } // Add admin menu to view submissions add_action('admin_menu', function() { add_menu_page( 'HR Qualification Results', 'HR Qualification Results', 'manage_options', 'hr-qualification-results', 'display_hr_qualification_results', 'dashicons-chart-bar', 26 ); }); function display_hr_qualification_results() { global $wpdb; $table_name = $wpdb->prefix . 'hr_qualification_submissions'; $results = $wpdb->get_results("SELECT * FROM $table_name ORDER BY submission_date DESC"); echo '
'; echo '

HR Qualification Assessment Results

'; echo ''; echo ''; echo ''; foreach ($results as $row) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } echo ''; echo '
NameEmailCountryProfileRecommendationDate
' . esc_html($row->name) . '' . esc_html($row->email) . '' . esc_html($row->country) . '' . esc_html(ucfirst(str_replace('_', ' ', $row->profile))) . '' . esc_html($row->recommendation) . '' . esc_html($row->submission_date) . '
'; echo '
'; }

HUMAN RESOURCE management courseS

course details

Want to Become A Human Resource Manager?

Gain Internationally Recognized Qualifications and Boost Your Career in HRM!

Human Resource Management Diploma

ABMA Level 6 Diploma in Human Resource Management

Overview

The ABMA Level 6 Diploma in Human Resource Management is an advanced qualification designed for professionals seeking expertise in strategic HR leadership and organizational development. This diploma focuses on high-level HR management, equipping learners with the skills to drive workforce performance, implement HR policies, and align human capital strategies with business objectives.

Certification

Upon successful completion, students will receive the ABMA Level 6 Diploma in Human Resource Management, a globally recognized qualification that enhances career opportunities and serves as a stepping stone to senior HR roles or postgraduate studies.level HR management, equipping learners with the skills to drive workforce performance, implement HR policies, and align human capital strategies with business objectives.

Who Will Benefit From This Course

This diploma is ideal for:

Course Content

The ABMA Level 6 Diploma in HR Management covers advanced HR topics, including:

📌 Strategic Human Resource Management & Leadership – Developing HR policies that align with business objectives and drive success.

📌 Workforce Planning & Organizational Development – Forecasting talent needs, implementing succession planning, and managing workforce change.

📌 Employment Law, Compliance & Ethics – Navigating complex labor laws, HR compliance, and ethical decision-making in HR.

📌 Advanced Employee Relations & Conflict Resolution – Handling workplace disputes, mediation, and negotiation techniques.

📌 Compensation, Benefits & Total Rewards – Designing competitive salary structures, incentive programs, and performance-linked pay.

📌 HR Analytics & Data-Driven Decision Making – Using HR data to optimize workforce planning, productivity, and employee engagement.

📌 Change Management & Organizational Transformation – Managing change effectively while maintaining productivity and morale.

📌 Executive Learning & Development Strategies – Implementing leadership development and continuous learning programs for high-performing teams.

Course Features

Course Price:

Available on request

Duration

Approximately 9–12 months

Entry Requirements

HSC, SC or equivalent)

Learning Mode

Classroom Virtual interactive

Language:

English, French

Course Features

✅ Internationally Recognized Qualification

Opens doors to HR opportunities globally

✅Strategic Learning Approach

Focuses on HR leadership, business alignment, and decision-making.

✅ Career Progression

Prepares learners for top HR management positions.

✅ Flexible Study Options

Available for both full-time and part-time learners

✅ Practical Case Studies & Real-World Application

Learn from industry examples and HR challenges.

Internationally Recognised Qualifications

Affordable Price & Payment Plans / Refund by HRDC

VISA & Career Support/Job Search

Industry Relevant Curriculum

Flexible Mode of Study

e

Clear Progression Pathway Opportunities for Exemption

Expert Tutors

Interactive Learning Tools

Multi Lingual Courses

We offer courses in English and French Languages

open admiSsions

want to shape the future ?

Contact Us

Get In Touch with Us!

Email

contact.dnbhr@mail.com

Phone

+1 (230) 57561873

Address

4th Floor, Jade Court, Jummah Mosque Street,
Port Louis, Mauritius