From e6506cc9119df2518dbafc022c48fed84ef8f169 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 27 Nov 2015 11:36:43 -0500 Subject: [PATCH] Setting up the first form and started on second. --- config/settings1.php | 279 +++++++++++++------- config/settings2.php | 486 +++++++++++++++-------------------- config/settings2_old.php | 359 ++++++++++++++++++++++++++ config/settings3.php | 289 --------------------- config/settings4.php | 78 +----- views/front/formTemplate.php | 12 +- 6 files changed, 755 insertions(+), 748 deletions(-) create mode 100644 config/settings2_old.php delete mode 100644 config/settings3.php diff --git a/config/settings1.php b/config/settings1.php index f2afda6..33f1116 100644 --- a/config/settings1.php +++ b/config/settings1.php @@ -16,7 +16,7 @@ $lname = [ $mname = [ 'type' => 'text', 'name' => 'mname', - 'label' => 'Middle Name', + 'label' => 'Middle Name', 'grid' => 2, 'req' => true ]; @@ -44,7 +44,35 @@ $state = [ $zip = [ 'type' => 'text', 'name' => 'zip', - 'label' => 'ZIP', + 'label' => 'ZIP code', + 'grid' => 3, + 'req' => true +]; +$street2 = [ + 'type' => 'text', + 'name' => 'street2', + 'label' => 'Street', + 'grid' => 3, + 'req' => true +]; +$city2 = [ + 'type' => 'text', + 'name' => 'city2', + 'label' => 'City', + 'grid' => 3, + 'req' => true +]; +$state2 = [ + 'type' => 'text', + 'name' => 'state2', + 'label' => 'State', + 'grid' => 3, + 'req' => true +]; +$zip2 = [ + 'type' => 'text', + 'name' => 'zip2', + 'label' => 'ZIP code', 'grid' => 3, 'req' => true ]; @@ -52,13 +80,13 @@ $zip = [ $phone = [ 'type' => 'tel', 'name' => 'phone', - 'label' => 'Phone', + 'label' => 'Telephone', 'grid' => 4 ]; -$altPhone = [ +$social = [ 'type' => 'tel', - 'name' => 'alt_phone', - 'label' => 'Alternate Phone', + 'name' => 'social', + 'label' => 'Social Security #', 'grid' => 4 ]; $email = [ @@ -84,40 +112,40 @@ $over_18 = [ 'label' => 'No', 'value' => 0]] ]; -$us_citizen = [ +$us_auth = [ 'type' => 'radio', - 'name' => 'us_citizen', - 'label' => 'Are you an U.S. citizen?', - 'grid' => 4, - 'req' => true, + 'name' => 'us_auth', + 'label' => 'If you are not a U.S. Citizen, do you have a legal right to remain in the United States?', + 'grid' => 12, + 'req' => false, 'opts' => [[ - 'name' => 'us_citizen_yes', + 'name' => 'us_auth_yes', 'label' => 'Yes', 'value' => 1 ],[ - 'name' => 'us_citizen_no', + 'name' => 'us_auth_no', 'label' => 'No', 'value' => 0]] ]; -$us_auth = [ +$us_auth_verify = [ 'type' => 'radio', - 'name' => 'us_auth', - 'label' => 'Are you authorized to work in the United States?', - 'grid' => 4, - 'req' => true, + 'name' => 'us_auth_verify', + 'label' => 'If employed, can you submit verification of your legal right to remain in the United States?', + 'grid' => 12, + 'req' => false, 'opts' => [[ - 'name' => 'us_auth_yes', + 'name' => 'us_auth_verify_yes', 'label' => 'Yes', 'value' => 1 ],[ - 'name' => 'us_auth_no', + 'name' => 'us_auth_verify_no', 'label' => 'No', 'value' => 0]] ]; $employed_before = [ 'type' => 'radio', 'name' => 'employed_before', - 'label' => 'Have you been previously employed here?', + 'label' => 'Have you ever been employed by Emmet County?', 'grid' => 6, 'req' => true, 'opts' => [[ @@ -141,38 +169,23 @@ $supervisor = [ 'label' => 'Supervisor Name(s)', 'grid' => 12 ]; -$applied_before = [ - 'type' => 'radio', - 'name' => 'applied_before', - 'label' => 'Have you ever applied to this Company before?', - 'grid' => 6, - 'req' => true, - 'opts' => [[ - 'name' => 'applied_before_yes', - 'label' => 'Yes', - 'value' => 1 - ],[ - 'name' => 'applied_before_no', - 'label' => 'No', - 'value' => 0]] -]; -$applied_before_dates = [ +$applied_before_department = [ 'type' => 'text', - 'name' => 'applied_before_dates', - 'label' => 'Where?', - 'grid' => 6 + 'name' => 'applied_before_department', + 'label' => 'In what Department?', + 'grid' => 4 ]; -$applied_before_under_what_name = [ +$applied_before_job = [ 'type' => 'text', - 'name' => 'applied_before_under_what_name', - 'label' => 'Under what name?', - 'grid' => 6 + 'name' => 'applied_before_job', + 'label' => 'In what job position?', + 'grid' => 4 ]; -$applied_before_when = [ +$applied_before_reason = [ 'type' => 'text', - 'name' => 'applied_before_when', - 'label' => 'When?', - 'grid' => 6 + 'name' => 'applied_before_reason', + 'label' => 'Reason for leaving?', + 'grid' => 4 ]; $list_any_friends = [ 'type' => 'text', @@ -284,20 +297,20 @@ $position_applied_for = [ 'type' => 'text', 'name' => 'position_applied_for', 'label' => 'Position Applied For', - 'grid' => 6, + 'grid' => 3, 'value' => $this->jobTitle ]; $date_available_for_work = [ 'type' => 'text', 'name' => 'date_available_for_work', - 'label' => 'Date Available to Work', - 'grid' => 6 + 'label' => 'Date Available for Work', + 'grid' => 3 ]; $type_of_employment = [ 'type' => 'checkbox', 'name' => 'type_of_employment', 'label' => 'Type of Employment', - 'grid' => 6, + 'grid' => 3, 'req' => false, 'opts' => [[ 'name' => 'type_of_employment_fulltime', @@ -312,32 +325,8 @@ $type_of_employment = [ $salary_desired = [ 'type' => 'text', 'name' => 'salary_desired', - 'label' => 'Salary Desired', - 'grid' => 6 -]; -$location_preference = [ - 'type' => 'checkbox', - 'name' => 'location_preference', - 'label' => 'Location Preference', - 'grid' => 8, - 'req' => false, - 'opts' => [[ - 'name' => 'location_preference_petoskey', - 'label' => 'Petoskey', - 'value' => 'Petoskey' - ],[ - 'name' => 'location_preference_harborsprings', - 'label' => 'Harbor Springs', - 'value' => 'Harbor Springs' - ],[ - 'name' => 'location_preference_gaylord', - 'label' => 'Gaylord', - 'value' => 'Gaylord' - ],[ - 'name' => 'location_preference_traverse', - 'label' => 'Traverse City', - 'value' => 'Traverse City' - ]] + 'label' => 'Salary Expectation
', + 'grid' => 3 ]; $do_you_have_building_exp = [ 'type' => 'radio', @@ -354,32 +343,124 @@ $do_you_have_building_exp = [ 'label' => 'No', 'value' => 0]] ]; -$special_training = [ - 'type' => 'textarea', - 'name' => 'special_training', - 'label' => 'Do you have any special training, skills, certifications, qualifications,' - . ' or other experiences that relate to the position(s) applied for?', +$what_prompted_you = [ + 'type' => 'text', + 'name' => 'what_prompted_you', + 'label' => 'What prompted your application?', 'grid' => 12 ]; +$have_a_telephone = [ + 'type' => 'radio', + 'name' => 'have_a_telephone', + 'label' => 'Do you have a telephone at your place of residence?', + 'grid' => 12, + 'req' => false, + 'opts' => [[ + 'name' => 'have_a_telephone_yes', + 'label' => 'Yes', + 'value' => 1 + ],[ + 'name' => 'have_a_telephone_no', + 'label' => 'No', + 'value' => 0]] +]; +$have_transportation = [ + 'type' => 'radio', + 'name' => 'have_transportation', + 'label' => 'Do you have a reliable form of transportation available to you to go to and from work?', + 'grid' => 12, + 'req' => false, + 'opts' => [[ + 'name' => 'have_transportation_yes', + 'label' => 'Yes', + 'value' => 1 + ],[ + 'name' => 'have_transportation_no', + 'label' => 'No', + 'value' => 0]] +]; +$military_service = [ + 'type' => 'text', + 'name' => 'military_service', + 'label' => 'Service', + 'grid' => 3, + 'req' => false +]; +$military_branch = [ + 'type' => 'text', + 'name' => 'military_branch', + 'label' => 'Branch', + 'grid' => 3, + 'req' => false +]; +$military_date_from = [ + 'type' => 'text', + 'name' => 'military_date_from', + 'label' => 'Date From', + 'grid' => 3, + 'req' => false +]; +$military_date_to = [ + 'type' => 'text', + 'name' => 'military_date_to', + 'label' => 'Date To', + 'grid' => 3, + 'req' => false +]; +$military_rank = [ + 'type' => 'text', + 'name' => 'military_rank', + 'label' => 'Rank at Discharge', + 'grid' => 4, + 'req' => false +]; +$military_honorable_discharge = [ + 'type' => 'radio', + 'name' => 'military_honorable_discharge', + 'label' => 'Were you honorably discharged?', + 'grid' => 6, + 'req' => false, + 'opts' => [[ + 'name' => 'military_honorable_discharge_yes', + 'label' => 'Yes', + 'value' => 1 + ],[ + 'name' => 'military_honorable_discharge_no', + 'label' => 'No', + 'value' => 0]] +]; +$military_reserves_status = [ + 'type' => 'text', + 'name' => 'military_reserves_status', + 'label' => 'Reserve Status', + 'grid' => 6, + 'req' => false +]; +$military_training = [ + 'type' => 'textarea', + 'name' => 'military_training', + 'label' => 'Specialized training and duties:', + 'grid' => 12, + 'req' => false +]; $form = [ ['type' => 'header', 'label' => 'Personal Information'], [$fname, $lname, $mname], + ['type' => 'subheader', 'label' => 'Address'], [$street, $city, $state, $zip], - [$phone, $altPhone, $email], - [$over_18, $us_citizen, $us_auth], + ['type' => 'subheader', 'label' => 'Previous Address'], + [$street2, $city2, $state2, $zip2], + [$phone, $social, $email], + [$position_applied_for, $salary_desired, $date_available_for_work, $type_of_employment], [$employed_before, $employed_before_dates], - [$supervisor], - [$applied_before, $applied_before_dates], - [$applied_before_under_what_name, $applied_before_when], - [$list_any_friends], - [$have_drivers_license, $means_of_travel], - [$drivers_license, $license_state], - [$license_type, $license_exp_date], - [$had_accident_in_past_three_years, $had_accident_in_past_three_years_how_many], - [$had_violations_in_past_three_years, $had_violations_in_past_three_years_how_many], - ['type' => 'header', 'label' => 'Employment Desired'], - [$position_applied_for, $date_available_for_work], - [$type_of_employment, $salary_desired], - [$location_preference, $do_you_have_building_exp], - [$special_training] + [$applied_before_department, $applied_before_job, $applied_before_reason], + ['type' => 'header', 'label' => 'Are you a U.S. Citizen'], + [$us_auth, $us_auth_verify], + [$what_prompted_you], + [$have_a_telephone], + [$have_transportation], + ['type' => 'header', 'label' => 'Military Service'], + [$military_service, $military_branch, $military_date_from, $military_date_to], + [$military_honorable_discharge, $military_reserves_status], + [$military_training], ]; diff --git a/config/settings2.php b/config/settings2.php index f7c928e..aecb9d0 100644 --- a/config/settings2.php +++ b/config/settings2.php @@ -1,359 +1,285 @@ 'text', - 'name' => 'date_of_birth', - 'label' => 'Date of Birth', - 'grid' => 2, - 'req' => true +$topHeader = [ + 'type' => 'header', + 'label' => 'Employment History', + 'subheader' => '(List current or most current job first)', + 'notes' => 'List you last three employers for the last ten years, ' + . 'whichever is greater. Please answer all inquires. "See Resume" is not acceptable. ' ]; -$date_of_birth_explain = [ - 'type' => 'static', - 'value' => '
The U.S. Department of Transportation requires that driver ' - . 'applicants state their date of birth §391.21(b)(2).
', - 'grid' => 10 +$titles = [ + 1 => '', + 2 => '2', + 3 => '3', + 4 => '4' ]; -$stateHdr = [ +$employment_titleHdr = [ 'type' => 'static', - 'label' => 'State', - 'grid' => 1, - 'req' => true, + 'label' => ' ', + 'grid' => 1, + 'req' => false, 'rcoll' => true ]; -$licenseHdr = [ +$employment_datesHdr = [ + 'type' => 'static', + 'label' => 'Date Month/Year', + 'grid' => 2 +]; +$employment_infoHdr = [ + 'type' => 'static', + 'label' => 'Employer Name, Address, and Telephone', + 'grid' => 4 +]; +$employment_supervisorHdr = [ 'type' => 'static', - 'label' => 'License No.', - 'grid' => 4, - 'req' => true + 'label' => 'Supervisor', + 'grid' => 1 ]; -$classHdr = [ +$employment_salaryHdr = [ 'type' => 'static', - 'label' => 'Class', - 'grid' => 1, - 'req' => true + 'label' => 'Salary', + 'grid' => 1 ]; -$endorsementHdr = [ +$employment_positionHdr = [ 'type' => 'static', - 'label' => 'Endorsement(s)', - 'grid' => 4, - 'req' => true + 'label' => 'Last Position Held & Work Performed', + 'grid' => 2 ]; -$exp_dateHdr = [ +$employment_reasonHdr = [ 'type' => 'static', - 'label' => 'Expiration Date', - 'grid' => 2, - 'req' => true + 'label' => 'Reason for Leaving', + 'grid' => 2 ]; for ($i = 1; $i <= 4; ++$i) { - $licenseReq = ($i == 1) ? true: false; - ${'state'.$i} = [ - 'type' => 'text', - 'name' => 'state' . $i, - 'label' => '', + ${'employment_title'.$i} = [ + 'type' => 'static', + 'label' => ' ', + 'value' => '
'.$titles[$i].'
', + 'grid' => 1, + 'rcoll' => true + ]; + ${'employment_title_sub'.$i} = [ + 'type' => 'static', + 'label' => ' ', + 'value' => '', 'grid' => 1, - 'req' => $licenseReq, 'rcoll' => true ]; - ${'license'.$i} = [ + ${'employment_dates_from'.$i} = [ 'type' => 'text', - 'name' => 'license' . $i, - 'label' => '', - 'grid' => 4, - 'req' => $licenseReq + 'name' => 'employment_dates_from'.$i, + 'placeholder' => 'From:', + 'req' => ($i == 1) ? true: false, + 'grid' => 2 ]; - ${'class'.$i} = [ + ${'employment_dates_to'.$i} = [ 'type' => 'text', - 'name' => 'class' . $i, - 'label' => '', - 'grid' => 1, - 'req' => $licenseReq + 'name' => 'employment_dates_to'.$i, + 'placeholder' => 'To:', + 'req' => ($i == 1) ? true: false, + 'grid' => 2 ]; - ${'endorsement'.$i} = [ + ${'employment_info'.$i} = [ 'type' => 'text', - 'name' => 'endorsement' . $i, - 'label' => '', - 'grid' => 4, - 'req' => $licenseReq + 'name' => 'employment_info'.$i, + 'req' => ($i == 1) ? true: false, + 'grid' => 4 ]; - ${'exp_date'.$i} = [ + ${'employment_supervisor'.$i} = [ 'type' => 'text', - 'name' => 'exp_date' . $i, - 'label' => '', - 'grid' => 2, - 'req' => $licenseReq + 'name' => 'employment_supervisor'.$i, + 'placeholder' => 'Supervisor', + 'req' => ($i == 1) ? true: false, + 'grid' => 4 + ]; + ${'employment_salary_start'.$i} = [ + 'type' => 'text', + 'name' => 'employment_salary_start'.$i, + 'placeholder' => 'Starting', + 'req' => ($i == 1) ? true: false, + 'grid' => 1 + ]; + ${'employment_salary_end'.$i} = [ + 'type' => 'text', + 'name' => 'employment_salary_end'.$i, + 'placeholder' => 'Ending', + 'req' => ($i == 1) ? true: false, + 'grid' => 1 + ]; + ${'employment_position'.$i} = [ + 'type' => 'text', + 'name' => 'employment_position'.$i, + 'req' => ($i == 1) ? true: false, + 'grid' => 2 + ]; + ${'employment_position_sub'.$i} = [ + 'type' => 'static', + 'name' => 'employment_position_sub'.$i, + 'req' => false, + 'grid' => 2 + ]; + ${'employment_reason'.$i} = [ + 'type' => 'text', + 'name' => 'employment_reason'.$i, + 'req' => ($i == 1) ? true: false, + 'grid' => 2 + ]; + ${'employment_reason_sub'.$i} = [ + 'type' => 'static', + 'name' => 'employment_reason_sub'.$i, + 'req' => false, + 'grid' => 2 ]; } -$denied_license = [ - 'type' => 'radio', - 'name' => 'denied_license', - 'label' => 'A. Have you ever been denied a license, permit or privilege to' - . ' operate a motor vehicle?', - 'grid' => 4, - 'req' => true, - 'opts' => [[ - 'name' => 'denied_license_yes', - 'label' => 'Yes', - 'value' => 1 - ],[ - 'name' => 'denied_license_no', - 'label' => 'No', - 'value' => 0]] -]; -$suspended_license = [ +$may_we_contact = [ 'type' => 'radio', - 'name' => 'suspended_license', - 'label' => 'B. Has any license, permit or privilege ever been suspended or revoked?', - 'grid' => 4, + 'name' => 'may_we_contact', + 'label' => 'May we contact the employers listed?', + 'grid' => 6, 'req' => true, 'opts' => [[ - 'name' => 'suspended_license_yes', + 'name' => 'may_we_contact_yes', 'label' => 'Yes', 'value' => 1 ],[ - 'name' => 'suspended_license_no', + 'name' => 'may_we_contact_no', 'label' => 'No', 'value' => 0]] ]; -$disqualified_license = [ - 'type' => 'radio', - 'name' => 'disqualified_license', - 'label' => 'C. Have you ever been disqualified for violations of the Federal' - . ' Motor Carrier Safety Regulations?', - 'grid' => 4, - 'req' => true, - 'opts' => [[ - 'name' => 'disqualified_license_yes', - 'label' => 'Yes', - 'value' => 1 - ],[ - 'name' => 'disqualified_license_no', - 'label' => 'No', - 'value' => 0]] -]; -$details_of_license = [ +$who_to_not_contact = [ 'type' => 'textarea', - 'name' => 'details_of_license', - 'label' => 'If you answered "yes" to A, B, C, give details', - 'grid' => 12 + 'name' => 'who_to_not_contact', + 'label' => 'If no, which one(s) should we NOT contact?', + 'grid' => 6, + 'req' => false ]; -$titles = [ - 1 => 'Straight Truck', - 'Tractor and Semi Trailer', - 'Twin Trailers - LCV\'s', - 'Other' +// +$titles3 = [ + 1 => '', + 'College / University', + 'Specialized Training', + 'Business or trade school', + 'other', + '' ]; -$eq_classHdr = [ +$edu_titleHdr = [ 'type' => 'static', - 'label' => 'Class of Equipment', - 'grid' => 3, + 'label' => ' ', + 'grid' => 2, 'req' => false, 'rcoll' => true ]; -$eq_typeHdr = [ +$edu_title2Hdr = $edu_titleHdr; +$edu_title2Hdr['label'] = ' '; +$edu_schoolHdr = [ 'type' => 'static', - 'label' => 'Type of Equipment (Van, Tank, Flat, etc.)', - 'grid' => 4, + 'label' => 'Name and Location of School', + 'grid' => 4, 'req' => false ]; -$eq_dates_fromHdr = [ +$edu_school2Hdr = $edu_schoolHdr; +$edu_school2Hdr['label'] = ' '; +$edu_yearsHdr = [ 'type' => 'static', - 'label' => 'From', - 'grid' => 1, + 'label' => 'No. of Years Attended', + 'grid' => 2, 'req' => false ]; -$eq_dates_toHdr = [ +$edu_years2Hdr = $edu_yearsHdr; +$edu_years2Hdr['label'] = ' '; +$edu_gradHdr = [ 'type' => 'static', - 'label' => 'To', - 'grid' => 1, + 'label' => 'Did you Graduate', + 'grid' => 2, 'req' => false ]; -$eq_approx_milesHdr = [ +$edu_grad_degreeHdr = [ 'type' => 'static', - 'label' => 'Approximate total Miles', - 'grid' => 3, + 'label' => 'Degree', + 'grid' => 1, 'req' => false ]; -for ($i = 1; $i <= 4; ++$i) { - ${'eq_class'.$i} = [ - 'type' => 'static', - 'label' => '', - 'value' => '
'.$titles[$i].'
', - 'grid' => 3, - 'rcoll' => true - ]; - ${'eq_type'.$i} = [ - 'type' => 'text', - 'name' => 'eq_type' . $i, - 'label' => '', - 'grid' => 4, - 'req' => false - ]; - ${'eq_dates_from'.$i} = [ - 'type' => 'text', - 'name' => 'eq_dates_from' . $i, - 'label' => '', - 'grid' => 1, - 'req' => false - ]; - ${'eq_dates_to'.$i} = [ - 'type' => 'text', - 'name' => 'eq_dates_to' . $i, - 'label' => '', - 'grid' => 1, - 'req' => false - ]; - ${'eq_approx_miles'.$i} = [ - 'type' => 'text', - 'name' => 'eq_approx_miles' . $i, - 'label' => '', - 'grid' => 3, - 'req' => false - ]; -} -$last_5_years_states = [ - 'type' => 'textarea', - 'name' => 'last_5_years_states', - 'label' => 'List states operated in during last five years:', - 'grid' => 12 -]; -$special_drivers_training = [ - 'type' => 'textarea', - 'name' => 'special_drivers_training', - 'label' => 'List special courses or training that will help you as a driver:', - 'grid' => 12 -]; -$driving_awards = [ - 'type' => 'textarea', - 'name' => 'driving_awards', - 'label' => 'List driving awards held and who awards were presented by:', - 'grid' => 12 -]; - -$accident_review_dates = [ +$edu_grad_certificateHdr = [ 'type' => 'static', - 'label' => 'Dates

', - 'grid' => 3 -]; -$accident_review_nature = [ - 'type' => 'static', - 'label' => 'Nature of Accident (Head-on, Rear-End, Overturn, etc.)', - 'grid' => 3 -]; -$accident_review_fatalities = [ - 'type' => 'static', - 'label' => 'Fatalities

', - 'grid' => 3 + 'label' => 'Certificate', + 'grid' => 1, + 'req' => false ]; -$accident_review_injuries = [ +$edu_subjectHdr = [ 'type' => 'static', - 'label' => 'Injuries

', - 'grid' => 3 + 'label' => 'Subject/Major', + 'grid' => 2, + 'req' => false ]; -for ($i = 1; $i <= 3; ++$i) { - ${'accident_review_dates'.$i} = [ - 'type' => 'text', - 'name' => 'accident_review_dates'.$i, +$edu_subject2Hdr = $edu_subjectHdr; +$edu_subject2Hdr['label'] = ' '; +for ($i = 1; $i <= 6; ++$i) { + ${'edu_title'.$i} = [ + 'type' => 'static', 'label' => '', - 'grid' => 3 + 'value' => '
'.$titles3[$i].'
', + 'grid' => 2, + 'rcoll' => true ]; - ${'accident_review_nature'.$i} = [ + ${'edu_school'.$i} = [ 'type' => 'text', - 'name' => 'accident_review_nature'.$i, + 'name' => 'edu_school' . $i, 'label' => '', - 'grid' => 3 + 'grid' => 4, + 'req' => ($i == 1) ? true: false ]; - ${'accident_review_fatalities'.$i} = [ + ${'edu_years'.$i} = [ 'type' => 'text', - 'name' => 'accident_review_fatalities'.$i, + 'name' => 'edu_years' . $i, 'label' => '', - 'grid' => 3 + 'grid' => 2, + 'req' => ($i == 1) ? true: false ]; - ${'accident_review_injuries'.$i} = [ + ${'edu_grad_degree'.$i} = [ 'type' => 'text', - 'name' => 'accident_review_injuries'.$i, + 'name' => 'edu_grad_degree' . $i, 'label' => '', - 'grid' => 3 + 'grid' => 1, + 'req' => ($i == 1) ? true: false ]; -} -$traffic_convictions_locations = [ - 'type' => 'static', - 'label' => 'Location', - 'grid' => 3 -]; -$traffic_convictions_date = [ - 'type' => 'static', - 'label' => 'Date', - 'grid' => 3 -]; -$traffic_convictions_charge = [ - 'type' => 'static', - 'label' => 'Charge', - 'grid' => 3 -]; -$traffic_convictions_penalty = [ - 'type' => 'static', - 'label' => 'Penalty', - 'grid' => 3 -]; -for ($i = 1; $i <= 3; ++$i) { - ${'traffic_convictions_locations'.$i} = [ - 'type' => 'text', - 'name' => 'traffic_convictions_locations'.$i, - 'label' => '', - 'grid' => 3 - ]; - ${'traffic_convictions_date'.$i} = [ - 'type' => 'text', - 'name' => 'traffic_convictions_date'.$i, - 'label' => '', - 'grid' => 3 - ]; - ${'traffic_convictions_charge'.$i} = [ + ${'edu_grad_certificate'.$i} = [ 'type' => 'text', - 'name' => 'traffic_convictions_charge'.$i, + 'name' => 'edu_grad_certificate' . $i, 'label' => '', - 'grid' => 3 + 'grid' => 1, + 'req' => ($i == 1) ? true: false ]; - ${'traffic_convictions_penalty'.$i} = [ + ${'edu_subject'.$i} = [ 'type' => 'text', - 'name' => 'traffic_convictions_penalty'.$i, + 'name' => 'edu_subject' . $i, 'label' => '', - 'grid' => 3 + 'grid' => 2, + 'req' => ($i == 1) ? true: false ]; } -$resume_file = [ - 'type' => 'file', - 'label' => 'Upload your resume and/or cover letter', - 'grid' => 12 -]; $form = [ - ['type' => 'header', 'label' => 'Driver Experience and Qualification'], - [$date_of_birth, $date_of_birth_explain], - ['type' => 'header', 'label' => 'Drivers Licenses held in past 3 years must be shown'], - [$stateHdr, $licenseHdr, $classHdr, $endorsementHdr, $exp_dateHdr], - [$state1, $license1, $class1, $endorsement1, $exp_date1], - [$state2, $license2, $class2, $endorsement2, $exp_date2], - [$state3, $license3, $class3, $endorsement3, $exp_date3], - [$state4, $license4, $class4, $endorsement4, $exp_date4], - [$denied_license, $suspended_license, $disqualified_license], - [$details_of_license], - ['type' => 'header', 'label' => 'Driving Experience'], - [$eq_classHdr, $eq_typeHdr, $eq_dates_fromHdr, $eq_dates_toHdr, $eq_approx_milesHdr], - [$eq_class1, $eq_type1, $eq_dates_from1, $eq_dates_to1, $eq_approx_miles1], - [$eq_class2, $eq_type2, $eq_dates_from2, $eq_dates_to2, $eq_approx_miles2], - [$eq_class3, $eq_type3, $eq_dates_from3, $eq_dates_to3, $eq_approx_miles3], - [$eq_class4, $eq_type4, $eq_dates_from4, $eq_dates_to4, $eq_approx_miles4], - [$last_5_years_states], - [$special_drivers_training], - [$driving_awards], - ['type' => 'header', 'label' => 'Accident Review for past 3 years'], - [$accident_review_dates,$accident_review_nature, $accident_review_fatalities, $accident_review_injuries], - [$accident_review_dates1,$accident_review_nature1, $accident_review_fatalities1, $accident_review_injuries1], - [$accident_review_dates2,$accident_review_nature2, $accident_review_fatalities2, $accident_review_injuries2], - [$accident_review_dates3,$accident_review_nature3, $accident_review_fatalities3, $accident_review_injuries3], - ['type' => 'header', 'label' => 'Traffic Convictions and Forfeitures', 'subheader' => 'for the past 3 years other than parking violations'], - [$traffic_convictions_locations, $traffic_convictions_date, $traffic_convictions_charge, $traffic_convictions_penalty], - [$traffic_convictions_locations1, $traffic_convictions_date1, $traffic_convictions_charge1, $traffic_convictions_penalty1], - [$traffic_convictions_locations2, $traffic_convictions_date2, $traffic_convictions_charge2, $traffic_convictions_penalty2], - [$traffic_convictions_locations3, $traffic_convictions_date3, $traffic_convictions_charge3, $traffic_convictions_penalty3], - [$resume_file] + $topHeader, + [$employment_titleHdr, $employment_datesHdr, $employment_infoHdr, $employment_salaryHdr, $employment_positionHdr, $employment_reasonHdr], + + [$employment_title1, $employment_dates_from1, $employment_info1, $employment_salary_start1, $employment_position1, $employment_reason1], + [$employment_title_sub1, $employment_dates_to1, $employment_supervisor1, $employment_salary_end1,$employment_position_sub1, $employment_reason_sub1], + + [$employment_title2, $employment_dates_from2, $employment_info2, $employment_salary_start2, $employment_position2, $employment_reason2], + [$employment_title_sub2, $employment_dates_to2, $employment_supervisor2, $employment_salary_end2,$employment_position_sub2, $employment_reason_sub2], + + [$employment_title3, $employment_dates_from3, $employment_info3, $employment_salary_start3, $employment_position3, $employment_reason3], + [$employment_title_sub3, $employment_dates_to3, $employment_supervisor3, $employment_salary_end3,$employment_position_sub3, $employment_reason_sub3], + + [$employment_title4, $employment_dates_from4, $employment_info4, $employment_salary_start4, $employment_position4, $employment_reason4], + [$employment_title_sub4, $employment_dates_to4, $employment_supervisor4, $employment_salary_end4,$employment_position_sub4, $employment_reason_sub4], + + [$may_we_contact, $who_to_not_contact], + ['type' => 'header', 'label' => 'Education & Training'], + [$edu_titleHdr, $edu_schoolHdr, $edu_yearsHdr, $edu_gradHdr, $edu_subjectHdr], + [$edu_title2Hdr, $edu_school2Hdr, $edu_years2Hdr, $edu_grad_degreeHdr, $edu_grad_certificateHdr, $edu_subject2Hdr], + [$edu_title1, $edu_school1, $edu_years1, $edu_grad_degree1, $edu_grad_certificate1, $edu_subject1], + [$edu_title2, $edu_school2, $edu_years2, $edu_grad_degree2, $edu_grad_certificate2, $edu_subject2], + [$edu_title3, $edu_school3, $edu_years3, $edu_grad_degree3, $edu_grad_certificate3, $edu_subject3], + [$edu_title4, $edu_school4, $edu_years4, $edu_grad_degree4, $edu_grad_certificate4, $edu_subject4], + [$edu_title5, $edu_school5, $edu_years5, $edu_grad_degree5, $edu_grad_certificate5, $edu_subject5], + [$edu_title6, $edu_school6, $edu_years6, $edu_grad_degree6, $edu_grad_certificate6, $edu_subject6], ]; diff --git a/config/settings2_old.php b/config/settings2_old.php new file mode 100644 index 0000000..f7c928e --- /dev/null +++ b/config/settings2_old.php @@ -0,0 +1,359 @@ + 'text', + 'name' => 'date_of_birth', + 'label' => 'Date of Birth', + 'grid' => 2, + 'req' => true +]; +$date_of_birth_explain = [ + 'type' => 'static', + 'value' => '
The U.S. Department of Transportation requires that driver ' + . 'applicants state their date of birth §391.21(b)(2).
', + 'grid' => 10 +]; +$stateHdr = [ + 'type' => 'static', + 'label' => 'State', + 'grid' => 1, + 'req' => true, + 'rcoll' => true +]; +$licenseHdr = [ + 'type' => 'static', + 'label' => 'License No.', + 'grid' => 4, + 'req' => true +]; +$classHdr = [ + 'type' => 'static', + 'label' => 'Class', + 'grid' => 1, + 'req' => true +]; +$endorsementHdr = [ + 'type' => 'static', + 'label' => 'Endorsement(s)', + 'grid' => 4, + 'req' => true +]; +$exp_dateHdr = [ + 'type' => 'static', + 'label' => 'Expiration Date', + 'grid' => 2, + 'req' => true +]; +for ($i = 1; $i <= 4; ++$i) { + $licenseReq = ($i == 1) ? true: false; + ${'state'.$i} = [ + 'type' => 'text', + 'name' => 'state' . $i, + 'label' => '', + 'grid' => 1, + 'req' => $licenseReq, + 'rcoll' => true + ]; + ${'license'.$i} = [ + 'type' => 'text', + 'name' => 'license' . $i, + 'label' => '', + 'grid' => 4, + 'req' => $licenseReq + ]; + ${'class'.$i} = [ + 'type' => 'text', + 'name' => 'class' . $i, + 'label' => '', + 'grid' => 1, + 'req' => $licenseReq + ]; + ${'endorsement'.$i} = [ + 'type' => 'text', + 'name' => 'endorsement' . $i, + 'label' => '', + 'grid' => 4, + 'req' => $licenseReq + ]; + ${'exp_date'.$i} = [ + 'type' => 'text', + 'name' => 'exp_date' . $i, + 'label' => '', + 'grid' => 2, + 'req' => $licenseReq + ]; +} +$denied_license = [ + 'type' => 'radio', + 'name' => 'denied_license', + 'label' => 'A. Have you ever been denied a license, permit or privilege to' + . ' operate a motor vehicle?', + 'grid' => 4, + 'req' => true, + 'opts' => [[ + 'name' => 'denied_license_yes', + 'label' => 'Yes', + 'value' => 1 + ],[ + 'name' => 'denied_license_no', + 'label' => 'No', + 'value' => 0]] +]; +$suspended_license = [ + 'type' => 'radio', + 'name' => 'suspended_license', + 'label' => 'B. Has any license, permit or privilege ever been suspended or revoked?', + 'grid' => 4, + 'req' => true, + 'opts' => [[ + 'name' => 'suspended_license_yes', + 'label' => 'Yes', + 'value' => 1 + ],[ + 'name' => 'suspended_license_no', + 'label' => 'No', + 'value' => 0]] +]; +$disqualified_license = [ + 'type' => 'radio', + 'name' => 'disqualified_license', + 'label' => 'C. Have you ever been disqualified for violations of the Federal' + . ' Motor Carrier Safety Regulations?', + 'grid' => 4, + 'req' => true, + 'opts' => [[ + 'name' => 'disqualified_license_yes', + 'label' => 'Yes', + 'value' => 1 + ],[ + 'name' => 'disqualified_license_no', + 'label' => 'No', + 'value' => 0]] +]; +$details_of_license = [ + 'type' => 'textarea', + 'name' => 'details_of_license', + 'label' => 'If you answered "yes" to A, B, C, give details', + 'grid' => 12 +]; +$titles = [ + 1 => 'Straight Truck', + 'Tractor and Semi Trailer', + 'Twin Trailers - LCV\'s', + 'Other' +]; +$eq_classHdr = [ + 'type' => 'static', + 'label' => 'Class of Equipment', + 'grid' => 3, + 'req' => false, + 'rcoll' => true +]; +$eq_typeHdr = [ + 'type' => 'static', + 'label' => 'Type of Equipment (Van, Tank, Flat, etc.)', + 'grid' => 4, + 'req' => false +]; +$eq_dates_fromHdr = [ + 'type' => 'static', + 'label' => 'From', + 'grid' => 1, + 'req' => false +]; +$eq_dates_toHdr = [ + 'type' => 'static', + 'label' => 'To', + 'grid' => 1, + 'req' => false +]; +$eq_approx_milesHdr = [ + 'type' => 'static', + 'label' => 'Approximate total Miles', + 'grid' => 3, + 'req' => false +]; +for ($i = 1; $i <= 4; ++$i) { + ${'eq_class'.$i} = [ + 'type' => 'static', + 'label' => '', + 'value' => '
'.$titles[$i].'
', + 'grid' => 3, + 'rcoll' => true + ]; + ${'eq_type'.$i} = [ + 'type' => 'text', + 'name' => 'eq_type' . $i, + 'label' => '', + 'grid' => 4, + 'req' => false + ]; + ${'eq_dates_from'.$i} = [ + 'type' => 'text', + 'name' => 'eq_dates_from' . $i, + 'label' => '', + 'grid' => 1, + 'req' => false + ]; + ${'eq_dates_to'.$i} = [ + 'type' => 'text', + 'name' => 'eq_dates_to' . $i, + 'label' => '', + 'grid' => 1, + 'req' => false + ]; + ${'eq_approx_miles'.$i} = [ + 'type' => 'text', + 'name' => 'eq_approx_miles' . $i, + 'label' => '', + 'grid' => 3, + 'req' => false + ]; +} +$last_5_years_states = [ + 'type' => 'textarea', + 'name' => 'last_5_years_states', + 'label' => 'List states operated in during last five years:', + 'grid' => 12 +]; +$special_drivers_training = [ + 'type' => 'textarea', + 'name' => 'special_drivers_training', + 'label' => 'List special courses or training that will help you as a driver:', + 'grid' => 12 +]; +$driving_awards = [ + 'type' => 'textarea', + 'name' => 'driving_awards', + 'label' => 'List driving awards held and who awards were presented by:', + 'grid' => 12 +]; + +$accident_review_dates = [ + 'type' => 'static', + 'label' => 'Dates

', + 'grid' => 3 +]; +$accident_review_nature = [ + 'type' => 'static', + 'label' => 'Nature of Accident (Head-on, Rear-End, Overturn, etc.)', + 'grid' => 3 +]; +$accident_review_fatalities = [ + 'type' => 'static', + 'label' => 'Fatalities

', + 'grid' => 3 +]; +$accident_review_injuries = [ + 'type' => 'static', + 'label' => 'Injuries

', + 'grid' => 3 +]; +for ($i = 1; $i <= 3; ++$i) { + ${'accident_review_dates'.$i} = [ + 'type' => 'text', + 'name' => 'accident_review_dates'.$i, + 'label' => '', + 'grid' => 3 + ]; + ${'accident_review_nature'.$i} = [ + 'type' => 'text', + 'name' => 'accident_review_nature'.$i, + 'label' => '', + 'grid' => 3 + ]; + ${'accident_review_fatalities'.$i} = [ + 'type' => 'text', + 'name' => 'accident_review_fatalities'.$i, + 'label' => '', + 'grid' => 3 + ]; + ${'accident_review_injuries'.$i} = [ + 'type' => 'text', + 'name' => 'accident_review_injuries'.$i, + 'label' => '', + 'grid' => 3 + ]; +} +$traffic_convictions_locations = [ + 'type' => 'static', + 'label' => 'Location', + 'grid' => 3 +]; +$traffic_convictions_date = [ + 'type' => 'static', + 'label' => 'Date', + 'grid' => 3 +]; +$traffic_convictions_charge = [ + 'type' => 'static', + 'label' => 'Charge', + 'grid' => 3 +]; +$traffic_convictions_penalty = [ + 'type' => 'static', + 'label' => 'Penalty', + 'grid' => 3 +]; +for ($i = 1; $i <= 3; ++$i) { + ${'traffic_convictions_locations'.$i} = [ + 'type' => 'text', + 'name' => 'traffic_convictions_locations'.$i, + 'label' => '', + 'grid' => 3 + ]; + ${'traffic_convictions_date'.$i} = [ + 'type' => 'text', + 'name' => 'traffic_convictions_date'.$i, + 'label' => '', + 'grid' => 3 + ]; + ${'traffic_convictions_charge'.$i} = [ + 'type' => 'text', + 'name' => 'traffic_convictions_charge'.$i, + 'label' => '', + 'grid' => 3 + ]; + ${'traffic_convictions_penalty'.$i} = [ + 'type' => 'text', + 'name' => 'traffic_convictions_penalty'.$i, + 'label' => '', + 'grid' => 3 + ]; +} +$resume_file = [ + 'type' => 'file', + 'label' => 'Upload your resume and/or cover letter', + 'grid' => 12 +]; +$form = [ + ['type' => 'header', 'label' => 'Driver Experience and Qualification'], + [$date_of_birth, $date_of_birth_explain], + ['type' => 'header', 'label' => 'Drivers Licenses held in past 3 years must be shown'], + [$stateHdr, $licenseHdr, $classHdr, $endorsementHdr, $exp_dateHdr], + [$state1, $license1, $class1, $endorsement1, $exp_date1], + [$state2, $license2, $class2, $endorsement2, $exp_date2], + [$state3, $license3, $class3, $endorsement3, $exp_date3], + [$state4, $license4, $class4, $endorsement4, $exp_date4], + [$denied_license, $suspended_license, $disqualified_license], + [$details_of_license], + ['type' => 'header', 'label' => 'Driving Experience'], + [$eq_classHdr, $eq_typeHdr, $eq_dates_fromHdr, $eq_dates_toHdr, $eq_approx_milesHdr], + [$eq_class1, $eq_type1, $eq_dates_from1, $eq_dates_to1, $eq_approx_miles1], + [$eq_class2, $eq_type2, $eq_dates_from2, $eq_dates_to2, $eq_approx_miles2], + [$eq_class3, $eq_type3, $eq_dates_from3, $eq_dates_to3, $eq_approx_miles3], + [$eq_class4, $eq_type4, $eq_dates_from4, $eq_dates_to4, $eq_approx_miles4], + [$last_5_years_states], + [$special_drivers_training], + [$driving_awards], + ['type' => 'header', 'label' => 'Accident Review for past 3 years'], + [$accident_review_dates,$accident_review_nature, $accident_review_fatalities, $accident_review_injuries], + [$accident_review_dates1,$accident_review_nature1, $accident_review_fatalities1, $accident_review_injuries1], + [$accident_review_dates2,$accident_review_nature2, $accident_review_fatalities2, $accident_review_injuries2], + [$accident_review_dates3,$accident_review_nature3, $accident_review_fatalities3, $accident_review_injuries3], + ['type' => 'header', 'label' => 'Traffic Convictions and Forfeitures', 'subheader' => 'for the past 3 years other than parking violations'], + [$traffic_convictions_locations, $traffic_convictions_date, $traffic_convictions_charge, $traffic_convictions_penalty], + [$traffic_convictions_locations1, $traffic_convictions_date1, $traffic_convictions_charge1, $traffic_convictions_penalty1], + [$traffic_convictions_locations2, $traffic_convictions_date2, $traffic_convictions_charge2, $traffic_convictions_penalty2], + [$traffic_convictions_locations3, $traffic_convictions_date3, $traffic_convictions_charge3, $traffic_convictions_penalty3], + [$resume_file] +]; diff --git a/config/settings3.php b/config/settings3.php deleted file mode 100644 index d516e8d..0000000 --- a/config/settings3.php +++ /dev/null @@ -1,289 +0,0 @@ - 'header', - 'label' => 'Current and Former Employers', - 'subheader' => '(List current or most current job first)', - 'notes' => 'Note to Driver Candidates: The U.S. Department of ' - . 'Transportation requires that driver applications show all employment for ' - . 'the past three years. They must also show commercial driver employment ' - . 'for the seven years immediately preceding this three year period. ' - . '§391.21(b)(10),(11). All Applicants: start with last, or current' - . ' position, and work back.' -]; -$titles = [ - 1 => '', - 2 => '2', - 3 => '3', - 4 => '4' -]; -$employment_titleHdr = [ - 'type' => 'static', - 'label' => ' ', - 'grid' => 1, - 'req' => false, - 'rcoll' => true -]; -$employment_datesHdr = [ - 'type' => 'static', - 'label' => 'Date Month/Year', - 'grid' => 2 -]; -$employment_infoHdr = [ - 'type' => 'static', - 'label' => 'Employer Name, Address, and Telephone', - 'grid' => 4 -]; -$employment_supervisorHdr = [ - 'type' => 'static', - 'label' => 'Supervisor', - 'grid' => 1 -]; -$employment_salaryHdr = [ - 'type' => 'static', - 'label' => 'Salary', - 'grid' => 1 -]; -$employment_positionHdr = [ - 'type' => 'static', - 'label' => 'Last Position Held & Work Performed', - 'grid' => 2 -]; -$employment_reasonHdr = [ - 'type' => 'static', - 'label' => 'Reason for Leaving', - 'grid' => 2 -]; -for ($i = 1; $i <= 4; ++$i) { - ${'employment_title'.$i} = [ - 'type' => 'static', - 'label' => ' ', - 'value' => '
'.$titles[$i].'
', - 'grid' => 1, - 'rcoll' => true - ]; - ${'employment_title_sub'.$i} = [ - 'type' => 'static', - 'label' => ' ', - 'value' => '', - 'grid' => 1, - 'rcoll' => true - ]; - ${'employment_dates_from'.$i} = [ - 'type' => 'text', - 'name' => 'employment_dates_from'.$i, - 'placeholder' => 'From:', - 'req' => ($i == 1) ? true: false, - 'grid' => 2 - ]; - ${'employment_dates_to'.$i} = [ - 'type' => 'text', - 'name' => 'employment_dates_to'.$i, - 'placeholder' => 'To:', - 'req' => ($i == 1) ? true: false, - 'grid' => 2 - ]; - ${'employment_info'.$i} = [ - 'type' => 'text', - 'name' => 'employment_info'.$i, - 'req' => ($i == 1) ? true: false, - 'grid' => 4 - ]; - ${'employment_supervisor'.$i} = [ - 'type' => 'text', - 'name' => 'employment_supervisor'.$i, - 'placeholder' => 'Supervisor', - 'req' => ($i == 1) ? true: false, - 'grid' => 4 - ]; - ${'employment_salary_start'.$i} = [ - 'type' => 'text', - 'name' => 'employment_salary_start'.$i, - 'placeholder' => 'Starting', - 'req' => ($i == 1) ? true: false, - 'grid' => 1 - ]; - ${'employment_salary_end'.$i} = [ - 'type' => 'text', - 'name' => 'employment_salary_end'.$i, - 'placeholder' => 'Ending', - 'req' => ($i == 1) ? true: false, - 'grid' => 1 - ]; - ${'employment_position'.$i} = [ - 'type' => 'text', - 'name' => 'employment_position'.$i, - 'req' => ($i == 1) ? true: false, - 'grid' => 2 - ]; - ${'employment_position_sub'.$i} = [ - 'type' => 'static', - 'name' => 'employment_position_sub'.$i, - 'req' => false, - 'grid' => 2 - ]; - ${'employment_reason'.$i} = [ - 'type' => 'text', - 'name' => 'employment_reason'.$i, - 'req' => ($i == 1) ? true: false, - 'grid' => 2 - ]; - ${'employment_reason_sub'.$i} = [ - 'type' => 'static', - 'name' => 'employment_reason_sub'.$i, - 'req' => false, - 'grid' => 2 - ]; -} -$may_we_contact = [ - 'type' => 'radio', - 'name' => 'may_we_contact', - 'label' => 'May we contact the employers listed?', - 'grid' => 6, - 'req' => true, - 'opts' => [[ - 'name' => 'may_we_contact_yes', - 'label' => 'Yes', - 'value' => 1 - ],[ - 'name' => 'may_we_contact_no', - 'label' => 'No', - 'value' => 0]] -]; -$who_to_not_contact = [ - 'type' => 'textarea', - 'name' => 'who_to_not_contact', - 'label' => 'If no, which one(s) should we NOT contact?', - 'grid' => 6, - 'req' => false -]; -// -$titles3 = [ - 1 => '', - 'College / University', - 'Specialized Training', - 'Business or trade school', - 'other', - '' -]; -$edu_titleHdr = [ - 'type' => 'static', - 'label' => ' ', - 'grid' => 2, - 'req' => false, - 'rcoll' => true -]; -$edu_title2Hdr = $edu_titleHdr; -$edu_title2Hdr['label'] = ' '; -$edu_schoolHdr = [ - 'type' => 'static', - 'label' => 'Name and Location of School', - 'grid' => 4, - 'req' => false -]; -$edu_school2Hdr = $edu_schoolHdr; -$edu_school2Hdr['label'] = ' '; -$edu_yearsHdr = [ - 'type' => 'static', - 'label' => 'No. of Years Attended', - 'grid' => 2, - 'req' => false -]; -$edu_years2Hdr = $edu_yearsHdr; -$edu_years2Hdr['label'] = ' '; -$edu_gradHdr = [ - 'type' => 'static', - 'label' => 'Did you Graduate', - 'grid' => 2, - 'req' => false -]; -$edu_grad_degreeHdr = [ - 'type' => 'static', - 'label' => 'Degree', - 'grid' => 1, - 'req' => false -]; -$edu_grad_certificateHdr = [ - 'type' => 'static', - 'label' => 'Certificate', - 'grid' => 1, - 'req' => false -]; -$edu_subjectHdr = [ - 'type' => 'static', - 'label' => 'Subject/Major', - 'grid' => 2, - 'req' => false -]; -$edu_subject2Hdr = $edu_subjectHdr; -$edu_subject2Hdr['label'] = ' '; -for ($i = 1; $i <= 6; ++$i) { - ${'edu_title'.$i} = [ - 'type' => 'static', - 'label' => '', - 'value' => '
'.$titles3[$i].'
', - 'grid' => 2, - 'rcoll' => true - ]; - ${'edu_school'.$i} = [ - 'type' => 'text', - 'name' => 'edu_school' . $i, - 'label' => '', - 'grid' => 4, - 'req' => ($i == 1) ? true: false - ]; - ${'edu_years'.$i} = [ - 'type' => 'text', - 'name' => 'edu_years' . $i, - 'label' => '', - 'grid' => 2, - 'req' => ($i == 1) ? true: false - ]; - ${'edu_grad_degree'.$i} = [ - 'type' => 'text', - 'name' => 'edu_grad_degree' . $i, - 'label' => '', - 'grid' => 1, - 'req' => ($i == 1) ? true: false - ]; - ${'edu_grad_certificate'.$i} = [ - 'type' => 'text', - 'name' => 'edu_grad_certificate' . $i, - 'label' => '', - 'grid' => 1, - 'req' => ($i == 1) ? true: false - ]; - ${'edu_subject'.$i} = [ - 'type' => 'text', - 'name' => 'edu_subject' . $i, - 'label' => '', - 'grid' => 2, - 'req' => ($i == 1) ? true: false - ]; -} -$form = [ - $topHeader, - [$employment_titleHdr, $employment_datesHdr, $employment_infoHdr, $employment_salaryHdr, $employment_positionHdr, $employment_reasonHdr], - - [$employment_title1, $employment_dates_from1, $employment_info1, $employment_salary_start1, $employment_position1, $employment_reason1], - [$employment_title_sub1, $employment_dates_to1, $employment_supervisor1, $employment_salary_end1,$employment_position_sub1, $employment_reason_sub1], - - [$employment_title2, $employment_dates_from2, $employment_info2, $employment_salary_start2, $employment_position2, $employment_reason2], - [$employment_title_sub2, $employment_dates_to2, $employment_supervisor2, $employment_salary_end2,$employment_position_sub2, $employment_reason_sub2], - - [$employment_title3, $employment_dates_from3, $employment_info3, $employment_salary_start3, $employment_position3, $employment_reason3], - [$employment_title_sub3, $employment_dates_to3, $employment_supervisor3, $employment_salary_end3,$employment_position_sub3, $employment_reason_sub3], - - [$employment_title4, $employment_dates_from4, $employment_info4, $employment_salary_start4, $employment_position4, $employment_reason4], - [$employment_title_sub4, $employment_dates_to4, $employment_supervisor4, $employment_salary_end4,$employment_position_sub4, $employment_reason_sub4], - - [$may_we_contact, $who_to_not_contact], - ['type' => 'header', 'label' => 'Education & Training'], - [$edu_titleHdr, $edu_schoolHdr, $edu_yearsHdr, $edu_gradHdr, $edu_subjectHdr], - [$edu_title2Hdr, $edu_school2Hdr, $edu_years2Hdr, $edu_grad_degreeHdr, $edu_grad_certificateHdr, $edu_subject2Hdr], - [$edu_title1, $edu_school1, $edu_years1, $edu_grad_degree1, $edu_grad_certificate1, $edu_subject1], - [$edu_title2, $edu_school2, $edu_years2, $edu_grad_degree2, $edu_grad_certificate2, $edu_subject2], - [$edu_title3, $edu_school3, $edu_years3, $edu_grad_degree3, $edu_grad_certificate3, $edu_subject3], - [$edu_title4, $edu_school4, $edu_years4, $edu_grad_degree4, $edu_grad_certificate4, $edu_subject4], - [$edu_title5, $edu_school5, $edu_years5, $edu_grad_degree5, $edu_grad_certificate5, $edu_subject5], - [$edu_title6, $edu_school6, $edu_years6, $edu_grad_degree6, $edu_grad_certificate6, $edu_subject6], -]; diff --git a/config/settings4.php b/config/settings4.php index 51fe2fa..864be65 100644 --- a/config/settings4.php +++ b/config/settings4.php @@ -1,76 +1,5 @@ 'radio', - 'name' => 'military_experience', - 'label' => 'Have you had any experience in the Armed Forces of the United States or in a State National Guard?', - 'grid' => 6, - 'req' => true, - 'opts' => [[ - 'name' => 'military_experience_yes', - 'label' => 'Yes', - 'value' => 1 - ],[ - 'name' => 'military_experience_no', - 'label' => 'No', - 'value' => 0]] -]; -$military_branch = [ - 'type' => 'text', - 'name' => 'military_branch', - 'label' => 'If yes, what branch?', - 'grid' => 6, - 'req' => false -]; -$military_date_entered = [ - 'type' => 'text', - 'name' => 'military_date_entered', - 'label' => 'Date Entered', - 'grid' => 4, - 'req' => false -]; -$military_rank = [ - 'type' => 'text', - 'name' => 'military_rank', - 'label' => 'Rank at Discharge', - 'grid' => 4, - 'req' => false -]; -$military_discharge_date = [ - 'type' => 'text', - 'name' => 'military_discharge_date', - 'label' => 'Date of Discharge', - 'grid' => 4, - 'req' => false -]; -$military_reserves = [ - 'type' => 'radio', - 'name' => 'military_reserves', - 'label' => 'Are you in the reserves?', - 'grid' => 6, - 'req' => true, - 'opts' => [[ - 'name' => 'military_reserves_yes', - 'label' => 'Yes', - 'value' => 1 - ],[ - 'name' => 'military_reserves_no', - 'label' => 'No', - 'value' => 0]] -]; -$military_reserves_end = [ - 'type' => 'text', - 'name' => 'military_reserves_end', - 'label' => 'If yes, date obligation ends?', - 'grid' => 6, - 'req' => false -]; -$military_training = [ - 'type' => 'textarea', - 'name' => 'military_training', - 'label' => 'Special/technical training', - 'grid' => 12, - 'req' => false -]; + $crimes_in_past_7_years = [ 'type' => 'radio', 'name' => 'crimes_in_past_7_years', @@ -167,11 +96,6 @@ for ($i = 1; $i <= 3; ++$i) { ]; } $form = [ - ['type' => 'header', 'label' => 'Military Service Record'], - [$military_experience, $military_branch], - [$military_date_entered, $military_rank, $military_discharge_date], - [$military_reserves, $military_reserves_end], - [$military_training], ['type' => 'header', 'label' => 'Additional Information'], [$crimes_in_past_7_years, $crimes_explain], [$training_skills], diff --git a/views/front/formTemplate.php b/views/front/formTemplate.php index b3c5728..f0d3a98 100644 --- a/views/front/formTemplate.php +++ b/views/front/formTemplate.php @@ -19,7 +19,7 @@

-
+ @@ -29,8 +29,13 @@ - + +

+ + +

+

@@ -115,7 +120,7 @@ - + @@ -130,6 +135,7 @@ echo 'checked'; }?> /> +
-- 2.17.1