<?php /* Copyright (c) 2010-2016 Carlos Omar Villanueva This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ require_once "_lib/php/auth.php"; $emailForm = new ArcEmailForm(); $emailForm->isBranch = isset($_POST["isBranch"]) ? $_POST["isBranch"] : false; $emailForm->receiverid = $_POST["data"]; $emailForm->senderid = $id_cust_contact_derived; $emailForm->sendername = $fullName_derived; $emailForm->className = "popBox"; echo $emailForm->buildForm();
$approverdbo->attributes = 'class="chApprover"'; $approverdboJSON = encrypt(json_encode((array) $approverdbo)); # Fieldset Variables $dateHire = '<div class="elementIconBox" onclick="openCalendar(this,\'interface\',null,\'clDateHire\')"><i class="fa fa-calendar"></i></div>'; $dateBirth = '<div class="elementIconBox" onclick="openCalendar(this,\'interface\',null,\'clDateBirth\')"><i class="fa fa-calendar"></i></div>'; $buttonReveal = '<div class="elementIconBox" onclick="showPasswordText(\'hr_emp_ssn\',this)"><i class="fa fa-eye"></i></div>'; # Fieldsets $fsContact = array(array(array('*First', 'cust_contact_givenName', null, 0, null, $rec[0]["cust_contact_givenName"]), array('*Last', 'cust_contact_familyName', null, 0, null, $rec[0]["cust_contact_familyName"])), array(array('Middle', 'cust_contact_middleName', null, 0, null, $rec[0]["cust_contact_middleName"]), array('Nickname', 'cust_contact_commonName', null, 0, null, $rec[0]["cust_contact_commonName"]), array(null, 'id_cust_contact', null, 3, null, $rec[0]['id_cust_contact']), array(null, 'id_hr_emp', null, 3, null, $rec[0]['id_hr_emp'])), array(array('Title', 'id_name_title', null, 1, $listTitle, $rec[0]["id_name_title"]), array('Suffix', 'id_name_suffix', null, 1, $listSuffix, $rec[0]["id_name_suffix"]))); $fsBusiness = array(array(array('*Employment Status', 'id_hr_emp_status', null, 1, $listEmploymentStatus, $rec[0]["id_hr_emp_status"]), array('*Date of Hire', 'hr_emp_date_hire', 'class="clDateHire elementIcon" validateElement(\'date\',this)', 0, null, $rec[0]["hr_emp_date_hire"], null, $dateHire, null, 'YYYY-MM-DD')), array(array('Hourly Rate', 'hr_emp_hRate', 'onblur="validateElement(\'money\',this)"', 0, null, $rec[0]["hr_emp_hRate"]), array('Salary', 'hr_emp_salary', 'onblur="validateElement(\'money\',this)"', 0, null, $rec[0]["hr_emp_salary"])), array(array('Branch', 'id_cust_branch', 'onchange="disableChild(this,\'id_hr_position,id_cust_department\');filterRec(this,\'' . $departmentdboJSON . '\',\'dDepartment\')"', 1, $listParentBranch, $rec[0]["id_cust_branch"]), array('Department', 'id_cust_department', 'onchange="filterRec(this,\'' . $positiondboJSON . '\',\'dPosition\')" class=\'chDepartment\'', 1, $listDepartment, $rec[0]["id_cust_department"], "dDepartment"), array('Job Title', 'id_hr_position', 'class=\'chPosition\'', 1, $listPosition, $rec[0]["id_hr_position"], "dPosition"))); $listGender = array(array(1, "Male"), array(2, "Female")); $fsPrivate = array(array(array('Birthdate', 'cust_contact_bdate', 'class="clDateBirth elementIcon" onblur="validateElement(\'date\',this)"', 0, null, $rec[0]["cust_contact_bdate"], null, $dateBirth, null, 'YYYY-MM-DD')), array(array('Social Security Number', 'hr_emp_ssn', 'class="elementIcon" onblur="validateElement(\'ssn\',this)"', 7, null, $rec[0]["hr_emp_ssn"], null, $buttonReveal)), array(array('Gender', 'id_hr_gender', null, 4, $listGender, $rec[0]["id_hr_gender"])), array(array('Marital Status', 'id_hr_maritalStatus', null, 1, $listMaritalStatus, $rec[0]["id_hr_maritalStatus"])), array(array('Citizenship', 'hr_emp_citizenBit', null, 8, null, $rec[0]["hr_emp_citizenBit"], null, "US Citizen?"), array('Disability', 'hr_emp_disabled', null, 8, null, $rec[0]["hr_emp_disabled"], null, "Qualifies for Disability")), array(array('Ethnicity', 'id_hr_ethnicity', null, 1, $listEthnicity, $rec[0]["id_hr_ethnicity"]), array('Race', 'id_hr_race', null, 1, $listRace, $rec[0]["id_hr_race"])), array(array('Notes', 'hr_emp_notes', 'onkeydown="detectTab(this,event)"', 6, null, $rec[0]["hr_emp_notes"]))); $fsTimeKeeping = array(array(array('Time Approver Organization', 'hr_emp_timeApproverOrg', 'onchange="filterRec(this,\'' . $approverdboJSON . '\',\'dApprover\')"', 1, $listTimeApproverCompany, $rec[0]["hr_emp_timeApproverOrg"])), array(array('Time Approver', 'hr_emp_timeApprover', 'class=\'chApprover\'', 1, $listApprover, $rec[0]["hr_emp_timeApprover"], "dApprover")), array(array('Pay Frequency', 'hr_emp_payFrequency', null, 1, $listPayFrequency, $rec[0]["hr_emp_payFrequency"]))); $requiredFields = "cust_contact_givenName,cust_contact_familyName,id_hr_emp_status,hr_emp_date_hire"; # Plugins ## Email Form $emailForm = new ArcEmailForm(); $emailForm->receiverid = $rec[0]["id_cust_contact"]; $emailForm->senderid = $id_cust_contact_derived; $emailForm->sendername = $fullName_derived; $emailForm->className = "popBox"; $emailFormData = bin2hex($emailForm->buildForm()); ?> </script> <form method="post" name="frmEmp" id="frmEmp" action="javascript:submitFrmVals('content','/_mod/smod_05/sql.php','<?php echo $requiredFields; ?> ','&form=frmEmp&action=update','frmEmp')"> <fieldset id="detail"> <legend>Detail</legend> <div> <div style="float:left">