本文整理汇总了PHP中Default_Model_Employee类的典型用法代码示例。如果您正苦于以下问题:PHP Default_Model_Employee类的具体用法?PHP Default_Model_Employee怎么用?PHP Default_Model_Employee使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Default_Model_Employee类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getVAllEmployees
public function getVAllEmployees()
{
$db = Zend_Db_Table::getDefaultAdapter();
$empmodel = new Default_Model_Employee();
$acceptedrolesArr = $empmodel->getUserRole();
$roles = $acceptedrolesArr[0]['roles'];
$where = "u.isactive = 1 AND u.userstatus = 'old' ";
if ($roles != '') {
$where .= " AND emprole IN(" . $roles . ")";
}
$empData = $db->query("SELECT u.id,u.profileimg,\n\t\t\t\t\t\t\t concat(u.userfullname,if(j.jobtitlename is null,'',concat(' , ',j.jobtitlename))) as name\n\t\t\t\t\t\t\t FROM main_users u\n\t\t\t\t\t\t\t left JOIN main_jobtitles j on j.id = u.jobtitle_id\n\t\t\t\t\t\t\t WHERE " . $where . " ORDER BY name ASC");
$result = $empData->fetchAll();
return $result;
}
示例2: viewAction
public function viewAction()
{
if (defined('EMPTABCONFIGS')) {
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('emp_performanceappraisal', $empOrganizationTabs)) {
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$userid = $this->getRequest()->getParam('userid');
$employeeModal = new Default_Model_Employee();
$isrowexist = $employeeModal->getsingleEmployeeData($userid);
if ($isrowexist == 'norows') {
$this->view->rowexist = "norows";
} else {
$this->view->rowexist = "rows";
}
$empdata = $employeeModal->getActiveEmployeeData($userid);
if (!empty($empdata)) {
$empperformanceApprModel = new Default_Model_Empperformanceappraisal();
if ($userid) {
//To display Employee Profile information......
$usersModel = new Default_Model_Users();
$employeeData = $usersModel->getUserDetailsByIDandFlag($userid);
}
$this->view->id = $userid;
$this->view->employeedata = $employeeData[0];
if ($this->getRequest()->getPost()) {
}
}
$this->view->empdata = $empdata;
} else {
$this->_redirect('error');
}
} else {
$this->_redirect('error');
}
}
示例3: viewAction
public function viewAction()
{
if (defined('EMPTABCONFIGS')) {
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('emp_additional', $empOrganizationTabs)) {
$userID = "";
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
$loginUserRole = $auth->getStorage()->read()->emprole;
$loginUserGroup = $auth->getStorage()->read()->group_id;
}
$id = $this->getRequest()->getParam('userid');
$conText = '';
$call = $this->_getParam('call');
if ($call == 'ajaxcall') {
$this->_helper->layout->disableLayout();
$userID = $this->_getParam('unitId') != '' ? $this->_getParam('unitId') : $this->_getParam('userid');
$conText = $this->_getParam('context') != '' ? $this->_getParam('context') : $this->getRequest()->getParam('context');
}
if ($id == '') {
$id = $userID;
}
$Uid = $id ? $id : $userID;
$employeeModal = new Default_Model_Employee();
try {
if ($Uid && is_numeric($Uid) && $Uid > 0) {
$usersModel = new Default_Model_Users();
$empdata = $employeeModal->getActiveEmployeeData($Uid);
$employeeData = $usersModel->getUserDetailsByIDandFlag($Uid);
if ($empdata == 'norows') {
$this->view->rowexist = "norows";
$this->view->empdata = "";
} else {
$this->view->rowexist = "rows";
if (!empty($empdata)) {
$empadditionaldetailsModal = new Default_Model_Empadditionaldetails();
$view = Zend_Layout::getMvcInstance()->getView();
$objname = $this->_getParam('objname');
$refresh = $this->_getParam('refresh');
$dashboardcall = $this->_getParam('dashboardcall', null);
$data = array();
$searchQuery = '';
$searchArray = array();
$tablecontent = '';
if ($refresh == 'refresh') {
if ($dashboardcall == 'Yes') {
$perPage = DASHBOARD_PERPAGE;
} else {
$perPage = PERPAGE;
}
$sort = 'DESC';
$by = 'e.modifieddate';
$pageNo = 1;
$searchData = '';
$searchQuery = '';
$searchArray = '';
} else {
$sort = $this->_getParam('sort') != '' ? $this->_getParam('sort') : 'DESC';
$by = $this->_getParam('by') != '' ? $this->_getParam('by') : 'e.modifieddate';
if ($dashboardcall == 'Yes') {
$perPage = $this->_getParam('per_page', DASHBOARD_PERPAGE);
} else {
$perPage = $this->_getParam('per_page', PERPAGE);
}
$pageNo = $this->_getParam('page', 1);
$searchData = $this->_getParam('searchData');
$searchData = rtrim($searchData, ',');
}
$dataTmp = $empadditionaldetailsModal->getGrid($sort, $by, $perPage, $pageNo, $searchData, $call, $dashboardcall, $Uid, $conText);
array_push($data, $dataTmp);
$this->view->dataArray = $data;
$this->view->call = $call;
$this->view->employeedata = $employeeData[0];
$this->view->id = $id;
$this->view->messages = $this->_helper->flashMessenger->getMessages();
}
$this->view->empdata = $empdata;
}
} else {
$this->view->rowexist = "norows";
}
} catch (Exception $e) {
$this->view->rowexist = "norows";
}
} else {
$this->_redirect('error');
}
} else {
$this->_redirect('error');
}
}
示例4: sendmailstoemployees
public function sendmailstoemployees($oldRM, $newRM)
{
$baseUrl = BASE_URL;
$employeeModal = new Default_Model_Employee();
$employessunderEmpId = $employeeModal->getEmployeesUnderRM($oldRM);
/* Send Mails to the employees whose reporting manager is changed */
$oldRMData = $employeeModal->getsingleEmployeeData($oldRM);
$newRMData = $employeeModal->getsingleEmployeeData($newRM);
if (!empty($newRMData)) {
foreach ($employessunderEmpId as $employee) {
$options['subject'] = APPLICATION_NAME . ' : Change of reporting manager';
$options['header'] = 'Change of reporting manager';
$options['toEmail'] = $employee['emailaddress'];
$options['toName'] = $employee['userfullname'];
$options['message'] = '<div>Hello ' . ucfirst($employee['userfullname']) . ',
<div>' . ucfirst($newRMData[0]['userfullname']) . ' is your new reporting manager.</div>
<div style="padding:20px 0 10px 0;">Please <a href="' . $baseUrl . '/index/popup" target="_blank" style="color:#b3512f;">click here</a> to login </div>
</div>';
$result = sapp_Global::_sendEmail($options);
}
}
}
示例5: updateempdetails
public function updateempdetails($employeeform)
{
$emproleStr = '';
$roleArr = array();
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$usersModel = new Default_Model_Usermanagement();
$employeeModal = new Default_Model_Employee();
$businessunit_id = $this->_request->getParam('businessunit_id', null);
$department_id = $this->_request->getParam('department_id', null);
$reporting_manager = $this->_request->getParam('reporting_manager', null);
$jobtitle_id = $this->_request->getParam('jobtitle_id', null);
$position_id = $this->_request->getParam('position_id', null);
$user_id = $this->_getParam('user_id', null);
$prefix_id = $this->_getParam('prefix_id', null);
$extension_number = $this->_getParam('extension_number', null);
if ($employeeform->isValid($this->_request->getPost())) {
$id = $this->_request->getParam('id');
$emp_status_id = $this->_request->getParam('emp_status_id', null);
$date_of_joining = $this->_request->getParam('date_of_joining', null);
$date_of_joining = sapp_Global::change_date($date_of_joining, 'database');
$date_of_leaving = $this->_request->getParam('date_of_leaving', null);
$date_of_leaving = sapp_Global::change_date($date_of_leaving, 'database');
$years_exp = $this->_request->getParam('years_exp');
//FOR USER table
$employeeId = $this->_getParam('employeeId', null);
$modeofentry = $this->_getParam('modeofentry', null);
$hid_modeofentry = $this->_getParam('hid_modeofentry', null);
$other_modeofentry = $this->_getParam('other_modeofentry', null);
$userfullname = $this->_getParam('userfullname', null);
$candidatereferredby = $this->_getParam('candidatereferredby', null);
$rccandidatename = $this->_getParam('rccandidatename', null);
$emprole = $this->_getParam('emprole', null);
//roleid_group_id
if ($emprole != "") {
$roleArr = explode('_', $emprole);
if (!empty($roleArr)) {
$emproleStr = $roleArr[0];
}
}
$emailaddress = $this->_getParam('emailaddress', null);
$tmp_name = $this->_request->getParam('tmp_emp_name', null);
$act_inact = $this->_request->getParam("act_inact", null);
//end of user table
$date = new Zend_Date();
$menumodel = new Default_Model_Menu();
$empstatusarray = array(8, 9, 10);
$actionflag = '';
$tableid = '';
if ($modeofentry == 'Direct' || $hid_modeofentry == 'Direct') {
$candidate_key = 'userfullname';
$candidate_value = $userfullname;
$emp_name = $userfullname;
$candidate_flag = 'no';
} else {
$candidate_key = 'rccandidatename';
$candidate_value = $rccandidatename;
$emp_name = $tmp_name;
$candidate_flag = 'yes';
}
$trDb = Zend_Db_Table::getDefaultAdapter();
// starting transaction
$trDb->beginTransaction();
try {
$emppassword = sapp_Global::generatePassword();
$user_data = array('emprole' => $emproleStr, $candidate_key => $candidate_value, 'emailaddress' => $emailaddress, 'modifiedby' => $loginUserId, 'modifieddate' => Zend_Registry::get('currentdate'), 'emppassword' => md5($emppassword), 'employeeId' => $employeeId, 'modeofentry' => $id == '' ? $modeofentry : "", 'selecteddate' => $date_of_joining, 'candidatereferredby' => $candidatereferredby, 'userstatus' => 'old', 'other_modeofentry' => $other_modeofentry);
if ($id != '') {
$where = array('user_id=?' => $user_id);
$actionflag = 2;
$user_where = "id = " . $user_id;
unset($user_data['candidatereferredby']);
unset($user_data['userstatus']);
unset($user_data['emppassword']);
unset($user_data['employeeId']);
unset($user_data['modeofentry']);
unset($user_data['other_modeofentry']);
} else {
$data['createdby'] = $loginUserId;
$data['createddate'] = gmdate("Y-m-d H:i:s");
$data['isactive'] = 1;
$user_data['createdby'] = $loginUserId;
$user_data['createddate'] = gmdate("Y-m-d H:i:s");
$user_data['isactive'] = 1;
if ($modeofentry != 'Direct') {
$user_data['userfullname'] = $emp_name;
}
$where = '';
$actionflag = 1;
$user_where = '';
}
$user_status = $usersModel->SaveorUpdateUserData($user_data, $user_where);
if ($id == '') {
$user_id = $user_status;
}
$data = array('user_id' => $user_id, 'reporting_manager' => $reporting_manager, 'emp_status_id' => $emp_status_id, 'businessunit_id' => $businessunit_id, 'department_id' => $department_id, 'jobtitle_id' => $jobtitle_id, 'position_id' => $position_id, 'prefix_id' => $prefix_id, 'extension_number' => $extension_number, 'date_of_joining' => $date_of_joining, 'date_of_leaving' => $date_of_leaving != '' ? $date_of_leaving : NULL, 'years_exp' => $years_exp == '' ? null : $years_exp, 'modifiedby' => $loginUserId, 'modifieddate' => gmdate("Y-m-d H:i:s"));
$Id = $employeeModal->SaveorUpdateEmployeeData($data, $where);
$statuswhere = array('id=?' => $user_id);
if (in_array($emp_status_id, $empstatusarray)) {
//.........这里部分代码省略.........
示例6: editAction
public function editAction()
{
if (defined('EMPTABCONFIGS')) {
$popConfigPermission = array();
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('empcommunicationdetails', $empOrganizationTabs)) {
$empDeptdata = array();
$employeeData = array();
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
$loginuserRole = $auth->getStorage()->read()->emprole;
$loginuserGroup = $auth->getStorage()->read()->group_id;
}
if (sapp_Global::_checkprivileges(COUNTRIES, $loginuserGroup, $loginuserRole, 'add') == 'Yes') {
array_push($popConfigPermission, 'country');
}
if (sapp_Global::_checkprivileges(STATES, $loginuserGroup, $loginuserRole, 'add') == 'Yes') {
array_push($popConfigPermission, 'state');
}
if (sapp_Global::_checkprivileges(CITIES, $loginuserGroup, $loginuserRole, 'add') == 'Yes') {
array_push($popConfigPermission, 'city');
}
$id = $this->getRequest()->getParam('userid');
if ($id == '') {
$id = $loginUserId;
}
$callval = $this->getRequest()->getParam('call');
if ($callval == 'ajaxcall') {
$this->_helper->layout->disableLayout();
}
try {
if ($id && is_numeric($id) && $id > 0 && $id != $loginUserId) {
$employeeModal = new Default_Model_Employee();
$empdata = $employeeModal->getsingleEmployeeData($id);
if ($empdata == 'norows') {
$this->view->rowexist = "norows";
$this->view->empdata = "";
} else {
$this->view->rowexist = "rows";
if (!empty($empdata)) {
$empDept = $empdata[0]['department_id'];
$empcommdetailsform = new Default_Form_empcommunicationdetails();
$empcommdetailsModal = new Default_Model_Empcommunicationdetails();
$usersModel = new Default_Model_Users();
$countriesModel = new Default_Model_Countries();
$statesmodel = new Default_Model_States();
$citiesmodel = new Default_Model_Cities();
$orgInfoModel = new Default_Model_Organisationinfo();
$msgarray = array();
$orgid = 1;
$countryId = '';
$stateId = '';
$cityId = '';
$deptModel = new Default_Model_Departments();
if ($empDept != '' && $empDept != 'NULL') {
$empDeptdata = $deptModel->getEmpdepartmentdetails($empDept);
if (!empty($empDeptdata)) {
$countryId = $empDeptdata[0]['country'];
$stateId = $empDeptdata[0]['state'];
$cityId = $empDeptdata[0]['city'];
}
} else {
$empDeptdata = $orgInfoModel->getOrganisationDetails($orgid);
if (!empty($empDeptdata)) {
$countryId = $empDeptdata[0]['country'];
$stateId = $empDeptdata[0]['state'];
$cityId = $empDeptdata[0]['city'];
}
}
if ($countryId != '') {
$countryData = $countriesModel->getActiveCountryName($countryId);
}
if (!empty($countryData)) {
$empDeptdata[0]['country'] = $countryData[0]['country'];
} else {
$empDeptdata[0]['country'] = '';
}
if ($stateId != '') {
$stateData = $statesmodel->getStateNameData($stateId);
}
if (!empty($stateData)) {
$empDeptdata[0]['state'] = $stateData[0]['state'];
} else {
$empDeptdata[0]['state'] = '';
}
if ($cityId != '') {
$citiesData = $citiesmodel->getCitiesNameData($cityId);
}
if (!empty($citiesData)) {
$empDeptdata[0]['city'] = $citiesData[0]['city'];
} else {
$empDeptdata[0]['city'] = '';
}
$countrieslistArr = $countriesModel->getTotalCountriesList();
if (sizeof($countrieslistArr) > 0) {
$empcommdetailsform->perm_country->addMultiOption('', 'Select Country');
$empcommdetailsform->current_country->addMultiOption('', 'Select Country');
foreach ($countrieslistArr as $countrieslistres) {
$empcommdetailsform->perm_country->addMultiOption($countrieslistres['id'], utf8_encode($countrieslistres['country_name']));
//.........这里部分代码省略.........
示例7: viewAction
public function viewAction()
{
if (defined('EMPTABCONFIGS')) {
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('visadetails', $empOrganizationTabs)) {
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$id = $this->getRequest()->getParam('userid');
$objName = 'visaandimmigrationdetails';
$callval = $this->getRequest()->getParam('call');
if ($callval == 'ajaxcall') {
$this->_helper->layout->disableLayout();
}
$employeeModal = new Default_Model_Employee();
$visaandimmigrationDetailsform = new Default_Form_Visaandimmigrationdetails();
$visaandimmigrationdetailsModel = new Default_Model_Visaandimmigrationdetails();
try {
if ($id && is_numeric($id) && $id > 0 && $id != $loginUserId) {
$empdata = $employeeModal->getsingleEmployeeData($id);
if ($empdata == 'norows') {
$this->view->rowexist = "norows";
$this->view->empdata = "";
} else {
$this->view->rowexist = "rows";
if (!empty($empdata)) {
$visaandimmigrationDetailsform->removeElement("submit");
$elements = $visaandimmigrationDetailsform->getElements();
if (count($elements) > 0) {
foreach ($elements as $key => $element) {
if ($key != "Cancel" && $key != "Edit" && $key != "Delete" && $key != "Attachments") {
$element->setAttrib("disabled", "disabled");
}
}
}
$data = $visaandimmigrationdetailsModel->getvisadetailsRecord($id);
if (!empty($data)) {
$visaandimmigrationDetailsform->setDefault("id", $data[0]["id"]);
$visaandimmigrationDetailsform->setDefault("user_id", $data[0]["user_id"]);
$visaandimmigrationDetailsform->setDefault("passport_number", $data[0]["passport_number"]);
$pp_issue_date = sapp_Global::change_date($data[0]["passport_issue_date"], 'view');
$visaandimmigrationDetailsform->setDefault('passport_issue_date', $pp_issue_date);
$pp_expiry_date = sapp_Global::change_date($data[0]["passport_expiry_date"], 'view');
$visaandimmigrationDetailsform->setDefault("passport_expiry_date", $pp_expiry_date);
$visaandimmigrationDetailsform->setDefault("visa_number", $data[0]["visa_number"]);
$visaandimmigrationDetailsform->setDefault("visa_type", $data[0]["visa_type"]);
$v_issue_date = sapp_Global::change_date($data[0]["visa_issue_date"], 'view');
$visaandimmigrationDetailsform->setDefault('visa_issue_date', $v_issue_date);
$v_expiry_date = sapp_Global::change_date($data[0]["visa_expiry_date"], 'view');
$visaandimmigrationDetailsform->setDefault("visa_expiry_date", $v_expiry_date);
$visaandimmigrationDetailsform->setDefault("inine_status", $data[0]["inine_status"]);
$inine_review = sapp_Global::change_date($data[0]["inine_review_date"], 'view');
$visaandimmigrationDetailsform->setDefault("inine_review_date", $inine_review);
$visaandimmigrationDetailsform->setDefault("issuing_authority", $data[0]["issuing_authority"]);
$visaandimmigrationDetailsform->setDefault("ininetyfour_status", $data[0]["ininetyfour_status"]);
$ininetyfour_expiry = sapp_Global::change_date($data[0]["ininetyfour_expiry_date"], 'view');
$visaandimmigrationDetailsform->setDefault("ininetyfour_expiry_date", $ininetyfour_expiry);
}
$this->view->controllername = $objName;
$this->view->id = $id;
$this->view->data = $data;
$this->view->employeedata = $empdata[0];
$this->view->form = $visaandimmigrationDetailsform;
}
$this->view->empdata = $empdata;
}
} else {
$this->view->rowexist = "norows";
}
} catch (Exception $e) {
$this->view->rowexist = "norows";
}
} else {
$this->_redirect('error');
}
} else {
$this->_redirect('error');
}
}
示例8: viewAction
public function viewAction()
{
if (defined('EMPTABCONFIGS')) {
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('creditcarddetails', $empOrganizationTabs)) {
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$id = $this->getRequest()->getParam('userid');
$callval = $this->getRequest()->getParam('call');
if ($callval == 'ajaxcall') {
$this->_helper->layout->disableLayout();
}
$objName = 'creditcarddetails';
$creditcardDetailsform = new Default_Form_Creditcarddetails();
$creditcardDetailsModel = new Default_Model_Creditcarddetails();
$creditcardDetailsform->removeElement("submit");
$elements = $creditcardDetailsform->getElements();
if (count($elements) > 0) {
foreach ($elements as $key => $element) {
if ($key != "Cancel" && $key != "Edit" && $key != "Delete" && $key != "Attachments") {
$element->setAttrib("disabled", "disabled");
}
}
}
$data = $creditcardDetailsModel->getcreditcarddetailsRecord($id);
$employeeModal = new Default_Model_Employee();
try {
if ($id && is_numeric($id) && $id > 0 && $id != $loginUserId) {
$empdata = $employeeModal->getsingleEmployeeData($id);
if ($empdata == 'norows') {
$this->view->rowexist = "norows";
$this->view->empdata = "";
} else {
$this->view->rowexist = "rows";
if (!empty($empdata)) {
if (!empty($data)) {
$creditcardDetailsform->setDefault("id", $data[0]['id']);
$creditcardDetailsform->setDefault('user_id', $data[0]['user_id']);
$creditcardDetailsform->setDefault("card_type", $data[0]["card_type"]);
$creditcardDetailsform->setDefault("card_number", $data[0]["card_number"]);
$creditcardDetailsform->setDefault("nameoncard", $data[0]["nameoncard"]);
$expiry_date = sapp_Global::change_date($data[0]["card_expiration"], 'view');
$creditcardDetailsform->setDefault('card_expiration', $expiry_date);
$creditcardDetailsform->setDefault("card_issuedby", $data[0]["card_issued_comp"]);
$creditcardDetailsform->setDefault("card_code", $data[0]["card_code"]);
}
$this->view->controllername = $objName;
$this->view->id = $id;
if (!empty($empdata)) {
$this->view->employeedata = $empdata[0];
} else {
$this->view->employeedata = $empdata;
}
$this->view->form = $creditcardDetailsform;
$this->view->data = $data;
}
$this->view->empdata = $empdata;
}
} else {
$this->view->rowexist = "norows";
}
} catch (Exception $e) {
$this->view->rowexist = "norows";
}
} else {
$this->_redirect('error');
}
} else {
$this->_redirect('error');
}
}
示例9: employeedetails
public function employeedetails($emparr, $conText, $userId)
{
$session = new Zend_Auth_Storage_Session();
$data = $session->read();
$loggedinuser = $data['id'];
$group_id = $data['group_id'];
$empdata = '';
$employeetabsStr = '';
$empdata = '<div class="ml-alert-1-success" id="empdetailsmsgdiv" style="display:none;">';
$empdata .= '<div class="style-1-icon success" style="display:block;"></div>';
$empdata .= '<div id="successtext"></div>';
$empdata .= '</div>';
$empdata .= '<div class="all-bg-ctrl">';
$employeeModal = new Default_Model_Employee();
$employessunderEmpId = $employeeModal->getEmployeesUnderRM($userId);
if (!empty($employessunderEmpId)) {
$empdata .= '<input type="hidden" value="true" id="hasteam" name="hasteam" />';
} else {
$empdata .= '<input type="hidden" value="false" id="hasteam" name="hasteam" />';
}
if ($conText == 'edit' || $conText == 'view') {
//If the user has BG status as "Yet to start" then we should enable the link....
$usersModel = new Default_Model_Users();
$bgstatusArr = $usersModel->getBGstatus($userId);
if (!empty($bgstatusArr) && isset($bgstatusArr) && $bgstatusArr[0]['group_id'] != MANAGEMENT_GROUP) {
if ($bgstatusArr[0]['isactive'] == 1) {
$empdata .= '<div id="hrbgchecklink" style="display:none;" class="action-to-page"><a href="' . BASE_URL . '/empscreening/checkscreeningstatus/empid/' . $userId . '">Send for background checks</a></div>';
}
}
}
if ($conText != 'mydetails') {
$empdata .= '<div class="back-to-page"><input type="button" value="Back" name="Back" onclick="gobacktocontroller(\'' . $conText . '\');"></div>';
}
$empdata .= '<div class="emp-screen-view">';
$empdata .= '<div class="display-img-div" id="displayimg" >';
$empdata .= '<div class="employee-pic-emp">';
if ($emparr['profileimg'] != '') {
$empdata .= '<img id="userImage" src="' . BASE_URL . "/public/uploads/profile/" . $emparr['profileimg'] . '" onerror="this.src=\'' . BASE_URL . '/public/media/images/default-profile-pic.jpg\'"/>';
} else {
$empdata .= '<img id="userImage" src="' . BASE_URL . '/public/media/images/employee-deafult-pic.jpg" />';
}
if ($conText != 'mydetails') {
if ($group_id == HR_GROUP || $loggedinuser == SUPERADMIN || $group_id == MANAGEMENT_GROUP) {
$sel_act = $sel_dact = "";
if ($emparr['isactive'] < 2 && $emparr['emptemplock'] == 0) {
if ($emparr['isactive'] == 1) {
$sel_act = "selected";
} else {
if ($emparr['isactive'] == 0) {
$sel_dact = "selected";
}
}
$empdata .= '<p class="field switch"><label class="cb-enable ' . $sel_act . '"><span>Active</span></label><label class="cb-disable ' . $sel_dact . '"><span>Inactive</span></label> </p>';
if ($sel_act == "selected") {
$empdata .= "\n\t\t\t\t\t\t\t\t\t<script type='text/javascript' language='javascript'>\n\t\t\t\t\t\t\t\t\t\t\$('.cb-disable').click(function(){ \n\t\t\t\t\t\t\t\t\t\t\tmakeActiveInactive('inactive','" . $emparr['id'] . "');\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t</script> ";
} else {
if ($sel_dact == "selected") {
$empdata .= "\n\t\t\t\t\t\t\t\t\t<script type='text/javascript' language='javascript'>\n\t\t\t\t\t\t\t\t\t\t\$('.cb-enable').click(function(){ \n\t\t\t\t\t\t\t\t\t\t\tmakeActiveInactive('active','" . $emparr['id'] . "');\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t</script> ";
}
}
} else {
if ($emparr['isactive'] < 2 && $emparr['emptemplock'] == 1) {
$sel_dact = "selected";
$sel_act = "";
$empdata .= '<p class="field switch"><label class="cb-enable ' . $sel_act . '"><span>Active</span></label><label class="cb-disable ' . $sel_dact . '"><span>Inactive</span></label> </p>';
$empdata .= "\n\t\t\t\t\t\t\t\t<script type='text/javascript' language='javascript'>\n\t\t\t\t\t\t\t\t\t\$('.cb-enable').click(function(){ \n\t\t\t\t\t\t\t\t\t\tmakeActiveInactive('active','" . $emparr['id'] . "');\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</script> \n\t\t\t\t\t\t\t\t";
} else {
$sel_dact = "selected";
$sel_act = "";
$empdata .= '<p class="field switch"><label class="cb-enable ' . $sel_act . '"><span>Active</span></label><label class="cb-disable ' . $sel_dact . '"><span>Inactive</span></label> </p>';
$empdata .= "\n\t\t\t\t\t\t\t\t<script type='text/javascript' language='javascript'>\n\t\t\t\t\t\t\t\t\t\$('.cb-enable,.cb-disable').click(function(){ \n\t\t\t\t\t\t\t\t\t\tmakeActiveInactive('other','" . $emparr['isactive'] . "');\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</script> \n\t\t\t\t\t\t\t\t";
}
}
}
}
$empdata .= '</div>';
$empdata .= '<div id="loaderimg" style="display:none; clear:both; margin:0 auto; text-align: center; width:100%;"><img src="' . BASE_URL . "/public/media/images/loaderwhite_21X21.gif" . '" style="width:21px; height: 21px; float: none; "/>';
$empdata .= '</div>';
$empdata .= '</div>';
$empdata .= '<div id="personalDetailsDiv">';
if ($emparr['is_orghead'] == '1') {
$headicon = '<img src="' . BASE_URL . "/public/media/images/org-head.png" . '" class="org-head-icon" />';
} else {
$headicon = '';
}
if (isset($emparr['active_prefix']) && isset($emparr['prefix']) && $emparr['active_prefix'] == 1 && $emparr['prefix'] != '') {
$empdata .= '<p><b>Employee Name <i>:</i></b><span class="emp-name-span bold-text">' . $emparr['prefix'] . '. ' . $emparr['userfullname'] . '</span>' . $headicon . '</p>';
} else {
$empdata .= '<p><b>Employee Name <i>:</i></b><span class="emp-name-span bold-text">' . $emparr['userfullname'] . '</span>' . $headicon . '</p>';
}
$empdata .= '<p><b>Employee Id <i>:</i></b><span class="emp-name-span" id ="spanempid">' . $emparr['employeeId'] . '</span></p>';
$empdata .= '<p><b>Email Id <i>:</i></b><span><a href="javascript:void(0)">' . $emparr['emailaddress'] . '</a></span></p>';
if ($emparr['contactnumber'] != '') {
$empdata .= '<p><b>Contact Number <i>:</i></b>';
$empdata .= '<span id="contactnospan" >' . $emparr['contactnumber'] . '</span>';
if ($group_id == HR_GROUP || $loggedinuser == SUPERADMIN || $loggedinuser == $userId || $group_id == MANAGER_GROUP) {
$empdata .= '<span class="number-edit"><input type="button" value="Update" id="editcontactnumber" name="Edit Number" onclick="opencontactnumberpopup(\'' . $emparr['id'] . '\',\'edit\',\'' . $emparr['contactnumber'] . '\');">';
$empdata .= '</span>';
}
$empdata .= '</p>';
//.........这里部分代码省略.........
示例10: editAction
public function editAction()
{
$genderaddpermission = '';
$msaddpermission = '';
$ethnicaddpermission = '';
$racecodepermission = '';
$languagepermission = '';
$nationalityaddpermission = '';
$identityDocumentArr = array();
$documentsArr = array();
if (defined('EMPTABCONFIGS')) {
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('emppersonaldetails', $empOrganizationTabs)) {
$loginUserId = '';
$loginUserGroup = '';
$loginUserRole = '';
$auth = Zend_Auth::getInstance();
$emptyFlag = 0;
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
$loginUserGroup = $auth->getStorage()->read()->group_id;
$loginUserRole = $auth->getStorage()->read()->emprole;
}
$genderaddpermission = sapp_Global::_checkprivileges(GENDER, $loginUserGroup, $loginUserRole, 'add');
$msaddpermission = sapp_Global::_checkprivileges(MARITALSTATUS, $loginUserGroup, $loginUserRole, 'add');
$ethnicaddpermission = sapp_Global::_checkprivileges(ETHNICCODE, $loginUserGroup, $loginUserRole, 'add');
$racecodepermission = sapp_Global::_checkprivileges(RACECODE, $loginUserGroup, $loginUserRole, 'add');
$languagepermission = sapp_Global::_checkprivileges(LANGUAGE, $loginUserGroup, $loginUserRole, 'add');
$nationalityaddpermission = sapp_Global::_checkprivileges(NATIONALITY, $loginUserGroup, $loginUserRole, 'add');
$id = $this->getRequest()->getParam('userid');
if ($id == '') {
$id = $loginUserId;
}
$callval = $this->getRequest()->getParam('call');
if ($callval == 'ajaxcall') {
$this->_helper->layout->disableLayout();
}
try {
if ($id && is_numeric($id) && $id > 0 && $id != $loginUserId) {
$employeeModal = new Default_Model_Employee();
$empdata = $employeeModal->getsingleEmployeeData($id);
if ($empdata == 'norows') {
$this->view->rowexist = "norows";
$this->view->empdata = "";
} else {
$this->view->rowexist = "rows";
if (!empty($empdata)) {
$empperdetailsModal = new Default_Model_Emppersonaldetails();
$usersModel = new Default_Model_Users();
$empprobationreviewform = new Default_Form_empprobationreview();
$emppersonaldetailsform = new Default_Form_emppersonaldetails();
if ($loginUserGroup == MANAGEMENT_GROUP || $loginUserGroup == HR_GROUP || $loginUserRole == SUPERADMINROLE) {
$identitydocumentsModel = new Default_Model_Identitydocuments();
$identityDocumentArr = $identitydocumentsModel->getIdentitydocumnetsrecord();
}
$genderModel = new Default_Model_Gender();
$maritalstatusmodel = new Default_Model_Maritalstatus();
$nationalitymodel = new Default_Model_Nationality();
$ethniccodemodel = new Default_Model_Ethniccode();
$racecodemodel = new Default_Model_Racecode();
$languagemodel = new Default_Model_Language();
$msgarray = array();
$genderlistArr = $genderModel->getGenderList();
if (!empty($genderlistArr)) {
foreach ($genderlistArr as $genderlistres) {
$emppersonaldetailsform->genderid->addMultiOption($genderlistres['id'], $genderlistres['gendername']);
}
} else {
$msgarray['genderid'] = 'Gender is not configured yet.';
$emptyFlag++;
}
$maritalstatuslistArr = $maritalstatusmodel->getMaritalStatusList();
if (!empty($maritalstatuslistArr)) {
foreach ($maritalstatuslistArr as $maritalstatuslistres) {
$emppersonaldetailsform->maritalstatusid->addMultiOption($maritalstatuslistres['id'], $maritalstatuslistres['maritalstatusname']);
}
} else {
$msgarray['maritalstatusid'] = 'Marital status is not configured yet.';
$emptyFlag++;
}
$nationalitylistArr = $nationalitymodel->getNationalityList();
if (!empty($nationalitylistArr)) {
foreach ($nationalitylistArr as $nationalitylistres) {
$emppersonaldetailsform->nationalityid->addMultiOption($nationalitylistres['id'], $nationalitylistres['nationalitycode']);
}
} else {
$msgarray['nationalityid'] = 'Nationality is not configured yet.';
$emptyFlag++;
}
$ethniccodeArr = $ethniccodemodel->gettotalEthnicCodeData();
if (!empty($ethniccodeArr)) {
foreach ($ethniccodeArr as $ethniccoderes) {
$emppersonaldetailsform->ethniccodeid->addMultiOption($ethniccoderes['id'], $ethniccoderes['ethnicname']);
}
} else {
$msgarray['ethniccodeid'] = 'Ethnic codes are not configured yet.';
$emptyFlag++;
}
$racecodeArr = $racecodemodel->gettotalRaceCodeData();
if (!empty($racecodeArr)) {
//.........这里部分代码省略.........
示例11: addemppopupAction
public function addemppopupAction()
{
$flag = 'true';
$controllername = 'employee';
$msgarray = array();
$emptyFlag = 0;
Zend_Layout::getMvcInstance()->setLayoutPath(APPLICATION_PATH . "/layouts/scripts/popup/");
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$deptidforhead = $this->_getParam('deptidforhead', null);
$report_opt = array();
$emp_form = new Default_Form_employee();
$user_model = new Default_Model_Usermanagement();
$role_model = new Default_Model_Roles();
$prefixModel = new Default_Model_Prefix();
$identity_code_model = new Default_Model_Identitycodes();
$jobtitlesModel = new Default_Model_Jobtitles();
$deptModel = new Default_Model_Departments();
$positionsmodel = new Default_Model_Positions();
$employeeModal = new Default_Model_Employee();
$usersModel2 = new Default_Model_Users();
$employmentstatusModel = new Default_Model_Employmentstatus();
$emp_form->setAction(DOMAIN . 'employee/addemppopup/deptidforhead/' . $deptidforhead);
$emp_form->removeElement('department_id');
$emp_form->removeElement('modeofentry');
$identity_codes = $identity_code_model->getIdentitycodesRecord();
$emp_identity_code = isset($identity_codes[0]) ? $identity_codes[0]['employee_code'] : "";
if ($emp_identity_code != '') {
$emp_id = $emp_identity_code . str_pad($user_model->getMaxEmpId($emp_identity_code), 4, '0', STR_PAD_LEFT);
} else {
$emp_id = '';
$msgarray['employeeId'] = 'Identity codes are not configured yet.';
$flag = 'false';
}
$emp_form->employeeId->setValue($emp_id);
$role_data = $role_model->getRolesList_Dept();
$emp_form->emprole->addMultiOptions(array('' => 'Select Role') + $role_data);
if (empty($role_data)) {
$msgarray['emprole'] = 'Roles are not configured yet.';
$flag = 'false';
}
$prefixData = $prefixModel->getPrefixList();
$emp_form->prefix_id->addMultiOption('', 'Select Prefix');
if (!empty($prefixData)) {
foreach ($prefixData as $prefixres) {
$emp_form->prefix_id->addMultiOption($prefixres['id'], $prefixres['prefix']);
}
} else {
$msgarray['prefix_id'] = 'Prefixes are not configured yet.';
$flag = 'false';
}
$jobtitleData = $jobtitlesModel->getJobTitleList();
if (!empty($jobtitleData)) {
foreach ($jobtitleData as $jobtitleres) {
$emp_form->jobtitle_id->addMultiOption($jobtitleres['id'], $jobtitleres['jobtitlename']);
}
} else {
$msgarray['jobtitle_id'] = 'Job titles are not configured yet.';
$msgarray['position_id'] = 'Positions are not configured yet.';
$flag = 'false';
}
if (isset($_POST['jobtitle_id']) && $_POST['jobtitle_id'] != '') {
$positionlistArr = $positionsmodel->getPositionList($_POST['jobtitle_id']);
if (sizeof($positionlistArr) > 0) {
$emp_form->position_id->addMultiOption('', 'Select Position');
foreach ($positionlistArr as $positionlistres) {
$emp_form->position_id->addMultiOption($positionlistres['id'], $positionlistres['positionname']);
}
}
}
$employmentStatusData = $employmentstatusModel->getempstatusActivelist();
$emp_form->emp_status_id->addMultiOption('', 'Select Employment Status');
if (!empty($employmentStatusData)) {
foreach ($employmentStatusData as $employmentStatusres) {
$emp_form->emp_status_id->addMultiOption($employmentStatusres['workcodename'], $employmentStatusres['statusname']);
}
} else {
$msgarray['emp_status_id'] = 'Employment status is not configured yet.';
$emptyFlag++;
}
$reportingManagerData = $usersModel2->getReportingManagerList_employees('', '', MANAGEMENT_GROUP);
if (!empty($reportingManagerData)) {
$report_opt = $reportingManagerData;
if (isset($_POST['reporting_manager']) && $_POST['reporting_manager'] != '') {
$emp_form->setDefault('reporting_manager', $_POST['reporting_manager']);
}
} else {
$msgarray['reporting_manager'] = 'Reporting managers are not added yet.';
$flag = 'false';
}
if ($this->getRequest()->getPost()) {
if ($emp_form->isValid($this->_request->getPost()) && $flag == 'true') {
$jobtitle_id = $this->_request->getParam('jobtitle_id', null);
$position_id = $this->_request->getParam('position_id', null);
$date_of_joining = sapp_Global::change_date($this->_request->getParam('date_of_joining', null), 'database');
$date_of_leaving = $this->_request->getParam('date_of_leaving', null);
$date_of_leaving = sapp_Global::change_date($date_of_leaving, 'database');
$employeeId = $this->_getParam('employeeId', null);
//.........这里部分代码省略.........
示例12: empautoAction
public function empautoAction()
{
$term = $this->_getParam('term', null);
$output = array(array('id' => '', 'value' => 'No records', 'label' => 'No records'));
$emp_model = new Default_Model_Employee();
if ($term != '') {
$emp_arr = $emp_model->getAutoReportEmp($term);
if (count($emp_arr) > 0) {
$output = array();
foreach ($emp_arr as $emp) {
$output[] = array('id' => $emp['user_id'], 'value' => $emp['emp_name'], 'label' => $emp['emp_name'], 'profile_img' => $emp['profileimg']);
}
}
}
$this->_helper->json($output);
}
示例13: viewAction
public function viewAction()
{
if (defined('EMPTABCONFIGS')) {
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('disabilitydetails', $empOrganizationTabs)) {
$auth = Zend_Auth::getInstance();
$emptyFlag = 0;
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
$loginUserGroup = $auth->getStorage()->read()->group_id;
$loginUserRole = $auth->getStorage()->read()->emprole;
}
$id = $this->getRequest()->getParam('userid');
$employeeModal = new Default_Model_Employee();
try {
if ($id && is_numeric($id) && $id > 0 && $id != $loginUserId) {
$isrowexist = $employeeModal->getsingleEmployeeData($id);
if ($isrowexist == 'norows') {
$this->view->rowexist = "norows";
} else {
$this->view->rowexist = "rows";
}
$empdata = $employeeModal->getActiveEmployeeData($id);
if (!empty($empdata)) {
$callval = $this->getRequest()->getParam('call');
if ($callval == 'ajaxcall') {
$this->_helper->layout->disableLayout();
}
$objName = 'disabilitydetails';
$employeeData = array();
$empDisabilitydetailsform = new Default_Form_Disabilitydetails();
$empDisabilitydetailsModel = new Default_Model_Disabilitydetails();
$empDisabilitydetailsform->removeElement("submit");
$elements = $empDisabilitydetailsform->getElements();
if (count($elements) > 0) {
foreach ($elements as $key => $element) {
if ($key != "Cancel" && $key != "Edit" && $key != "Delete" && $key != "Attachments") {
$element->setAttrib("disabled", "disabled");
}
}
}
$data = $empDisabilitydetailsModel->getempDisabilitydetails($id);
$usersModel = new Default_Model_Users();
$employeeData = $usersModel->getUserDetailsByIDandFlag($id);
if (!empty($data)) {
$empDisabilitydetailsform->setDefault('user_id', $data[0]['user_id']);
$empDisabilitydetailsform->setDefault('disability_name', $data[0]['disability_name']);
$empDisabilitydetailsform->setDefault('disability_type', $data[0]['disability_type']);
$empDisabilitydetailsform->setDefault('other_disability_type', $data[0]['other_disability_type']);
$empDisabilitydetailsform->setDefault('disability_description', $data[0]['disability_description']);
}
$this->view->controllername = $objName;
$this->view->id = $id;
$this->view->data = $data;
$this->view->employeedata = $employeeData[0];
$this->view->form = $empDisabilitydetailsform;
}
$this->view->empdata = $empdata;
} else {
$this->view->rowexist = "norows";
}
} catch (Exception $e) {
$this->view->rowexist = "norows";
}
} else {
$this->_redirect('error');
}
}
}
示例14: viewAction
public function viewAction()
{
if (defined('EMPTABCONFIGS')) {
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('emp_holidays', $empOrganizationTabs)) {
$conText = "";
$userID = '';
$msgarray = array();
$empGroupId = '';
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$id = $this->getRequest()->getParam('userid');
$call = $this->_getParam('call');
if ($call == 'ajaxcall') {
$this->_helper->layout->disableLayout();
$userID = $this->_getParam('unitId') != '' ? $this->_getParam('unitId') : $this->_getParam('userid');
$conText = $this->_getParam('context') != '' ? $this->_getParam('context') : $this->getRequest()->getParam('context');
}
if ($id == '') {
$id = $userID;
}
$Uid = $id ? $id : $userID;
if ($Uid != "") {
//TO dispaly EMployee Profile information.....
$usersModel = new Default_Model_Users();
$employeeData = $usersModel->getUserDetailsByIDandFlag($Uid);
}
$employeesModel = new Default_Model_Employees();
$holidaydatesmodel = new Default_Model_Holidaydates();
$employeeModal = new Default_Model_Employee();
try {
if ($id && is_numeric($id) && $id > 0 && $id != $loginUserId) {
$isrowexist = $employeeModal->getsingleEmployeeData($id);
if ($isrowexist == 'norows') {
$this->view->rowexist = "norows";
} else {
$this->view->rowexist = "rows";
}
$empdata = $employeeModal->getActiveEmployeeData($id);
if (!empty($empdata)) {
if ($id) {
$empholidaysform = new Default_Form_empholidays();
$holidaygroupModel = new Default_Model_Holidaygroups();
$holidaygroupArr = $holidaygroupModel->getAllGroupData();
if (sizeof($holidaygroupArr) > 0) {
$empGroupId = $holidaygroupArr[0]['id'];
foreach ($holidaygroupArr as $holidaygroupres) {
$empholidaysform->holiday_group->addMultiOption($holidaygroupres['id'], $holidaygroupres['groupname']);
}
} else {
$msgarray['empholidaysform'] = 'Holiday groups not configured yet';
}
$data = $employeesModel->getHolidayGroupForEmployee($id);
if ($data[0]['holiday_group'] != '') {
$singleholidaygroupArr = $holidaygroupModel->getsingleGroupData($data[0]['holiday_group']);
$empholidaysform->populate($data[0]);
$empholidaysform->setDefault('holiday_group', $data[0]['holiday_group']);
$empGroupId = $data[0]['holiday_group'];
$this->view->data = $data;
}
$empholidaysform->setAttrib('action', BASE_URL . 'empholidays/edit/userid/' . $id);
$this->view->form = $empholidaysform;
}
if ($this->getRequest()->getPost()) {
$result = $this->save($empholidaysform, $id);
$this->view->msgarray = $result;
}
$objname = $this->_getParam('objname');
$refresh = $this->_getParam('refresh');
$dashboardcall = $this->_getParam('dashboardcall', null);
$data = array();
$searchQuery = '';
$searchArray = array();
$tablecontent = '';
if ($refresh == 'refresh') {
if ($dashboardcall == 'Yes') {
$perPage = DASHBOARD_PERPAGE;
} else {
$perPage = PERPAGE;
}
$sort = 'DESC';
$by = 'h.modifieddate';
$pageNo = 1;
$searchData = '';
$searchQuery = '';
$searchArray = array();
} else {
$sort = $this->_getParam('sort') != '' ? $this->_getParam('sort') : 'DESC';
$by = $this->_getParam('by') != '' ? $this->_getParam('by') : 'h.modifieddate';
if ($dashboardcall == 'Yes') {
$perPage = $this->_getParam('per_page', DASHBOARD_PERPAGE);
} else {
$perPage = $this->_getParam('per_page', PERPAGE);
}
$pageNo = $this->_getParam('page', 1);
$searchData = $this->_getParam('searchData');
$searchData = rtrim($searchData, ',');
}
//.........这里部分代码省略.........
示例15: displaymanagersAction
public function displaymanagersAction()
{
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->addActionContext('displaymanagers', 'html')->initContext();
$line1_data = array();
$line_managers = array();
$type = $this->_getParam('type', null);
$levels = $this->_getParam('levels', null);
$init_id = $this->_getParam('init_id', null);
$line1_id = $this->_getParam('line1_id', null);
$context = $this->_getParam('context', 'add');
$employeeid = $this->_getParam('employeeid');
$app_levels = 1;
$app_init_model = new Default_Model_Appraisalinit();
$appEmpRatingsModel = new Default_Model_Appraisalemployeeratings();
$init_data = $app_init_model->getConfigData($init_id);
if (count($init_data) > 0) {
$init_data = $init_data[0];
}
$managers = $app_init_model->getRepManagers_new($type, $init_id, $init_data);
if ($context == 'edit') {
$emp_model = new Default_Model_Employee();
$line1_data = $emp_model->getEmp_from_summary($line1_id);
$line_managers = $app_init_model->getLineManagers_new($init_id, $employeeid);
$line_managers = array_filter($line_managers);
}
$appEmpRatingsData = $appEmpRatingsModel->getSelectedAppraisalData_notused($init_id, $employeeid);
if (!empty($appEmpRatingsData)) {
if ($appEmpRatingsData['appstatus'] != 1) {
$app_levels = $appEmpRatingsData['appstatus'] - 1;
}
}
$this->view->levels = $levels;
$this->view->managers = $managers;
$this->view->init_id = $init_id;
$this->view->context = $context;
$this->view->line1_data = $line1_data;
$this->view->line_managers = $line_managers;
$this->view->line1_id = $line1_id;
$this->view->app_levels = $app_levels;
$this->render('displaymanagers');
}