more forms
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 12 Dec 2014 21:50:31 +0000 (16:50 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 12 Dec 2014 21:50:31 +0000 (16:50 -0500)
config/settings5.php [new file with mode: 0644]
config/settings6.php [new file with mode: 0644]
config/settings7.php [new file with mode: 0644]
controllers/front.php
views/front/formTemplate.php
views/front/thankYou.php

diff --git a/config/settings5.php b/config/settings5.php
new file mode 100644 (file)
index 0000000..3c63742
--- /dev/null
@@ -0,0 +1,71 @@
+<?php
+$topHeader = [
+    'type'      => 'header',
+    'label'     => 'Please Read Carefully',
+    'subheader' => 'Application Form Waiver: Please read the following statements '
+    . 'carefully before signing to indicate your understanding',
+    'notes'     => 'I authorize investigation of all statements contained in this
+        application. I hereby give the Company permission to contact schools,
+        previous employers (unless otherwise indicated), references, and others.
+        I hereby release the Company, or any prior employer, or reference from any
+        liability as a result of such contact, for providing factual information.
+        I certify that the facts contained in this application are true, accurate,
+        and complete to the best of my knowledge. I understand that, if employed,
+        falsified statements or omitted material facts on this application may
+        result in my disqualification from consideration for employment, or
+        termination from employment if I have been hired.</p><p>I understand that
+        (1) the Company has a drug and alcohol policy that provides for pre-employment
+        testing as well as testing after employment; (2) consent to and compliance
+        with such policy is a condition of my employment; and (3) continued
+        employment is based on the successful passing of testing under such
+        policy.</p><p>I understand and agree that, if hired, my employment is
+        "At-Will" and that either the company or I may terminate the employment
+        relationship at any time with or without cause and with or without notice.
+        I further understand that this employment relationship may not be modified
+        by verbal statements, customs, practices, or written documents unless
+        such modification is in writing and signed by the President of the
+        company.</p><p>I understand that, in connection with the routine processing
+        of your employment application, the Company may request from a consumer
+        reporting agency an investigative consumer report including information
+        as to my credit records, character, general reputation, personal
+        characteristics, and mode of living.  Upon written request from me, the
+        Company, will provide me with additional information concerning the
+        nature and scope of any such report requested by it, as required by the
+        Fair Credit Reporting Act.</p><p>Preston Feather Building Centers is an
+        equal opportunity employer. You will be considered for all positions
+        without regard to race, color, religion, weight, height, sex, national
+        origin, marital status, veteran status, the presence of a non-job related
+        medical condition, disability or any other protected status required by
+        law.</p><p>Under Michigan law, disabled employees and applicants must
+        request an accommodation of their disability by notifying the firm in
+        writing of the need for accommodation within 182 days of the date the
+        disabled individual knows or should know that an accommodation is needed.
+        Failure to properly notify the firm may preclude any claim that the employer
+        failed to accommodate the disabled individual.'
+];
+
+$name_of_applicant = [
+    'type'  => 'text',
+    'name'  => 'name_of_applicant',
+    'label' => 'Name of Applicant',
+    'grid'  => 6,
+    'req'   => false
+];
+$agree_form_waiver = [
+    'type'  => 'checkbox',
+    'name'  => 'agree_form_waiver',
+    'label' => 'Do you agree to the above terms? By clicking Yes, you consent '
+    . 'that you have read and understand the above terms.',
+    'grid' => 12,
+    'req'   => true,
+    'opts'  => [[
+        'name' => 'agree_form_waiver',
+        'label' => 'I Agree',
+        'value' => 1
+    ]]
+];
+$form = [
+    $topHeader,
+    [$name_of_applicant],
+    [$agree_form_waiver]
+];
\ No newline at end of file
diff --git a/config/settings6.php b/config/settings6.php
new file mode 100644 (file)
index 0000000..984ae10
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+$topHeader = [
+    'type'      => 'header',
+    'label'     => 'Drug Test Consent Form',
+    'subheader' => 'Consent for Pre-Employment drug test screen and Release '
+    . 'Covenant not to sue and indemnity agreement.',
+    'notes'     => 'I hereby give my consent for Preston Feather Building Centers, '
+    . 'through an authorized testing service of its choice, to collect blood, '
+    . 'hair, urine, or saliva samples from me and to conduct any other necessary '
+    . 'medical tests to determine the presence of alcohol, drugs or controlled '
+    . 'substances, and I hereby release Preston Feather Building Centers from any '
+    . 'liability arising out of such test or its results. Further, I give my '
+    . 'consent for the release of the test results and other relevant medical '
+    . 'information to authorized Preston Feather Building Center’s management '
+    . 'for appropriate review. I hereby release and agree to indemnify and hold '
+    . 'harmless, Preston Feather Building Centers, the laboratory, the testing '
+    . 'service and their officers, agents and employees for any damages, costs '
+    . 'and expenses arising out of the testing or release of its results. If I '
+    . 'am accepted for employment by Preston Feather Building Centers, I hereby '
+    . 'consent to be tested in the above manner during my employment when, in '
+    . 'the Company’s judgment, such testing is appropriate and I acknowledge '
+    . 'that remaining free of illegal drug use and complying with the Company\'s '
+    . 'substance abuse policy is a condition of my employment.'
+];
+
+$name_of_applicant = [
+    'type'  => 'text',
+    'name'  => 'name_of_applicant',
+    'label' => 'Name of Applicant',
+    'grid'  => 6,
+    'req'   => false
+];
+$agree_form_waiver = [
+    'type'  => 'checkbox',
+    'name'  => 'agree_form_waiver',
+    'label' => 'Do you agree to the above terms? By clicking Yes, you consent '
+    . 'that you have read and understand the above terms.',
+    'grid' => 4,
+    'req'   => true,
+    'opts'  => [[
+        'name' => 'agree_form_waiver',
+        'label' => 'I Agree',
+        'value' => 1
+    ]]
+];
+$form = [
+    $topHeader,
+    [$name_of_applicant],
+    [$agree_form_waiver]
+];
\ No newline at end of file
diff --git a/config/settings7.php b/config/settings7.php
new file mode 100644 (file)
index 0000000..4e14829
--- /dev/null
@@ -0,0 +1,187 @@
+<?php
+$topHeader = [
+    'type'      => 'header',
+    'label'     => 'Summary of Rights under Fair Credit Reporting Act',
+    'subheader' => '',
+    'notes'     => 'The federal Fair Credit Reporting Act (FCRA) promotes the '
+    . 'accuracy, fairness, and privacy of information in the files of consumer '
+    . 'reporting agencies. There are many types of consumer reporting agencies, '
+    . 'including credit bureaus and specialty agencies (such as agencies that sell '
+    . 'information about check writing histories, medical records, and rental '
+    . 'history records). Here is a summary of your major rights under the FCRA. '
+    . '<b>For more information, including information about additional rights, go '
+    . 'to <a href="http://www.ftc.gov/credit">www.ftc.gov/credit</a> '
+    . 'or write to: Consumer Response Center, Room 130-A,  Federal trade '
+    . 'Commission, 600 Pennsylvania Ave. N.W., Washington D.C. 20580.</b></p>'
+    . '<ul class="glm-emp-forms-ul">'
+        . '<li><b>You must be told if information in your file has been used against you.</b> '
+        . 'Anyone who uses a credit report or another type of consumer report to deny '
+        . 'your application for credit, insurance, or employment – or to take another '
+        . 'adverse action against you – must tell you, and must give you the name, '
+        . 'address and phone number of the agency that provided the information.'
+        . '</li><li><b>You have a right to know what is in your file.</b> You may request and '
+        . 'obtain all the information about you in the files of a consumer reporting '
+        . 'agency (your “file disclosure”). You will be required to provide proper '
+        . 'identification, which may include our Social Security number. In many cases, '
+        . 'the disclosure will be free. You are entitled to a free file disclosure if:'
+        . '<ul class="glm-emp-forms-ul">'
+            . '<li>A person has taken adverse action against you because of information in your credit report;</li>'
+            . '<li>You are the victim of identity theft and place a fraud alert in your file;</li>'
+            . '<li>Your file contains inaccurate information as a result of fraud;</li>'
+            . '<li>You are on public assistance;</li>'
+            . '<li>You are unemployed but expect to apply for employment within 60 days. '
+            . 'In addition, by September 2005, all consumers will be entitled to one free '
+            . 'disclosure every 12 months upon request from each nationwide specialty consumer '
+            . 'reporting agencies. See <a href="http://www.ftc.gov/credit">www.ftc.gov/credit</a> '
+            . 'for additional information.</ul></li>'
+        . '<li><b>You have the right to ask for a credit score.</b> Credit scores '
+        . 'are numerical summaries of our credit-worthiness based on information '
+        . 'from credit bureaus. You may request a credit score from consumer reporting '
+        . 'agencies that create scores or distribute scores used in residential real '
+        . 'property loans, but you will have to pay for it. In some mortgage transactions, '
+        . 'you will receive credit score information for free from the mortgage lender.</li>'
+        . '<li><b>You have the right to dispute incomplete or inaccurate information.</b> '
+        . 'If you identify information in your file that is incomplete or inaccurate, '
+        . 'and report it to the consumer reporting agency, the agency must investigate '
+        . 'unless your dispute is frivolous. See <a href="http://www.ftc.gov/credit">www.ftc.gov/credit</a>'
+        . ' for an explanation of dispute procedures.</li>'
+        . '<li><b>Consumer reporting agencies must correct or delete inaccurate, incomplete or unverifiable information.</b> Inaccurate, incomplete or unverifiable information must be removed or corrected, usually within 30 days. However, a consumer reporting agency may continue to report information it has verified as correct.</li>'
+        . '<li><b>Consumer reporting agencies may not report outdated negative information.</b> In most cases, a consumer reporting agency may not report negative information that is more than seven years old, or bankruptcies that are more than 10 years old.</li>'
+        . '<li><b>Access to your file is limited.</b> A consumer reporting agency may provide information about you only to people with a valid need – usually to consider an application with a creditor, insurer, employer, landlord, or other business. The FCRA specifies those with a valid need for access.</li>'
+        . '<li><b>You must give your consent for reports to be provided to employers.</b> A consumer reporting agency may not give out information about you to your employer, or a potential employer, without written consent given to the employer. For more information, go to www.ftc.gov/credit.</li>'
+        . '<li><b>You may limit “prescreened” offers of credit and insurance you get based on information in your credit report.</b> Unsolicited “prescreened” offers for credit and insurance must include a toll-free phone number you can call if you choose to remove your name and address from the lists these offers are based on. You may opt-out with the nationwide credit bureaus at 1-888-5OPTOUT (1-888-567-8688).</li>'
+        . '<li><b>You may seek damages from violators.</b> If a consumer reporting agency, or, in some cases, a user of consumer reports or a furnisher of information to a consumer reporting agency violates the FCRA, you may be able to sue in state or federal court.</li>'
+        . '<li><b>Identity theft victims and active duty military personnel have additional rights.</b> For more information, visit www.ftc.gov/credit.</li>'
+    . ''
+    . '</li>'
+    . '</ul><p>'
+    . 'States may enforce the FCRA, and many states have their own consumer reporting laws. In some cases, you may have more rights under state law. For more information, contact your state or local consumer protection agency or your state Attorney General. Federal enforcers are:'
+    . '<table>'
+        . '<thead><tr>'
+            . '<th><i>For Questions or Concerns Regarding:</i></th>'
+            . '<th><i>Please Contact:</i></th>'
+        . '</tr></thead>'
+        . '<tr>'
+            . '<td>Consumer reporting agencies, creditors and others not listed below</td>'
+            . '<td>Federal Trade Commission, Bureau of Consumer Protection, FCRA, Washington DC, 20580. 1-877-382-4357</td>'
+        . '</tr>'
+        . '<tr>'
+            . '<td>National banks, federal branches/agencies of foreign banks (word “National” or initials “N.A.”  appear in or after bank’s name)</td>'
+            . '<td>Office of the Comptroller of the Currency Compliance Management, Mail Stop 6-6, Washington DC, 20219. 800-613-6743</td>'
+        . '</tr>'
+        . '<tr>'
+            . '<td>Federal Reserve System member banks (except national banks, and federal branches/agencies of foreign banks)</td>'
+            . '<td>Federal Reserve Board, Division of Consumer & Community Affairs, Washington DC, 20551. 202-452-3693</td>'
+        . '</tr>'
+        . '<tr>'
+            . '<td>Savings associations and federally chartered savings banks (word “Federal” or initials “F.S.B.” appear in federal institution’s name)</td>'
+            . '<td>Office of Thrift Supervision, Consumer Complaints, Washington DC, 20552. 800-842-6929</td>'
+        . '</tr>'
+        . '<tr>'
+            . '<td>Federal credit unions (words “Federal Credit Union” appear in institution’s name)</td>'
+            . '<td>National Credit Union Administration, 1775 Duke Street, Alexandria VA, 22314. 703-519-4600</td>'
+        . '</tr>'
+        . '<tr>'
+            . '<td>State-chartered banks that are not members of the Federal Reserve System</td>'
+            . '<td>Federal Deposit Insurance Corp., Consumer Response Center, 2345 Grand Avenue, Suite 100, Kansas City, Missouri, 64108-2638  877-275-3342</td>'
+        . '</tr>'
+        . '<tr>'
+            . '<td>Air, surface or rail common carriers regulated by former Civil Aeronautics Board or Interstate Commerce Commission</td>'
+            . '<td>Department of Transportation, Office of Financial Management, Washington DC, 20590. 202-366-1306</td>'
+        . '</tr>'
+        . '<tr>'
+            . '<td>Activities subject to the Packers and Stockyards Act, 1921</td>'
+            . '<td>Department of Agriculture, Office of Deputy Administrator-GIPSA, Washington DC, 20205. 202-720-7051</td>'
+        . '</tr>'
+    . '</table>'
+];
+
+$app_name = [
+    'type'  => 'text',
+    'name'  => 'app_name',
+    'label' => 'Applicants Name',
+    'grid'  => 6,
+    'req'   => false
+];
+$app_address = [
+    'type'  => 'text',
+    'name'  => 'app_address',
+    'label' => 'Address',
+    'grid'  => 6,
+    'req'   => false
+];
+$app_city = [
+    'type'  => 'text',
+    'name'  => 'app_city',
+    'label' => 'City',
+    'grid'  => 4,
+    'req'   => false
+];
+$app_state = [
+    'type'  => 'text',
+    'name'  => 'app_state',
+    'label' => 'State',
+    'grid'  => 4,
+    'req'   => false
+];
+$app_zip = [
+    'type'  => 'text',
+    'name'  => 'app_zip',
+    'label' => 'Zip',
+    'grid'  => 4,
+    'req'   => false
+];
+$app_social = [
+    'type'  => 'text',
+    'name'  => 'app_social',
+    'label' => 'Social Security Number',
+    'grid'  => 6,
+    'req'   => false
+];
+
+$agree_form_waiver2 = [
+    'type'  => 'checkbox',
+    'name'  => 'agree_form_waiver2',
+    'label' => 'Do you agree to the above terms? By clicking Yes, you consent '
+    . 'that you have read and understand the above terms.',
+    'grid' => 4,
+    'req'   => true,
+    'opts'  => [[
+        'name' => 'agree_form_waiver2',
+        'label' => 'I Agree',
+        'value' => 1
+    ]]
+];
+$header2 = [
+    'type'  => 'header',
+    'label' => 'Disclosure to Employment Applicant',
+    'subheader' => '',
+    'notes' => '<p>In connection with your application for employment, or during the course of your employment, we may procure a consumer report on you. In the event that information from the report is utilized in whole or in part in making an adverse decision with regard to your employment, before making the adverse decision, we will provide you with a copy of the consumer report and a description in writing of your rights under the law.</p>'
+    . '<p>Please be advised that we may also obtain an investigative report including information as to your character, general reputation, and personal characteristics. This information may be obtained by contacting your previous employers or references applied by you. Please be advised that you have the right to request, in writing, within a reasonable time, that we make a complete and accurate disclosure of the nature and scope of the information requested. Such disclosure will be made to you within 5 days of the date on which we receive the request from you or within 5 days of the time the report was finished.</p>'
+    . '<p>The Fair Credit Reporting Act gives you specific rights in dealing with consumer reporting agencies. You will find these rights summarized on the next page (see Summary of Rights).</p>'
+    . '<p>By your signature below, you hereby authorize us to obtain a consumer report about you in order to consider you for employment.</p>'
+];
+$copies = [
+    'type'  => 'radio',
+    'name'  => 'copies',
+    'label' => 'Please provide me with a copy of the reports obtained',
+    'grid' => 4,
+    'req'   => true,
+    'opts'  => [[
+        'name' => 'copies_yes',
+        'label' => 'Yes',
+        'value' => 1
+    ],[
+        'name' => 'copies_no',
+        'label' => 'No',
+        'value' => 0]]
+];
+$form = [
+    $topHeader,
+    $header2,
+    [$name],
+    [$app_address],
+    [$app_city, $app_state, $app_zip],
+    [$app_social],
+    [$agree_form_waiver2]
+];
\ No newline at end of file
index b58dde1..858cda4 100644 (file)
@@ -14,6 +14,7 @@ class glm_employment_front
     public $viewDir;
     public $adminViewDir;
     public $frontViewDir;
+    public $settingDir;
     public $formSuccess;
     public $formFail;
     public $formSubmitted;
@@ -32,7 +33,7 @@ class glm_employment_front
     const FORM_VAR          = 'applyOnline';
     const FORM_SETTINGS_DIR = 'config';
     const FORM_VIEW_DIR     = 'views';
-    const FINAL_FORM        = 5;
+    const FINAL_FORM        = 8;
     const FORM_TEMPLATE     = 'formTemplate.php';
     const SUCCESS_TEMPLATE  = 'thankYou.php';
 
@@ -52,6 +53,7 @@ class glm_employment_front
         $this->viewDir = $this->pluginDirName . self::FORM_VIEW_DIR;
         $this->adminViewDir = $this->viewDir . '/admin';
         $this->frontViewDir = $this->viewDir . '/front';
+        $this->settingDir   = $this->pluginDirName . self::FORM_SETTINGS_DIR;
     }
 
     public function set_form_state()
@@ -80,9 +82,7 @@ class glm_employment_front
 
     public function load_form_settings($form_part = '')
     {
-        $setting_file = $this->pluginDirName . self::FORM_SETTINGS_DIR
-            . "/settings{$form_part}.php";
-        include $setting_file;
+        include $this->settingDir . "/settings{$form_part}.php";
         return $form;
     }
 
@@ -100,6 +100,9 @@ class glm_employment_front
         case 2:
         case 3:
         case 4:
+        case 5:
+        case 6:
+        case 7:
             if ($this->formSubmitted) {
 //                $form = $this->load_form_settings($formPart);
                 $this->appId = $appId = filter_var($_REQUEST['appId'], FILTER_VALIDATE_INT);
@@ -116,17 +119,17 @@ class glm_employment_front
                 }
                 //check for errors
                 if ($this->errorCount > 0) {
-                    include $this->frontViewDir . self::FORM_TEMPLATE;
+                    include $this->frontViewDir . '/' . self::FORM_TEMPLATE;
                 } else {
                     $this->store_form_data($form, $formPart);
                     // next form part
                     ++$formPart;
                     if ($formPart == self::FINAL_FORM) {
-                        include $this->frontViewDir . self::SUCCESS_TEMPLATE;
+                        include $this->frontViewDir . '/' . self::SUCCESS_TEMPLATE;
                         unset($_SESSION['glmJobsApplication'], $_SESSION['glmJobsAppForm']);
                     } else {
                         $form = $this->load_form_settings($formPart);
-                        include $this->frontViewDir . self::FORM_TEMPLATE;
+                        include $this->frontViewDir . '/' . self::FORM_TEMPLATE;
                     }
                 }
             } else {
@@ -137,7 +140,7 @@ class glm_employment_front
             unset($_SESSION['glmJobsApplication'], $_SESSION['glmJobsAppForm']);
             $formPart = 1;
             $form = $this->load_form_settings($formPart);
-            include $this->frontViewDir . self::FORM_TEMPLATE;
+            include $this->frontViewDir . '/' . self::FORM_TEMPLATE;
             break;
         }
 //        echo '<pre>'.print_r($_SESSION, true).'</pre>';
index 856fb84..c97ebd2 100644 (file)
@@ -3,6 +3,14 @@
         text-align:left;
         padding-top: 5px;
     }
+    .row.content ul.glm-emp-forms-ul {
+        columns: 1;
+        -moz-columns: 1;
+        -webkit-columns: 1;
+        margin-left: auto;
+        margin-right: auto;
+        padding-left: 20px;
+    }
 </style>
 <div class="row">
     <div class="small-12 columns">
index ec1cefd..15615a0 100644 (file)
@@ -1,3 +1,4 @@
 <div class="alert-box success">
-    Thank you for your time.
+    Thank You For Completing This Application Form And For Your Interest In
+    Preston Feather Building Centers.
 </div>