// 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 '
'; }

Course
Details

Home – Course Details

How To Motivate Your Team To Drive Productivity

Turn Team Effort into Team Excellence – Teach Your Managers How to Motivate, Inspire, and Get Results.












Course Overview

This practical course helps managers and supervisors learn simple, everyday ways to keep their team motivated and engaged. Participants will explore what really drives people at work, how to recognize and respond to different motivation styles, and how to create a positive team atmosphere that leads to better results.

Whether it’s through better communication, small rewards, or just showing appreciation, participants will leave with tools they can use immediately to bring out the best in their teams.

Target Audience

This course is ideal for:


✅ Managers

✅ Aspiring Managers

✅ Supervisors

✅Team Leaders

Benefits For Employers

This course is ideal for:

MQA Approved, HRDC Refundable

✅ Increased productivity and performance through targeted motivation strategies

✅ Reduced turnover and recruitment costs through improved employee satisfaction

✅ Enhanced innovation and creativity from intrinsically motivated teams

✅ Lower absenteeism and higher engagement scores across all departments

✅ Improved customer service quality through motivated and enthusiastic staff

✅ Reduced management overhead through self-motivated, autonomous teams

✅ Better project completion rates and quality outcomes

✅ Enhanced company reputation as an employer of choice

✅ Stronger competitive advantage through highly engaged workforce

✅ Improved profitability through cost-effective motivation techniques

✅ Better crisis resilience through teams that maintain motivation during tough times

Course Benefits

By the end of this course, participants will be able to:

✅ Comprehensive motivation framework combining intrinsic and extrinsic motivational strategies

✅ Evidence-based techniques for sustainable team engagement and productivity enhancement

✅ Practical tools for identifying and addressing individual motivational drivers

✅ Budget-conscious motivation strategies that deliver maximum impact

✅ Preventive approach to motivation management before performance issues arise

✅ Cultural transformation techniques for building lasting appreciation and recognition systems

✅ Crisis motivation management for maintaining team performance during challenging periods

Course Details:

Course Price:

Available upon Request


Request For Course Fee Here

Duration

60 Hrs

Certifications

Certificate of Completion

Delivery

Classroom
Online
Blended

MQA approved

HRDC Refundable

Language:

English, French

Entry Requirement

Any

Flexibility

Available


Join The Course


Facebook-f


Envelope

Benefits To The Learner

✅ Certificate of Completion

Enhanced Self-Awareness – Understanding personal motivation drivers leads to better career alignment and job satisfaction

Improved Leadership Skills – Advanced motivation techniques increase effectiveness in managing others and influence without authority

Better Team Relationships – Recognition and appreciation skills strengthen professional bonds and workplace harmony

Increased Emotional Intelligence – Understanding diverse personality motivations enhances interpersonal effectiveness

Career Advancement Potential – Motivation expertise is highly valued for management and leadership positions

Stress Reduction – Creating psychologically safe environments reduces workplace anxiety and pressure

Enhanced Communication Abilities – Effective praise and feedback techniques improve all professional interactions

Problem-Solving Skills – Early identification of motivation issues prevents larger performance problems

Personal Confidence – Successfully motivating others builds leadership credibility and self-assurance

Work-Life Balance – Understanding motivation helps create more fulfilling and sustainable work experiences


Facebook-f


Youtube


Twitter


Instagram


Tumblr

Talk to Us!


Join The Course

Register For this Course

Office Location

St George Street, Port Louis, Mauritius

Mail Address

info@dnbbusinessinstitute.com



Call Center

+230 57561873