本文整理匯總了PHP中Default_Model_Employee::getsingleEmployeeCommunicationsDetailsData方法的典型用法代碼示例。如果您正苦於以下問題:PHP Default_Model_Employee::getsingleEmployeeCommunicationsDetailsData方法的具體用法?PHP Default_Model_Employee::getsingleEmployeeCommunicationsDetailsData怎麽用?PHP Default_Model_Employee::getsingleEmployeeCommunicationsDetailsData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Default_Model_Employee
的用法示例。
在下文中一共展示了Default_Model_Employee::getsingleEmployeeCommunicationsDetailsData方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: communicationdetailsviewAction
/**
*
*/
public function communicationdetailsviewAction()
{
if (defined('EMPTABCONFIGS')) {
$empOrganizationTabs = explode(",", EMPTABCONFIGS);
if (in_array('empcommunicationdetails', $empOrganizationTabs)) {
$auth = Zend_Auth::getInstance();
$empdata = array();
$empDeptdata = array();
$empDept = '';
$editPrivilege = "";
$departmentAddress = array();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$id = $this->getRequest()->getParam('userid');
if ($id == '') {
$id = $loginUserId;
}
$callval = $this->getRequest()->getParam('call');
if ($callval == 'ajaxcall') {
$this->_helper->layout->disableLayout();
}
$objName = 'mydetails';
$empcommdetailsform = new Default_Form_empcommunicationdetails();
$empcommdetailsform->removeElement("submit");
$elements = $empcommdetailsform->getElements();
if (count($elements) > 0) {
foreach ($elements as $key => $element) {
if ($key != "Cancel" && $key != "Edit" && $key != "Delete" && $key != "Attachments") {
$element->setAttrib("disabled", "disabled");
}
}
}
try {
if ($id) {
$employeeModal = new Default_Model_Employee();
$employeeDetails = $employeeModal->getsingleEmployeeCommunicationsDetailsData($id);
$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'];
$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();
$deptModel = new Default_Model_Departments();
if ($empDept != '' && $empDept != 'NULL') {
$departmentAddress = $usersModel->getDepartmentAddress($empDept);
} else {
$departmentAddress = $usersModel->getOrganizationAddress();
}
$data = $empcommdetailsModal->getsingleEmpCommDetailsData($id);
if (!empty($data)) {
if ($data[0]['perm_country'] != '') {
$countrieslistArr = $countriesModel->getCountryCode($data[0]['perm_country']);
if (sizeof($countrieslistArr) > 0) {
$empcommdetailsform->perm_country->addMultiOption('', 'Select Country');
foreach ($countrieslistArr as $countrieslistres) {
$empcommdetailsform->perm_country->addMultiOption($countrieslistres['id'], $countrieslistres['country_name']);
}
}
}
if ($data[0]['perm_country'] != '') {
$statePermlistArr = $statesmodel->getStatesList($data[0]['perm_country']);
if (sizeof($statePermlistArr) > 0) {
$empcommdetailsform->perm_state->addMultiOption('', 'Select State');
foreach ($statePermlistArr as $statelistres) {
$empcommdetailsform->perm_state->addMultiOption($statelistres['id'] . '!@#' . $statelistres['state_name'], $statelistres['state_name']);
}
}
}
if ($data[0]['perm_state'] != '') {
$cityPermlistArr = $citiesmodel->getCitiesList($data[0]['perm_state']);
if (sizeof($cityPermlistArr) > 0) {
$empcommdetailsform->perm_city->addMultiOption('', 'Select City');
foreach ($cityPermlistArr as $cityPermlistres) {
$empcommdetailsform->perm_city->addMultiOption($cityPermlistres['id'] . '!@#' . $cityPermlistres['city_name'], $cityPermlistres['city_name']);
}
}
}
if ($data[0]['current_country'] != '' && $data[0]['current_state'] != '') {
$countriesArr = $countriesModel->getCountryCode($data[0]['current_country']);
if (sizeof($countriesArr) > 0) {
$empcommdetailsform->current_country->addMultiOption('', 'Select Country');
foreach ($countriesArr as $countrieslistres) {
$empcommdetailsform->current_country->addMultiOption($countrieslistres['id'], $countrieslistres['country_name']);
}
}
$statecurrlistArr = $statesmodel->getStatesList($data[0]['current_country']);
if (sizeof($statecurrlistArr) > 0) {
//.........這裏部分代碼省略.........